Symptom
When retrieving a billing document from SAP S/4HANA Cloud Public Edition using the Billing Document API through SAP Integration Suite (CPI), the Ship-to Party information is missing from the API response.
The Ship-to Party is maintained in the relevant business process; however, it is not available in the to_Partner section of the Billing Document API response.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- From SAP Integration Suite (CPI), execute the Billing Document API: /sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_BillingDocument('<BillingDocument>')?$expand=to_Partner
- Review the to_Partner section of the API response and notice that the Ship-to-Party information is not available
Cause
Ship-to Party is not maintained at the billing document header; it is maintained on the outbound delivery. The Billing Document API returns the partner functions that are maintained in the billing document.
Resolution
To ensure that the Ship-to Party is displayed at the billing document header level, add the Ship-to Party partner function in the Partner Determination for Billing Header configuration by following the below steps:
-
- Go to Manage Your Solution app
- Go to Configure Your Solution
- Search for Set Up Partner Determination for Billing Header
- Maintain Ship to Party information for invoices
- After adding the Ship-to Party partner function, create a new Billing Document.
- Verify that the Ship-to Party is available at the billing document header level.
Note: This configuration change applies only to newly created Billing Documents. Existing Billing Documents will not be updated with the Ship-to Party automatically.
Keywords
api_billing_document_srv, to_partner, ship-to party, WE, billing document, partner function, partner determination, billing header, missing WE, odata, expand, integration suite, cpi, e-invoicing, business partner , KBA , SD-BIL-GF-OC-2CL , Output Control Billing (Public Cloud) , Problem
SAP Knowledge Base Article - Public