08-27-2009 4:09 AM
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
08-27-2009 5:49 AM
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.
08-27-2009 6:46 AM
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.
08-27-2009 6:57 AM
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
08-27-2009 2:33 PM
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.
03-24-2010 1:44 PM
Hello,
I have the same issue,
Does someone know which implizit enhancement I can use (where)?
Thanks.
Regards,
Michael