SAP Knowledge Base Article - Public

3504652 - Missing standard fields in XML file of Sales Order printout

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

  1. Open a Sales Order on 'Change Sales Orders' (VA02);
  2. Go to Menu > Extras > Output > Header > Edit;
  3. 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;
  4. 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:

  1. Open the app 'Custom Fields and Logic' and go the tab 'Data Source Extension';
  2. Click on the plus (+) button, on the upper-right corner, to create a new extension;
  3. For 'Data Source' enter: FDP_V1_ORDER_CONFIRM_SRV. Description and ID are free;
  4. 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;
  5. Click 'Save' and then 'Publish';
  6. Now on the app 'Maintain Form Templates', copy the form template 'SD_SLS_ORDER_CONFIRM';
  7. Download the form template and open it on 'Adobe Livecycle Designer';
  8. The fields added will be available to addition on the 'SalesOrderNode' node.
  9. 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

Extensibility for Output Forms and Email Templates of Sales Documents | SAP Help Portal

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

Product

SAP S/4HANA Cloud Public Edition all versions