Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Send Mail with 2 attachments and body

$
0
0

Hi all,

 

Could you please help me with the below scenario?

 

ABAPProxy-->PI-->MAIL

 

The problem is: With the XML structure received from ECC(Proxy) i have to create 2 files and attach them in to the mail structure.

 

The XML strucure is like:

 

<ns1:MT_OrdSAP xmlns:ns1="test">

   <File>

      <row>

         <Num>777777</Num>

         <Texto>Test1</Texto>

         <Clase>ZFA1</Clase>

         <Prio>2</Prior>

      </row>

      <row>

         <Num>88888</Num>

         <Text>test1</Text>

         <Clase>ZFA1</Clase>

         <Prior>2</Prior>

      </row>

   </File>

   <Z_I0002_MANT>

      <T_TEXT>

         <AUFNR>999999</AUFNR>

         <VORNR>99</VORNR>

         <ZAEHL>1</ZAEHL>

         <TDFORMAT>*</TDFORMAT>

         <TDLINE>test</TDLINE>

      </T_TEXT>

      <T_TEXT>

         <AUFNR>999998</AUFNR>

         <VORNR>98</VORNR>

         <ZAEHL>1</ZAEHL>

          <TDFORMAT>*</TDFORMAT>

         <TDLINE>test</TDLINE>

      </T_TEXT>

   </Z_I0002_MANT>

</ns1:MT_OrdenMtoProvSAP>

 

The mail shoud contain 2 attachments:

 

the first one should have this: (file.txt)

7777,Test1,ZFA1,2

8888,Test2,ZFA1,2

 

The second one shold contain this (file2.txt)

999999,99,1,*,test

999998,99,1,*,test

 

Also the mail shoud have a text in the body, subject, from, to, etc.

 

Do you have any idea for this scenario? As i don't know how to divide one XML in 2 files.

 

Thanks for your help.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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