cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Configuration

Former Member
0 Kudos

Hello,

1)apart from dynamic configuration and variable substitution...is there any way to dynamically name the receiver file.

2)In Dynamic configuration what are the different ways to name the receiver file

Accepted Solutions (1)

Accepted Solutions (1)

santhosh_kumarv
Active Contributor
0 Kudos

>>1)apart from dynamic configuration and variable substitution...is there any way to dynamically name the receiver file.

No...! you can't...

>>2)In Dynamic configuration what are the different ways to name the receiver file

Use the UDF to set the file name

Check my reply in this thread

Thanks

SaNv...

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

- Dynamic File Name Part 1

- Dynamic File Name Part 2

Former Member
0 Kudos

Hi,

For Example if we want to get the Output file name as One of the Field value from Payload means

1) Write one UDF & map Like this

Name(giri)-----UDF--


MT_Target

2) Check the ASMA Option in Receiver Adapter Aloneu2026..

No need to check the ASMA Option in the Sender side

UDF Code:

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

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

String Outputfile = conf.put(key,a);

return Outputfile;

Regards

Seshagiri