Symptom
When creating Sales Order with reference to Contract, no reference data can be seen in standard Sales Order print XML.
Environment
SAP S/4HANA Cloud
Reproducing the Issue
- Create Sales Order with reference to Contract
- See the print of Sales, and check the XML of print
- Contract number cannot be see in the Sales Order print XML
Resolution
This is a standard system behaviour, the reference document and reference document item are not populated with the standard OData service.
Data source extension for ‘Sales: Sales Order Confirmation Form’ can be used to populate the reference document field (it will include the contract number).
Please note, that the data source extension fields will not contain value in preview mode and only contain value in the final document.
See Also
Keywords
Sales Order, reference, Contract, print, XML, custom form template, extensibility, output form, output, field , KBA , SD-SLS-GF-OC-2CL , S/4HANA: Output Control on Sales Documents (Public Cloud) , How To