Symptom
The XML file of a Sales Order printout is missing several standard fields, such as: 'Price List Type', 'Customer Price Group', 'Customer Group' and etc.
The Standard Form Template 'SD_SLS_ORDER_CONFIRM' or a Custom Form Template copied from this standard is being used for the printout.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open a Sales Order on 'Change Sales Orders' (VA02);
- Go to Menu > Extras > Output > Header > Edit;
- Follow the steps on the SAP Note 2825919 - How to get the form data XML for a business document to get the XML file of a PRINT output;
- On the XML file, there are some standard fields which are not present.
Cause
For the Data Source 'FDP_V1_ORDER_CONFIRM_SRV', not all fields are offered by standard.
Resolution
It's possible to add the desired standard fields through a Data Source Extension.
Follow the steps bellow:
- Open the app 'Custom Fields and Logic' and go the tab 'Data Source Extension';
- Click on the plus (+) button, on the upper-right corner, to create a new extension;
- For 'Data Source' enter: FDP_V1_ORDER_CONFIRM_SRV. Description and ID are free;
- On the 'Field Selection' tab and 'Available Fields' section, search for the fields you want. All standard available fields must be there. If they are not, them is not possible to add them through this method;
- Click 'Save' and then 'Publish';
- Now on the app 'Maintain Form Templates', copy the form template 'SD_SLS_ORDER_CONFIRM';
- Download the form template and open it on 'Adobe Livecycle Designer';
- The fields added will be available to addition on the 'SalesOrderNode' node.
- Place them as wished on the template and upload the updated form version to your Custom Form Template.
Note: when adding fields to a Custom Form Template using Data Source Extensions, some of the fields are not displayed in the preview (output 'In Preparation' status), only in the final output.
See Also
Keywords
XML, XML file, Sales Order, Missing Standard Fields, Output Management, Sales Documents, Download, #&&DOWNLOAD_FORM_DATA_XML&&#, Customer Group, Price List Type, Customer Price Group, Data Source Extension, Custom Form Template, FDP_V1_ORDER_CONFIRM_SRV, SD_SLS_ORDER_CONFIRM , KBA , SD-SLS-GF-OC-2CL , S/4HANA: Output Control on Sales Documents (Public Cloud) , How To