cancel
Showing results for 
Search instead for 
Did you mean: 

Capture the file name in the payload from the SOAP payload

Former Member
0 Kudos

Hi ,

We have a scenario , a file to RFC , we need the file name which is coming the SOAP payload . This file name needs to be captured in the payload . Please tell me is there any way capture this .

Thanks

Anita

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

You dont' need to import anything, you can't test this in the mapping because the filename isn't there until you actually pick up a file in a real test.

bhavesh_kantilal
Active Contributor
0 Kudos

Anita,

If SP14 and above , do this,

Sender File adapter --> Adapter Specific Identifiers --> Select File name

Then in your mapping, you can use this piece of code to access / get the file name,

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

String FileName = conf.get(key);

Regards,

Bhavesh

Former Member
0 Kudos

Hi

What are the packages or interfaces that we shoiuld include in the UDF for the above said code to work ?

Thanks

Kumar

former_member206604
Active Contributor
0 Kudos

Hi,

You can use Adapter specific message attributes to capture the file name.

You can refer this blog by Michal

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Thanks,

Prakash

Message was edited by: Prakash Arunachalam