SAP Knowledge Base Article - Public

2811887 - How to get the form data XML for a sales 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. Go to the Display Sales Documents app

2. Filled out with sales order number and click Continue button

3. Go to menu option More --> Extras --> Output --> Header --> Print Preview

4. Click on the menu option Display PDF Document

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

Resolution

1. Open the sales order in change mode

2. Go to menu option More --> Extras --> Output --> Header --> Edit

3. Create a new output item of type PRINT

Capture1.JPG

4. Fill out the new Output item with the same information as the previous item

Capture2.JPG

5. Select the new Output line, go to menu option Display Details

Capture3.JPG

6. Change the Print Queue with the value: #&&DOWNLOAD_FORM_DATA_XML&&#

Capture4.JPG

Note: If an error message is displayed, you must ignore it.

Capture5.JPG

7. After Print Queue changed, go back to Output

Capture6.JPG

8. Go to menu option Display PDF Document

Capture7.JPG

9. Click Download

Capture8.JPG

10. Choose a name for the file and save a copy

Capture9.JPG

See Also

Output Management Set-Up Guide (1LQ)
SAP Note 2294198 - SAP S/4HANA output control - customized forms

Keywords

Form data, xml, pdf, download form data, #&&DOWNLOAD_FORM_DATA_XML&&#, content form, sales document, sales order, sales orders, output, form template, print queue, output item , KBA , SD-BF-OC , Output Determination , How To

Product

SAP S/4HANA Cloud all versions