Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exporting the ABAP internal table data in XML format using SOAP messages

Former Member
0 Likes
656

Dear ALL,

I have already done the basic heads-up for the above issue I am currently facing.

I will keep on trying from my end as well.

Can anyone provide me the knowledge on how to achieve an XML output in the following format given below:

Structure of message:

A SOAP Envelope (the root element)

A SOAP Header (optional)

A SOAP Body

Example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dis13="http://www.sukl.cz/dis13/v400r01">

<dis13:DatumCasOdeslaniZpravy>2012-07-10T02:22:20+01:00</dis13:DatumCasOdeslaniZpravy>

   <soapenv:Body>

       This section will contain the data fields from the internal table.

   <soapenv:Body>

</soapenv:Envelope>

Can anyone guide me how we can achieve this ABAP?

Best Regards.

Tanmoy

Dear ALL,

I have already done the basic heads-up for the above issue I am currently facing.

I will keep on trying from my end as well.

Can anyone provide me the knowledge on how to achieve an XML output in the following format given below:

Structure of message:

A SOAP Envelope (the root element)

A SOAP Header (optional)

A SOAP Body

Example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dis13="http://www.sukl.cz/dis13/v400r01">

<dis13:DatumCasOdeslaniZpravy>2012-07-10T02:22:20+01:00</dis13:DatumCasOdeslaniZpravy>

   <soapenv:Body>

       This section will contain the data fields from the internal table.

   <soapenv:Body>

</soapenv:Envelope>

Can anyone guide me how we can achieve this ABAP?

Best Regards.

Tanmoy

2 REPLIES 2
Read only

VijayCR
Active Contributor
0 Likes
540

Use the transalations http://scn.sap.com/thread/1850960

Thanks,

Vijay.

Read only

Former Member
0 Likes
540

Hello everyone,

Yes I am aware that we will have to generate an XSLT program in the XSLT Workbench, but I am not sure how to do it. The XML output will look like below:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dis13="http://www.sukl. cz/dis13/v400r01">
  <dis13:DatumCasOdeslaniZpravy>2012-07-10T02:22:20+01:00</dis13:DatumCasOdeslaniZpravy>
  <soapenv:Header />
  <soapenv:Body>
    <dis13:ZalozeniHlaseniDodavekDotaz xsi:schemaLocation="http://www.sukl.cz/dis13/v400r01 DIS13_4_00.xsd"      
     xmlns:dis13="http://www.sukl.cz/dis13/v400r01" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <dis13:Doklad>
       <dis13:Distributor>
         <dis13:KodPracoviste>00000000804</dis13:KodPracoviste>
       </dis13:Distributor>
       <dis13:Obdobi>
         <dis13:RokMesic>2012-06</dis13:RokMesic>
       </dis13:Obdobi>
       <dis13:Hlaseni>
         <dis13:DLP>
           <dis13:LP>
             <dis13:DistribuceHVLPReg>
               <dis13:TypPohybuLP>D</dis13:TypPohybuLP>
               <dis13:TypOdberatele>DISTRIBUTOR_CR</dis13:TypOdberatele>
               <dis13:KodSUKL>0011242</dis13:KodSUKL>
               <dis13:Nazev>GERATAM TBL 60x1200MG</dis13:Nazev>
               <dis13:Mnozstvi>1016</dis13:Mnozstvi>
               <dis13:Sarze>59468</dis13:Sarze>
             </dis13:DistribuceHVLPReg>
           </dis13:LP>
           <dis13:ID_LP_Distributora>11242</dis13:ID_LP_Distributora>
         </dis13:DLP>
         <dis13:DLP>
           <dis13:LP>
             <dis13:DistribuceHVLPReg>
               <dis13:TypPohybuLP>D</dis13:TypPohybuLP>
               <dis13:TypOdberatele>DISTRIBUTOR_CR</dis13:TypOdberatele>
               <dis13:KodSUKL>0011242</dis13:KodSUKL>
               <dis13:Nazev>GERATAM TBL 60x1200MG</dis13:Nazev>
               <dis13:Mnozstvi>1016</dis13:Mnozstvi>
               <dis13:Sarze>59468</dis13:Sarze>
             </dis13:DistribuceHVLPReg>
           </dis13:LP>
           <dis13:ID_LP_Distributora>11242</dis13:ID_LP_Distributora>
         </dis13:DLP>
       </dis13:Hlaseni>
     </dis13:Doklad>
     <dis13:Zprava>
      <dis13:ID_Zpravy>00000000-0000-0000-0000-000000000000</dis13:ID_Zpravy>
      <dis13:VerzeRozhrani>4.00</dis13:VerzeRozhrani>
      <dis13:DatumCasOdeslaniZpravy>2012-07-10T02:22:20+01:00</dis13:DatumCasOdeslaniZpravy>
      <dis13:SW_Klienta>
        <dis13:Vyrobce>Epicor</dis13:Vyrobce>
        <dis13:Nazev>iScala 2.3</dis13:Nazev>
        <dis13:Verze>10789</dis13:Verze>
      </dis13:SW_Klienta>
     </dis13:Zprava>
    </dis13:ZalozeniHlaseniDodavekDotaz>
  </soapenv:Body>
</soapenv:Envelope>