cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

/SAPSRM/OFFLINEAPPROVALSEND blank email

Former Member
0 Likes
393

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Any toughts on this matter?

Thanks.

Former Member
0 Likes

Hello Nabil,

Try using the BADI BBP_OFFLINE_APP_BADI you can incorporate the body of the mail in the method MAIL_DATA_GET.

Regards,

Catherine

Former Member
0 Likes

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

Former Member
0 Likes

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

Former Member
0 Likes

hi Nabil,

Ok, if you want data from smartform, you just need to call the smartform BADI.

Have you checked this note 1265414 first?

Thanks a lot,

Cheers,

melina

Answers (0)