on 08-18-2008 7:42 AM
Hello ,
not for dynamic configuration.
please provide for dynamic configuration.
1)MY sender is JDBC ,and I have to consider the payload element data for naming the receiver.
2)and how to do this in dynamic configuration
3)And regarding the UDf ,wher to use...do we need to link up with main root of receiver...if so what could be the other source of udf ,can we consider a constant....
like constant --> UDF ---> Root of recevier
pls answer ASAP...
Hi,
If you want to get the Output File Name as One of the Field Value from Payload
1) Write one UDF & map Like this
Name(giri)-----UDF--
MT_Target
2) Check the ASMA Option in Receiver Adapter Aloneu2026..
3) No need to check the ASMA Option in the Sender side
Check this Mapping screen
http://img186.imageshack.us/img186/7730/89962633ne9.jpg
UDF Code:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
String Outputfile = conf.put(key,a);
return Outputfile;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use Adapter Specific Message Attributes for the target Comm Chanel check the indicator for filename in the advanced tab of CC
create a UDF with i/p as file name and
paste this code
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//conf.removeAll();
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
//String filename= conf.get(key);
conf.put(key, fileName);
key= null;
return fileName;
PS: use cache as value in UDF
ands assign the o/p of this UDF to a root node
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is not compulsary that you should use cache only.
when you use cache the UDF returns a object of type String.
>> return fileName;
when you use context in that case a ResultList object is populated.
and here the input fields to UDF must be a String [] (Array)
In your case only a single field filename is required to be mapped so cache is the option.
You can also try the same with result.addValue(fileName[0]); for the single field
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.