Tuesday, May 29, 2007

SAP ECC6.0 : Payroll - SAPMail Function Module

Sometimes you might want to include an email alert to users when they run their program. Recently, I was asked to provide an email alert if one of the records failed to process when run overnight. Thus in the morning, they can get feedback and proceed with their next course of action. So the very nice function module which you can use is below:

FM : SO_NEW_DOCUMENT_SEND_API1

To use this function module, fill up the following parameter:
1. DOCUMENT_DATA : obj_name, obj_descr
2. OBJECT_HEADER : line.
3. OBJECT_CONTENT : line.
4. RECEIVERS : line. (SAP Users)

Then you are ready to send. Check your email in your SAP Business Workplace at the main menu or you can use TCODE : SBWP.

is sky the limit... you've got mail...

No comments: