Symptom
Few Standard fields are not appearing in the XML file.
Environment
Reproducing the Issue
- Generate a Purchase Order.
- Export the Purchase Order details to an XML file.
- 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.
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