Symptom
Multiple email addresses are maintained in the "Output Parameter Determination" app for sales documents and the BAdI APOC_ADD_EMAIL_RECIPIENTS is correctly implemented for sending output by email to the contact persons of the sales document customer, as explained in the KBA 3396631 - How to set Multiple Email Addresses for Sales Documents in SAP S/4HANA Cloud Public Edition - SAP for Me. However, emails are not sent to any of the contact persons of the Business Partner of the sales document, when sending sales document output by email. The relationship between Business Partner and the contact persons is defined in the BP, and an email address is set on the contact person. Despite this, there is no email sent to any of the contact persons.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Follow the KBA 3396631 - How to set Multiple Email Addresses for Sales Documents in SAP S/4HANA Cloud Public Edition - SAP for Me and maintain multiple email addresses for sending sales document output email to customer's contact persons
- Set an email address on the contact person in the "relationships" tab of the customer's master data.
- Create a sales document under the same customer and send the output via email.
- Observe that the contact person’s email is not determined as recipient.
Cause
The email address is not maintained in the contact person’s own Business Partner master data. It is maintained only in the relationship view of the customer's master data.
Resolution
- Open the "Manage Business Partner Master Data" app.
- Open the contact person’s BP.
- Go to Address > Communication.
- Maintain the E-mail address of the contact person.
- Create a new sales document and send the output by email. Verify that the contact person’s email addresses are determined (for example as To/CC) according to the BAdI logic.
See Also
- Refer to: 2976132 - Email output to multiple recipients in SAP S/4HANA Cloud Public Edition
- Refer to: 3396631 - How to set Multiple Email Addresses for Sales Documents in SAP S/4HANA Cloud Public Edition
- Refer to: How to Add Additional Email Recipients for Sales Documents Using Custom Logic
Keywords
Business Partner, contact person, email output, sales order, multiple recipients, OPD, Output Parameter Determination, BAdI, APOC_ADD_EMAIL_RECIPIENTS, S/4HANA Cloud, email recipients, CC recipients, correspondence, Custom Logic, Manage Business Partner , KBA , SD-SLS-GF-OC-2CL , Output Control for Sales Documents (Public Cloud) , Problem
SAP Knowledge Base Article - Public