on 04-18-2012 7:02 AM
Greetings,
How can we set the Ouput file name based on the Input message field for file adapter?
with ASMA we can use the input file name or timstamps but is there a way to naming the file based on input message fields without passing that vale to the target message?
For Variable Substitution , Is it necessary to pass the value to the target field?
Thanks & Regards,
Hitesh
very basic question..search SDN
I am just pointing one, u will find tons of article
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
we have diifferent approaches to create file buy dynamically .
http://wiki.sdn.sap.com/wiki/display/XI/Combining+three+different+aspects+of+PI+in+one+shot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Firstly, I agree with Amit that searching SDN would be enough for you to find the answer.
Secondly, there are even more ways to dynamically create file name than these two that mentions in his blog Amit has mentioned. Have a look at my Wiki here: Dynamic file name & directory in Receiver File Adapter - summary of possibilities.
Hope this helps,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
file based on input message fields without passing that vale to the target message
as per my understand:
constant(fieldname) ->udf(dynamic conf) -> target node
String DynamicConfig(String a, Container container) throws StreamTransformationException{
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
conf.put(key,a);
return "";
....................
if morethan one field :
constant (field1)+constant (field2)->concat -> udf -> target rootnode
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.