Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding multiple recipients while sending email on PO save

Former Member
0 Likes
939

hi all,

Iam trying to fetch mutiple mail recipients from ztable and i need to add those recipient while sending the PO email to vendor , whenever the PO is saved.

In NACE i set it as below

1 Print output - /SMB40/FM06P - ENTRY_NEU -MEDRUCK -Z_BL_MMPO_L

2 Fax SAPFM06P - ENTRY_NEU -YPCC_PURCHOR

5 External send ZSMB40FM06P - ENTRY_NEU -MEDRUCK -Z_BL_MMPO_L

and before doing the changes in the ENTRY_NEU, i tried checking whether the function is being called and whether mail is initiated , so i did a debug by having the breakpoint ENTRY_NEU in the ZSMB40FM06P program, i did not found the program stopping at the breakpoint, but based on the NACE setting, the email is getting generated and getting send.

since i need to addup few more recipients by reading from the ztable , i not able to identify the program in which i need to do the changes.

Hope u all understand my issue, kindly guide me.

regs,

Raja

hi all,

Iam trying to fetch mutiple mail recipients from ztable and i need to add those recipient while sending the PO email to vendor , whenever the PO is saved.

In NACE i set it as below

1 Print output - /SMB40/FM06P - ENTRY_NEU -MEDRUCK -Z_BL_MMPO_L

2 Fax SAPFM06P - ENTRY_NEU -YPCC_PURCHOR

5 External send ZSMB40FM06P - ENTRY_NEU -MEDRUCK -Z_BL_MMPO_L

and before doing the changes in the ENTRY_NEU, i tried checking whether the function is being called and whether mail is initiated , so i did a debug by having the breakpoint ENTRY_NEU in the ZSMB40FM06P program, i did not found the program stopping at the breakpoint, but based on the NACE setting, the email is getting generated and getting send.

since i need to addup few more recipients by reading from the ztable , i not able to identify the program in which i need to do the changes.

Hope u all understand my issue, kindly guide me.

regs,

Raja

2 REPLIES 2
Read only

Former Member
0 Likes
655

Hi,

Can you check the Function modules like SO_NEW_DOCUMENT_SEND_API1 or SO_DOCUMENT_SEND_API1 etc used in the print program.

To debug the script, follow below steps.

1. Choose Activate debugger at layout set in SE71.

2. Put a break-point in the program( at the beginning.)

3. And Output settings, make it as Send with application own transaction option.

4. Now carryout changes and issue output ME9f and then debug.

Regards,

Ashok

Read only

Former Member
0 Likes
655

I used the alternative method , meaning made changes in the copy of the SAP std program and added the function to fetch the email id from the z table , this subroutine will override the email id taken from the standard SAP vendor master data and the z table email id will be a group list mail id ( distribution list id), which will send the mail to multiple receipients.

thanks

regs,

Raja