cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic file Names

Former Member
0 Kudos

Hi experts,

My scenerio is proxy to file. Now my requirement is each time when a proxy is executed 2 or 3 file names are generated and that should be pased to target system. files names are diffrent each time.

how we can do that?

thanks in advance,

Regards,

Mohan

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

Hi MOhan,

So, the file name will be present in one of the elements of the xml that is passed from SAP r/3 right?

Then you can use a concept called Variable substitution.

http://help.sap.com/saphelp_nw04/Helpdata/EN/bc/bb79d6061007419a081e58cbeaaf28/content.htm

alternatively, you can try dynamic configuration also:

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

http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm

Regards,

Ravi

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi ,

Pls mark the Question as ANSWERED

Regards,

B.Jude

Former Member
0 Kudos

yes, the files names generated from sender system and coming in payload.

former_member200962
Active Contributor
0 Kudos

Then use Dynamic Configuration......you have many links given above

Former Member
0 Kudos

Hi all,

thanks a lot for ur response..I will apply the same.

cheers,

mohan

Former Member
0 Kudos

What do you mean by 2 or 3 files ,Are the file names getting passed in the payload.

Are do you need to generate the filenames based on someparamter of payload then as said above use dynamic configuration for the same

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

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

String RecieverFilename = YourFilename;;

conf.put(key, RecieverFilename);

HTH

Rajesh

Former Member
0 Kudos

Hi ,

Check in forum you will get the code exactly for the Dynamic configuration

jude

former_member200962
Active Contributor
0 Kudos

Check the File Name checkbox under ASMA properties of your Receiver File CC.....

Design a UDF in the mapping program to configure the dynamic FileName.....

Check the blog by Michal on this