cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the sender filename in the mapping

Former Member
0 Kudos

hi

I want to get the name of the target file placed by XI at the target into a mapping.I need this to correlate this file with the acknowledgement file to be received later by Xi from the target, which has the same name as the target file.

I have gone through the following link:[]

however i'm unable to understand the precise steps involved in it.

am using a BPM.

as of now, my BPM has 3 step:receive , transform and send.

please help

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

/people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name that should give you a good idea of the usage.

Answers (1)

Answers (1)

Former Member
0 Kudos

In ID sender communication channel

check the checkboxes for

setadapter- specific message attributes

filename

in message mapping---- create one target elemt for the filename

Write a UDF to pass the sender filename to the target element

The UDF is as below

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;

I think this may help you.