i have this requirement to fetch data from internal table and dowload this to an xml file.
the xml file has this XML format.
Output Sample (in XML format):
<?xml version="1.0"?>
<ORDERS01>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<DIRECT>1</DIRECT>
<IDOCTYP>ORDERS01</IDOCTYP>
<MESTYP>ORDERS</MESTYP>
<SNDPOR>SAPEX3</SNDPOR>
<SNDPRT>LS</SNDPRT>
<SNDPRN>0011297603</SNDPRN>
<RCVPOR>SAPP82</RCVPOR>
<RCVPRT>LI</RCVPRT>
<RCVPFC>LF</RCVPFC>
<RCVPRN></RCVPRN>
<CREDAT>2003-09-15</CREDAT>
<CRETIM>12:39:13</CRETIM>
</EDI_DC40>
<E1EDK01>
this format is in IDOC format, is there any function modules of way to download it to this file?
please help. thanks.