Issue Billing Document Output in XML Format

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

sue billing document output in XML format

By Dibya Ranjan Pradhan, Deloitte Consulting

This document describes basically how to trigger XML file from ABAP program.

Requirement

Issue billing document output in XML format.  

Create an output type for XML in NACE. Define driver program to the output type.

Create a structure in SE11 to hold billing document data.


In the driver program fill this structure with related data.

Create transformation in XSLT_TOOL. Go to XSLT_TOOL. Give transformation name and select create.
Give description of the transformation and select transformation type “Simple Transformation”.
Use wizard to create XML lines for the transformation. Select wizard from the tool bar.

Select the root node, right click and insert new root.
Drag the node “INVOICE” from the root node and drop in the Sample transformation window.

Save and go back. XML source code is created in the editor. Now change the <TagName> as per
requirement. Select “Pretty Printer”, save and activate the transformation.
In the driver program call the transformation exporting structure with all required invoice details.

Limitations
For “UTF-8”encoding use data type XSTRING to collect XML file.

For “UTF-16” encoding use data type string to collect XML file.

Issue Output

Run transaction VF31, select output type for XML output execute.

You might also like