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
- Create a sales order with reference to sales contract
- Check the output XML file
- 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
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