You might already know that you can store references to related data, such as external documents, in SAP Subscription Billing by defining custom references. But did you know that you can transfer those custom references to Sales Billing in SAP S/4HANA Cloud and display them on customer invoices? In this blog we’ll walk you through the steps to set this up.
You want to enter purchase order references in subscriptions and include those references in the items of billing document requests so the references can be displayed on invoices generated in SAP S/4HANA Cloud.
Before we dive into the setup, here’s a short summary of the concepts:
To find out more, browse the following documentation on the SAP Help Portal:
Custom References | Custom Fields
SAP provides standard integration flows that define aspects such as mapping and routing for data integrations. As a customer or partner, you can extend these integration flows, for example to adapt the way data is replicated or to include additional data in replication. If you want to dig into the details of custom integration flows, refer to Integration Flow – Concepts on the SAP Help Portal.
For our example, we’ll show how to extend the integration flow used to transfer bills from SAP Subscription Billing to SAP S/4HANA Cloud.
To create a customer field, you need a role with all the following business catalogs:
Open the Custom Fields app and create a custom field Purchase Order. The business context must be Sales: Billing Document Item (SD_BILLINGDOCITEM).
To modify the message mapping of the standard integration flow to include the purchase order field, the following steps are required in SAP Cloud Integration:
Start by downloading the standard message mapping from the standard integration flow Transfer Bills to SAP S4HANA Cloud. You need the message mapping to add it your custom integration flow later, where you can modify the mapping.
In the post-exit processing step (Post Processing), display the details of the Bundle Message step:
This step creates a new payload that contains the following:
This payload will be passed from the standard integration flow to your custom integration flow. To find out more about post-exits, see Customer Exits in the SAP Cloud Integration documentation.
Next we’ll customize the post-exit integration flow.
Upload the message mapping from the standard integration flow:
Download the latest WSDL file from the communication arrangement SAP_COM_0095 and upload it to the custom integration flow:
ℹ️ The address must be the same as the address configured in the custom integration flow.
After the next transfer of billing data to SAP S/4HANA Cloud, you see a reference to the subscription billing document request in the Manage Billing Data app:
When you click on the document ID, you jump into the billing document request item, where you can see that the purchase order is displayed:
🏁You've now completed the setup and can include custom references in your customer invoices.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |