cancel
Showing results for 
Search instead for 
Did you mean: 

File name

Former Member
0 Kudos

Hi all

I want to send my xml file name in the payload data.

is there anyway I can do it?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

it is very simple

Goto your sender communication channel -->Advanced Tab

Check on the Adapter Specific Message Attribute

In the chek boxes that follow tick the one called File name

To check the filename in payload

Goto sxmb moni, double click on your message

in the window that opens go on Dynamic Configuration

You will find your file name in SOAP Header called FileName

Former Member
0 Kudos

Thanks for you answer

If i am using Idoc where communication channel doesnot comes into picture then what should I do?

Answers (2)

Answers (2)

Former Member
0 Kudos

hi deepak

check the below blog and the UDF in it

regards

kummari

former_member194786
Active Contributor
0 Kudos

Yes Deepak,

You will need to use Adapter Specific Message Attribute in the Adapter. And then in the mapping use this UDF to get the filename and map it to the file name field in the target side.

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

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

String ourSourceFileName = conf.get(key);

return ourSourceFileName;

You can refer to the blog by Michal for the same:

Regards,

Sanjeev.