This page will use a actual ANSI X12 formatted document to demostrate the XML document
generation using a record template file and a equivlent XML template file.
Input SAP IDOC Document
EDI_DC 035000000000001301230C
30ZSDEL3111SAPI10TESTLICK92046 X3050 850 2 SAPI10 KUCK92046
E2EDK090010350000000000013012000001E2EDK09001000000010 5500000002 199605310017 16 19960531
E2EDKA1 0350000000000013012000002E2EDKA1 000001020 AG EDI DEFAULT TEST ABCD Diruscia P001
US Purchasing Org EDI
E2EDKA1 0350000000000013012000003E2EDKA1 000001020 LF 0020000023 717-986-7512
E2EDP10 0350000000000013012000004E2EDP10 000001020 A3228-80002 PCE5200 30.000 19960529
0000000000000000 178.000 48.000 19960605 19960630 00000000000000000300000000 00000000
00000000 00000000
Z2EDP91 0350000000000013012000005Z2EDP91 000004030 92288888888 000100.14 3 Tax exempt code
Z2EDP19 0350000000000013012000006Z2EDP19 000004030 90512345678 Engineering Change Number
Z2EDP19 0350000000000013012000007Z2EDP19 000004030 90745689278 Drawing Number
Z2EDP19 0350000000000013012000008Z2EDP19 000004030 90478897988 Drawing Revision Number
Z2EDP19 0350000000000013012000009Z2EDP19 000004030 90699998988 Packaging Number
Z2EDP19 0350000000000013012000010Z2EDP19 000004030 90412345678 Drawing revision number
Z2EDP19 0350000000000013012000011Z2EDP19 000004030 90888779966 General Specification
Number
Z2EDPA1 0350000000000013012000012Z2EDPA1 000004030 WE IN THE SKY BUILDING THE_CODE
Z2EDPA1 0350000000000013012000013Z2EDPA1 000004030 OC SMDO West 5200
E2EDP16 0350000000000013012000014E2EDP16 000004030 19960531000019960531 60 108.000
Z2EDP16 0350000000000013012000015Z2EDP16 000014040 1
E2EDP16 0350000000000013012000016E2EDP16 000004030 19960628000019960628 50 158.000
Z2EDP16 0350000000000013012000017Z2EDP16 000016040 2
E2EDP16 0350000000000013012000018E2EDP16 000004030 19960712000019960712 20 178.000
Z2EDP16 0350000000000013012000019Z2EDP16 000018040
Record Format Template File
HDTXT=<?XML
VERSION="1.0"?><DOCUMENT>
TLTXT=</DOCUMENT>
#
# For SAP IDOC format
#
Header=EDI_DC, sep='*', sub=':', term=10
RID=EDI_DC, Sender=(190,10), Receiver=(56,10), APRF=(164,6), SNRF=(15,14)
RID=Z2, What=(93,32)
RID=E2, Name=(55,20)
#
# implement NACHA standard
#
Header=1<One>, sep='*', sub=':', term=(34,3)
RID=1, Sender=(13,10), Receiver=(3,10), Freight=(40,23), Location=(63,30)
RID=5<Five>, Company=(4,35)
RID=7<UserDoc>, Text=(3,80)
Trailer=9
XML Output File Generated
<?XML VERSION="1.0"?>
<DOCUMENT>
<EDI_DC>
<Sender>CK92046</Sender>
<Receiver>CK92046</Receiver>
<APRF>850</APRF>
<SNRF>00000000013012</SNRF>
<E2>
<Name>5500000002</Name>
</E2>
<E2>
<Name>AG EDI DEFAULT</Name>
</E2>
<E2>
<Name>LF 0020000023</Name>
</E2>
<E2>
<Name>A3228-80002</Name>
</E2>
<Z2>
<What>3 Tax exempt code</What>
</Z2>
<Z2>
<What>Engineering Change
Number</What>
</Z2>
<Z2>
<What>Drawing Number</What>
</Z2>
<Z2>
<What>Drawing Revision
Number</What>
</Z2>
<Z2>
<What>Packaging Number</What>
</Z2>
<Z2>
<What>Drawing revision
number</What>
</Z2>
<Z2>
<What>General Specification
Number</What>
</Z2>
<Z2>
<What>N THE SKY BUILDING</What>
</Z2>
<Z2>
<What>MDO West</What>
</Z2>
<E2>
<Name>199605310000199605</Name>
</E2>
<Z2>
</Z2>
<E2>
<Name>199606280000199606</Name>
</E2>
<Z2>
</Z2>
<E2>
<Name>199607120000199607</Name>
</E2>
<Z2>
</Z2>
</EDI_DC>
</DOCUMENT>