on 06-30-2014 10:52 AM
Hi everybody,
In SRM, when a PO is ordered, an email is sent to the supplier address.
The standard method "PROCESS_BBP_PO_MAI" of the class "CL_PD_PO_PROCESSING_BBP" is executed and the smartform is sent by email.
The import parameter "IS_MAIL_RECIPIENT" contains the information about the supplier email because the Funcion Module "GET_RECIPIENT_DATA_PPF" is called at the middle of the code with this variable returning the supplier email.
In our PO header, we have a custom field with the email recipient. How can I change the mail recipient so it takes the custom one?
Have you tried looking into BADI BBP_PROCESS_PO. this has a change parameter CV_SEND_MAIL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry I just checked the code the badi may not suit ur requirement. Better to create your own class and method following the standard class/method signatures and replace the standard class/method in the spro config. Inside your custom method copy the code from std method and modify it accordingly.
Hi
you could try to create your own processing class using your own processing method (depending on output type) and substitute them to the standard ones :
SAP Implementation Guide > SAP Supplier Relationship Management > SRM Server > Set Output Actions and Output Format > Define Actions for Document Output.
Here for action profile BBP_PD_PO and action defintionSTANDARD_PO, for each processing type, you have output settings.
Using your own methods, you could execute or not (depending on your own conditions) the output generation.
<removed>
Please do not ask for points. Message was edited by: Zoltan Keller
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.