Billing Outout in XML Format (ABAP To XML)
Billing Outout in XML Format (ABAP To XML)
Version 1.0
Table of Contents
Contents
Background.....................................................................................................................................3
Business Requirement:...............................................................................................................3
Define output type for XML format and use translation tool to generate XML from ABAP data
type.............................................................................................................................................3
Prerequisites...................................................................................................................................3
System Requirements:................................................................................................................3
SAP Configuration:......................................................................................................................3
Process Flow...................................................................................................................................4
Billing output in XML format through transaction VF01/VF02/VF03/VF31....................................4
Sample Development.....................................................................................................................4
Expected Outcome.........................................................................................................................8
FAQ’s..............................................................................................................................................9
Background
Business Requirement:
The Business requires to issue billing output in XML format. Based on the output
types defined in the system we can issue billing output as print output, FAX, email
and EDI.
When billing run (VF31) is done client may require billing output in PDF/XML format.
Define output type for XML format and use translation tool to generate XML
from ABAP data type.
This document will cover the creation transformation using transaction
STRANS/XSLT_TOOL. This document also contains details about defining output type
in NACE for XML output.
Prerequisites
System Requirements:
SAP ECC 6.0 System
Access to STRANS, NACE, ABAP Developer access.
SAP Configuration:
Output type for XML output needs to be defined in NACE for application billing
(V3).
Assign driver program for medium “Print output” and Form routine “Entry”.
Process Flow
Billing output in XML format through transaction VF01/VF02/VF03/VF31
Sample Development
Development activities
The following development activities are needed:
1. Create a structure to hold all invoice data. E.g. structure with a header
invoice structure and deep invoice item structure.
2. Create a transformation using the custom structure created above.
3. Create a driver program to fetch and populate invoice details to the custom
structure. Call transformation and generate XML.
4. Assign driver program to the output type for XML in NACE.
2. Use wizard to create XML lines for the transformation. Select wizard
from the tool bar.
3. Select the root node, right click and insert new root.
4. Drag the node “INVOICE” from the root node and drop in the Sample
transformation window.
5. 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.
Expected Outcome
FAQ’s