Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Extracting fields in a file

hii,

I am sending the message with the below structure. The below structure acts as an Envelope.

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

<ns0:Z_MESSAGE xmlns:ns0="http://nlg.net/CopyFile">
   <ID/>
   <CORRELATIONID/>
   <TRANSACTIONID/>
   <SERVICE/>
   <AGENT/>
   <ROUTES/>
   <TASKNAME/>
   <DEPRECATIONDATE/>
   <COMMENTS/>
   <HEADER/>
   <TITLE/>
   <XMSDESTINATION/>
   <XMSDELIVERYMODE/>
   <XMSPRIORITY/>
   <XMSEXPIRATION/>
   <XMSREPLYTO/>
   <XMSTYPE/>
   <XMSREDELIVERED/>
   <XMSPROPERTIES/>
   <XMSUSERID/>
   <XMSAPPID/>
   <XMSDELIVERYCOUNT/>
   <XMSGROUPID/>
   <XMSGROUPSEQ/>
   <XMSPRODUCERTXID/>
   <XMSCONSUMERTXID/>
   <XMSRECEIVETIMESTAMP/>
   <XMSSTATE/>
   <BODY>Success/Failure</BODY>
   <Message>
      <Method>Copyfile</Method>
      <Source>Source_file.xml</Source>
      <Target>Target_file.xml</Target>
   </Message>
</ns0:Z_MESSAGE>

I want to Extract Source_file and Target_file. And Copyfile is another Scenario which copies the source file (which has different structure) from one location to another location.

How do I acheive this. I want to Extract Source_file and Target_file.

In the Result structure, I should get the status in the Body field as Success or Failure.

Regards,

Varun

Not what you were looking for? View more on this topic or Ask a question