cancel
Showing results for 
Search instead for 
Did you mean: 

Placing a file in one of many directories at run time

Former Member
0 Kudos

Hi all,Good Evening Im doing a scenario (JDBC to FILE) in which there are six target directories present. Now,depending on some conditions the file will be placed in one of the target directories and we are required to do it dynamically.

can any one please suggest me a way to do place the file dynamically.

Thanks in advance,

Regards,

Prajwal

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This can be handled in mapping.. write UDF as

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

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

String strDirectory = "Dir1"

// here write your condition for dynamic Directory

conf.put(key,strDirectory);

return strDirectory;

Map this UDF to target structure..

Set Adapter Specific Message Attributes in File adapter.. Tick Directory

Former Member
0 Kudos

Hi,

You can go for Enhanced receiver determination.

Check these links for that.

Check this blog,

/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16

Also check ....

http://help.sap.com/saphelp_nw2004s/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/42/ed364cf8593eebe10000000a1553f7/frameset.htm -


>Enhanced Interface determination.

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination --->Customised XPath

Also check the following threads

Thanks,

Vijaya.