cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic file name(Context)

Former Member
0 Kudos

Hello All,

I am using Dynamic file name function in my message mapping. Below is the code that I am using inside UDF:

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);

return fileName;

Now the questions is as per my requirement, I need to generate multiple file names. Can some one help me how can change the above code for catering multiple returns

Thanks

Regards

Moorthy

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Now the questions is as per my requirement, I need to generate multiple file names. Can some one help me how can change the above code for catering multiple returns

If you are using multi-mapping (0..n), only one will be accessed. See link below from SAP Help

http://help.sap.com/saphelp_nw70/helpdata/EN/43/09b16006526e72e10000000a422035/frameset.htm

Or you can use variable substitution for filename generation (search in SDN).

Hope this helps,

Mark

Answers (1)

Answers (1)

former_member181985
Active Contributor
0 Kudos

Requirement not clear. Could you please elaborate