SAP Knowledge Base Article - Public

3525721 - Fields missing in the XML File or How to add fields to the Output form

Symptom

Few Standard fields are not appearing in the XML file.

Environment

SAP S/4HANA Cloud Public Edition
 



Reproducing the Issue

  1. Generate a Purchase Order.
  2. Export the Purchase Order details to an XML file.
  3. Observe that the standard field is missing in the XML file.

 

Cause

In the standard form , only print fields that are included in the respective data source shall be visible.

For example Purchase order data source is PO's FDP_EF_PURCHASE_ORDER. 

Resolution

To include a field that is not available in the data source you can achieve that through extensibility. Please refer to the attached blog on this topic.
https://blogs.sap.com/2019/08/28/output-management-customize-content-form-with-additional-fields/ 

To fill the custom field automatically when creating the purchase order you can use the BADI's
MM_PUR_S4_PO_MODIFY_HEADER or MM_PUR_S4_PO_MODIFY_ITEM.

We also have BADI's MMPUR_PO_OUTPUT_HEADER_EXT and MMPUR_PO_OUTPUT_ITEM_EXT which allows to fill data in the form after save when the output is generated. 

For having standard fields included in the purchase order form data source raise a feature request in customer influence forum using below link.

https://launchpad.support.sap.com/#/notes/2838428

Keywords

SAP S/4HANA Cloud Public Edition, Operational Procurement, Purchase Order Processing, XML, Fright Vendor, missing details,PO XM, Output form is not having the field, cannot add field to form, , KBA , MM-PUR-PO , Purchase Orders , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions