SAP Knowledge Base Article - Public

2678898 - How to get the form data XML for a billing document

Symptom

You want to view the underlying xml data of a form that is displayed.

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

Reproducing the Issue

1. Open the Manage Billing Documents app
2. Go to Output Items
3. Choose Display or Preview

Output Items Display or Preview.png

It shows the pdf form, however you want to see the underlying xml data instead.

Resolution

1. Navigate to the Output Items of the billing document in the Manage Billing Documents app

2. Make sure that the Details column is selected in the view Settings

Output Items Settings.png

3. Choose Show More per Row to have the Output Details visible

Output Items Show More per Row.png

Output Details.png

4. Select an output item with status In Preparation and choose Edit

Edit.png

5. Set Channel to PRINT

6. Choose Output Details and set Print Queue as #&&DOWNLOAD_FORM_DATA_XML&&#

Output Items Print Queue.png

7. Choose Save

8. Choose Display to trigger the preview

Display xml.png

9. The system shows the form data XML instead of a PDF

10. Save the XML

11. Revert the data on the output item to the original values for Channel and/or Print Queue

12. Choose Save

Remarks

• Works only for applications that have included the standard output control reuse screen in edit mode.
• Works only for output items in status 'In Preparation'. 
• Always returns the current data.
• 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.

Data Access

  • A user who wants to get the form data XML needs the authorization to access the corresponding business document.
  • Accessing the form data XML is logged in the application log of the output item with user name and time stamp.

See Also

Output Management Set-Up Guide (1LQ)
KBA 2941522 - Output Management in SAP S/4HANA Cloud - Guided Answer
SAP Note 2294198 - SAP S/4HANA output control - customized forms
KBA 2825919 - How to get the form data XML for a business document
KBA 2811887 - How to get the form data XML for a sales document
KBA 2837815 - Download XML Form Data - Outgoing Check
KBA 2942798 - Error when downloading the form data xml - SAP S/4HANA Cloud

Keywords

Form data, xml, pdf, download form data, #&&DOWNLOAD_FORM_DATA_XML&&#, content form, billing documents, output, form template, BILLING_DOCUMENT, BILLING_FORM, master form , KBA , SD-BIL-GF-OC , Output Control Billing , SD-BIL-GF-OC-2CL , Output Control Billing (Public Cloud) , CA-GTF-OC , SAP S/4HANA output management , Problem

Product

SAP S/4HANA Cloud all versions