cancel
Showing results for 
Search instead for 
Did you mean: 

Change in Email subject and body in SOST tcode

former_member515329
Participant
0 Kudos

Hi All,

How to change the subject line and body of the email(email content) while creating/changing a PO in SOST.

Can any one please explain in steps.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

ivy_li
Active Contributor
0 Kudos

Hi,

If it has smartforms, I think you can check trx smartforms for the PO output and change its content by copying to a Z-form, and modify in it

best regards,
Ivy

former_member515329
Participant
0 Kudos

Hi Ivy,

actually there is one Zsmartform already build which is calling...but i am unable to find the smartforms name..i n debug also...unable to get the smartform name...any way to find the smartform name(like NACE tcode)..

Thanks

ivy_li
Active Contributor
0 Kudos

Hi,

You can just click F4 help to list all the smartforms in your system via trx smartforms.
For the Z-smartform, it should also be listed and you can display it to see if the email content is what you have received in sost.
Some standard smartforms such as BBP_PO can also be referenced.

I also found the following info which should be of help:

===

class  /SAPSRM/CL_PDO_BO_PO
method /SAPSRM/IF_PDO_DO_OUTPUT~SEND_OUTPUT
FM BBP_OUTPUT_PARAMS_SET

class  /SAPSRM/CL_PDO_BO_PO
method /SAPSRM/IF_PDO_BO_PO~PREVIEW_PO
This is similar to form preview_po(LBBP_PO_APPF35)

For print perview, this FM BBP_OUTPUT_PO_PREVIEW_SMART will be of help
for PO.
For print output, this FM BBP_OUTPUT_PO_GETDETAIL_SMART will be called
for PO.
===


Best regards,
Ivy

Answers (1)

Answers (1)

former_member515329
Participant
0 Kudos

Can anyone help me on above issue...

Thanks.

Former Member
0 Kudos

Hi Ravi,

SOST is just a place where you see an email sent out of your SRM system. If you are to change the email subject/body/attachment of your PO change email, then you will have to implement the BADI BBP_OFFLINE_APP_BADI.

refer to this article.

http://wiki.scn.sap.com/wiki/display/SRM/BBP_OFFLINE_APP_BADI+-+Changing+the+standard+offline+approv...

Hope this helps.

Regards,

Karthik

former_member515329
Participant
0 Kudos

In this BADI BBP_OFFLINE_APP_BAD - which method do i need to implement??

MAIL_DATA_GET or MAIL_CREATE ??

Former Member
0 Kudos

Hi,

Ideally Mail body is created in Mail_data_get and mail body is modified in mail_create method.

You'll have access to mail body in both the methods.

Regards,

karthik