Application Development 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: 

Send PO to vendor's email addresses using external send

Former Member
0 Kudos

Hi Experts,

I am trying to send a Purchase Order to vendor thru transaction ME22N1/ME22N. I maintained two emails of vendor in vendor master XK02. The standard program is sending only one email which is working 100% fine. But I need to send email to two email address of the same vendor like vendor@yahoo.com and vendor@gmail. I am using output type ZU01, print program SAPFM06P and SAP Script ZMEDRUCK. I tried debugging SAP standard print program SAPFM06P and could find a point where exactly I need to add the code to send emails to vendor. I am kind of loss. I would really appreciate if anyone of you could suggest me the steps to do. sample code is really appreciated.Please help.

Thanks,

Nani.

6 REPLIES 6

david_liu1
Advisor
Advisor
0 Kudos

Hello,

The function of sending emails to multiple vendors is not supported by standard, and the functionality is described in SAP note 191470, this is standard for all releases .

In the vendor master record the user can maintain several Email addresses for a vendor, but the user can only choose one email address to send their PO to the vendor at a time.

The reason why sending multiple emails to a vendor is not in standard because it might lead to confusion. Normally the vendor is responsible for maintaining their incoming PO but not the buyer, in the customer's case the vendor should use kind of 'gate' to distribute the incoming POs
to different email addresses. However a suggested workaround would be in that transaction XK02
you can enter several e-mail addresses and select the standard one. When you create a purchase order in ME21N, in 'address' tab, click on 'address details', there you have the possibility to select another e-mail address than the standard one.

Regards,

David

madhu_vadlamani
Active Contributor
0 Kudos

Hi Mani,

As i know in standard it is not possible.You need to check with custom development.Check this wiki.

Regards,

Madhu,

0 Kudos

Thank you David and Madhu for the replies.

Madhu: As per the attachment you send me....the scenario is achieved by smartforms. My point is I am in a state where my debugging point is not stopping at the FORM ENTRY_NEU to see the standard data flow. Is there a way, can I achieve this scenarios for PO SAP Script. Please suggest.

At what point do I need to write my code in order to send two emails (one as TO and the other as CC) to vendor?

Thanks,

Nani.

0 Kudos

Hi Nani,

Even you maintained no mail ids in customer master or vendor master it wont go for all ids.It will go for only the default.Even either smarrtform or script it will be the same.

Regards,

Madhu.

0 Kudos

Hello Madhu:

Agreed upon what you say. But my requirement is to send two or more emails to vendor when a PO is created or changed (ME21N or ME22N). In that case, I wanted to copy standard program SAPFM60P into Z program and do the changes according to my requirement. But I am not able to find a way where to put my code since my debugging is not stopping at FORM ENTRY_NEU.

Actually, my question here is can this scenario be achieved and if YES, what are the steps I need to follow. I would really appreciate if you suggest me some good ideas.

Thanks,

Nani.

0 Kudos

Hi Nani,

As i know you can not  do by just modifying program.

Regards,

Madhu.