SAP Knowledge Base Article - Public

3469514 - No contract data shown in sales order output form XML file - S/4HANA Cloud

Symptom

After creating a sales order with reference to sales contract, the output form XML file does not show the contract number.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Create a sales order with reference to sales contract
  2. Check the output XML file
  3. The contract number is not in the XML file of sales order output

Cause

The reference document and reference document item are not populated with the standard OData service.

Resolution

As a workaround, you can use the data source extension for ‘Sales: Sales Order Confirmation Form’ to populate the reference document field, which will include the contract number.

Note that, the data source extension fields do not contain values in preview mode and only contain values in the final document.

See Also

How to Extend a Custom Form Template with Standard Fields | SAP Help Portal

Keywords

sales order, sales contract, output, form, XML, file, custom form template, standard field, data source extension, value, reference document, reference document item, Odata, confirmation form , KBA , SD-SLS-GF-OC-2CL , S/4HANA: Output Control on Sales Documents (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions