cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic configuration

Former Member
0 Kudos

Hello ,

is for Variable substitution.

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...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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;

Former Member
0 Kudos

Hello Seshagiri,

Thank you ...

one more query...

In the image....you disabled the File_Name_1...Is it something related to my scenario ,Do I need anything like this

Former Member
0 Kudos

Hi Satya,

That is related to my scenario,Please Consider the related points to u only

Regards

Seshagiri

Answers (1)

Answers (1)

former_member190389
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Pro-Girl

Thank you for your reply...

Could you pls give why we need to

use cache as value in UDF

former_member190389
Active Contributor
0 Kudos

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