Symptom
Get form data XML for a business document
"Image/data in this document is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
SAP S/4HANA Cloud Public Edition
Resolution
- Navigate to the output items in the corresponding app.
- Select an output item with status In Preparation and switch to edit mode.
- Set channel to PRINT.
- Choose Output Details, set #&&DOWNLOAD_FORM_DATA_XML&&# as Print Queue Name, Press the 'Submit'
to avoid data loss and save your changes.
In SAP Fiori: - Choose the PDF icon to trigger the preview.
The system will show the form data XML instead of a PDF. - Save the XML via your browser (download button).
- Revert the data of the output item back to the original values for Channel and/or Print Queue Name.
Data Access
A user who wants to get the form data XML needs authorization to access the corresponding business document. Accessing the form data XML is logged in the message log of the output item with the user name and time stamp.
Remarks
- This works only for applications that have included the standard output control reuse screen in edit mode.
- This works only for output items in status In Preparation.
- The XML always returns the current data of the underlying business document.
- Does not work for duplicates.
- The XML does not include data from the master form template.
- An output with print queue #&&DOWNLOAD_FORM_DATA_XML&&# is not possible.
- Print queue #&&DOWNLOAD_FORM_DATA_XML&&# cannot be used in output parameter determination.
See Also
2678898 - How to get the form data XML for a billing document
2811887 - How to get the form data XML for a sales document
2837815 - Download XML Form Data - Outgoing Check
2942798 - Error when downloading the form data xml - SAP S/4HANA Cloud Public Edition
2941522 - Output Management in SAP S/4HANA Cloud Public Edition - Guided Answer
3120595 - Download a Goods Movement Output Form in XML Format
Keywords
SAP S/4HANA output control, SAP S/4HANA output management, SAP S/4HANA Cloud Public Edition, form data XML, business document, S4_PC , KBA , CA-GTF-OC , SAP S/4HANA output management , How To
SAP Knowledge Base Article - Public