Wednesday
Dear community,
we want to copy the customer reference number from service confirmation to billing document in S/4HANA Cloud Public Edition.
For that we use the BAdi SD_BIL_DATA_TRANSFER. When we use the following code it works fine:
bil_doc_res-purchaseorderbycustomer = 'Customer Reference'.
After we want to query the data (customer reference - purchaseorderbycustomer) from service confirmation we are not able to get data from related CDS view i_serviceconfirmationtp.
Has anyone an idea how this could work? Do we have to create a new custom CDS? If yes, with which datasource? Or is there an easier way?
Every hint would be much appreciated.
Thx
Request clarification before answering.
Good day @daniel_walker
Thank you for your question.
Considering you are using public cloud, a clean-core approach is vital. Since you want to retrieve the customer reference after billing, maybe consider using I_BillingDocumentItem for reporting.
For pre-billing situation, you can create a Custom CDS View based on I_ServiceConfirmation and associate it to your custom field or business object that stores the reference.
Alternatively, you can expose the filed through Custom Fields and Logic if it is part of the service confirmation business context (SRV_ORD_CONF/SRV_CONF_ROOT).
Have a look at these references, they provide more detailed guidance:
Service Confirmation (A2X), Extensibility: Service Confirmation - Create, Change, Extending a Service
Let me know if you have further questions.
Best regards
Chris
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 | |
| 17 | |
| 16 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.