Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Re: XML format of IDOC

$
0
0

Hi pranav,

 

Thanks for your reply.  But i am not getting the output i wanted.  Below is teh output i get when i follow your suggestions:

 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

|Seg.type                   |Qualified segment ID|                              |                                                            |                                                                                                                                    |

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

|Segm.Name                  |Q                   |Fld Name                      |Description                                                 |Fld Cont.                                                                                                                           |

|EDIDC                      |                    |MANDT                         |Client                                                      |390                                                                                                                                 |

|EDIDC                      |                    |DOCNUM                        |IDoc number                                                 |0000000000213061                                                                                                                    |

|EDIDC                      |                    |DOCREL                        |SAP Release for IDoc                                        |731                                                                                                                                 |

|EDIDC                      |                    |STATUS                        |Status of IDoc                                              |53                                                                                                                                  |

|EDIDC                      |                    |DOCTYP                        |IDoc Type                                                   |                                                                                                                                    |

|EDIDC                      |                    |DIRECT                        |Direction for IDoc                                          |2                                                                                                                                   |

|EDIDC                      |                    |RCVPOR                        |Receiver port (SAP System, EDI subsystem)                   |SAPD51                                                                                                                              |

|EDIDC                      |                    |RCVPRT                        |Partner Type of Receiver                                    |LS                                                                                                                                  |

|EDIDC                      |                    |RCVPRN                        |Partner Number of Receiver                                  |D51TDEX310   

 

but this is not what i want.

 

I would like output like this:

 

<?xml version="1.0" encoding="UTF-8"?>

<ZORDERS01 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../Schemas/zorders01.xsd">

<IDOC BEGIN="1">

  <EDI_DC40 SEGMENT="1">

    <TABNAM>EDI_DC40</TABNAM>

    <DOCNUM>0000000000004711</DOCNUM>

    <DIRECT>1</DIRECT>

    <IDOCTYP>ORDERS01</IDOCTYP>

    <CIMTYP></CIMTYP>

    <SNDPOR>SAPP01</SNDPOR>

    <SNDPRT>LS</SNDPRT>

    <SNDPRN>aaaaaaaaaa</SNDPRN>

    <RCVPOR>aaaaaaaaaa</RCVPOR>

    <RCVPRN>aaaaaaaaaa</RCVPRN>

  </EDI_DC40>

  <E1EDK01 SEGMENT="1">

    <BSART>ZOPE</BSART>

    <LIFSK>03</LIFSK>

  </E1EDK01>

  <E1EDK14 SEGMENT="1">

    <QUALF>006</QUALF>

    <ORGID>20</ORGID>


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>