on 06-18-2008 2:35 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.