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: 

Exit/Enhancement for External Send

Former Member
0 Kudos

Hi all,

I have a requirement that needs to retrieve the correct email recipient of vendor(this is for PO). A custom output type for External Send is maintained in NACE. The vendor has two email address maintained (one with a note that it is for PO), I can check which email address is correct through tables ADR6 and ADRT. Buts there any exit/enhancement where I can add the logic for this?

Thanks,

Eo

5 REPLIES 5

former_member156446
Active Contributor
0 Kudos

In the print program validate and then only proceed... if the validation failed raise an error message and kick off the program....

nast structure will hold all the required parameters.

0 Kudos

Thanks for the answer. But how can I validate? The print program is SAPFM06P. Is the actual sending occurs in this print program? I need to know where the actual sending of email occurs. It's automatically sent once the PO is saved in ME21N or ME22N.

Former Member
0 Kudos

Hi,

Check enhancement 'LMEDR001' this is the customer exit that would be used for enhancement of the print program check the changing parameter CX_DOC which is of the type MEEIN_PURCHASE_DOC_PRINT which has structure 'MSGPA' which should have address numbers information.

Regards,

Himanshu

0 Kudos

Check enhancement 'LMEDR001' this is the customer exit that would be used for enhancement of the print program check the changing parameter CX_DOC which is of the type MEEIN_PURCHASE_DOC_PRINT which has structure 'MSGPA' which should have address numbers information.

How does that help though? There's no access to the e-mail address - what he's trying to do is set the correct address when multiple ones exist on the vendor.

As I remember, with the PO external send processing, you could only use the default address on the vendor (because of a hard-coded READ in the code), so we use the default e-mail address for PO sends and for other objects such as payment advices (where you can actually pick the e-mail address), we tag the notes with an identifier. I have not revisited this code in ECC 6.0 though.

You can see where the e-mail address is set in function CONVERT_COMM_TYPE_DATA; it uses the old macro calls to set the e-mail recipient which is derived from a simple ADDR_GET call (using the address number). There aren't any exits here but you could use an implicit enhancement to change the values.

0 Kudos

Hello,

I have the same issue,

Does someone know which implizit enhancement I can use (where)?

Thanks.

Regards,

Michael