on 2013 Apr 05 11:36 PM
Hello experts,
In SRM 7.0, we’re using the report /SAPSRM/OFFLINEAPPROVALSEND to run the offline approval process and send emails to the corresponding recipients. These emails are successfully received, except they are blank.
To determine the custom Smartform that will be called to build the body of the email, we use the standard class CL_BBP_MESSAGE_CREATE_OFFAPP (called in method /sapsrm/cl_wf_offapp_badi=>determine_class_name).
This class uses the method CREATE_BODY to get the Smartform data. Only, the exporting parameter ET_BODY is filled with binary data and not text data. Afterwards, the report tries to retrieve the text data (which is initial), and leaves the body of the email blank.
Do i need to implement an SAP note to correct this, or is there another solution?
Thanks for your help.
Best regards,
Nabil
Request clarification before answering.
Any toughts on this matter?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Catherine,
Actually, BBP_OFFLINE_APP_BADI is the BADI we are implementing. we're using the method DETERMINE_CLASS_NAME to determine which smartform will be called.
I don't think MAIL_DATA_GET will be of use since i need to get data from a custom smartform, hence, use the methods DETERMINE_FORMS_PARAMS and RENDER_FORM of class CL_BBP_MESSAGE_CREATE_OFFAPP.
As i said, CREATE_BODY (of class CL_BBP_MESSAGE_CREATE_OFFAPP) is the method which is supposed to convert smartform data to text data, but doesn't.
Now, i'm not sure if i need to implement an SAP Note or just create my own implementation of the class, and write the code to transform my smartform data to text data and pass it to the main program.
Regards,
Nabil
After some research, i found that the class CL_BBP_MESSAGE_CREATE_OFFAPP is for SRM 5 use only.
I resolved the issue by implementing the method MAIL_CREATE of BADI BBP_OFFLINE_APP_BADI.
I also called in that method my custom smartform and converted it to HTML format.
Thanks for you help
Best regards,
Nabil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.