SAP Knowledge Base Article - Public

3797524 - Ship-to Party Missing from the Billing Document API Response in SAP S/4HANA Cloud Public Edition

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

  1. From SAP Integration Suite (CPI), execute the Billing Document API: /sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_BillingDocument('<BillingDocument>')?$expand=to_Partner
  2. 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:

    1. Go to Manage Your Solution app
    2. Go to Configure Your Solution
    3. Search for Set Up Partner Determination for Billing Header
    4. Maintain Ship to Party information for invoices
    5. After adding the Ship-to Party partner function, create a new Billing Document.
    6. 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

Product

SAP S/4HANA Cloud Public Edition all versions