cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the filename in the payload

Former Member
0 Kudos

Hii

I want to process the filename (eg:sample.xml) from the payload of the message.

<Message>
      <Method/>
      <Source>sample.xml</Source>
      <Target/>
   </Message>

And use the filename in other scenario.

Regards,

Varun

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Varun

Use variable substitution

File name : %FileName%

Enable variable substitution in Receiver File adapter.

Variable name = FileName
Reference = payload:Message,1,Method,1,Source,1

For more info refer

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

Thanks

Gaurav

Answers (4)

Answers (4)

Former Member
0 Kudos

Hey,

refer to the Note:819761.

regards,

Milan

Former Member
0 Kudos

Hi,

If your getting the file name in the payload then you can use variable substitution.

suppose if ur getting as "sample.xml" then remove the ".xml" in the mapping, then you will have only sample in the payload then with Variable substitution we can get the target file name.

Please find the links for further reference.

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

Regards,

Phani

ParvathyS_SAP
Product and Topic Expert
Product and Topic Expert
0 Kudos

Use variable substitution method

Go through this blog:

prateek
Active Contributor
0 Kudos