cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic file name

Former Member
0 Kudos

I have the problem like,depending on the input ,the output file name will change.

e.g my output file name is SAP<SP><EP>.DAT

here SP-Start period

EP-Ending period

this start period and end period will come from input side.

so evertime the file name will change.this is file file scenario.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

THanx toall

Former Member
0 Kudos

- Dynamic File Name Part 1

- Dynamic File Name Part 2

Former Member
0 Kudos

Hi,

you have to make use of specific adapter properties (filename) in the receiver file adapter

and then populate the filename in the mapping:

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

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

String newfilname = SAPSPEP;

conf.put(key, newfilename);

Pass the SP and EP values as the input parameter to this UDF.

I hope this would help you..

Regards,

Yuga

dharamveer_gaur2
Active Contributor
0 Kudos

use thread with same

Dynamic file name for Receiver :

Edited by: Dharamveer Gaur on Sep 18, 2008 6:32 AM

Former Member
0 Kudos

Hi,

If your filename is coming from payload itself you can go for Variable Substitution. You can check out:

[ Variable Substitution|http://www.saptechnical.com/Tutorials/XI/Variable/substitution.htm]

Regards

Former Member
0 Kudos

Hi

the same problem have been discussed in the below mentioned thred ..have a look at them .

hope this would help you :

Regard's

Chetan Ahuja