on 2025 Jul 09 9:46 AM
Hi SAP Community,
I’m working on an output scenario where the recipient email address for invoice output should be determined from a custom Z-table. This table contains (among other things) an email address for each possible invoice recipient.
To make this work, I’ve extended the relevant CDS view (C_BILLINGDOCUMENTOMPARAMDET) using a custom field that reads the email address from the Z-table. In the OPD (Output Parameter Determination), I’m able to select this custom field and assign it to the email recipient parameter.
The issue: although the CDS view field is correctly filled with the email address, the invoice output is still generated without any recipient email address. My suspicion is that the output is being generated before the CDS field is populated, meaning the value is not yet available when the output is triggered.
Is there a supported way to fetch recipient email addresses from a Z-table for invoice output?
Is it possible to delay or control the timing of output generation to ensure the email field is populated beforehand?
Or is there a completely different (preferred) method for managing custom recipient email addresses?
(I’m aware of the possible expression "Add email recipients from custom logic" in the Public Cloud version of OPD, but unfortunately this is not available in our Private Cloud environment.)
Any insights or best practices would be greatly appreciated!
Thanks in advance
Request clarification before answering.
Even though the field is visible in OPD, it must be explicitly mapped to the email recipient parameter (EmailRecipient). Double-check that the parameter type is correctly set to EmailRecipient and not just used as a condition. The CDS extension might not be correctly propagated to the output runtime.
Ensure that the field is:
The email channel must be active and correctly configured in the Output Management settings. Check
SAP may silently ignore the email if it doesn't pass internal validation. Ensure, the email address is:
Use the “Simulate Output Determination” app to test the output scenario. This helps verify whether the email address is being picked up and passed to the output runtime.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 30 | |
| 16 | |
| 14 | |
| 6 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.