cancel
Showing results for 
Search instead for 
Did you mean: 

how to assign values to Communication channel dynamically

Former Member
0 Kudos

Hi All,

I have a requirement where the value coming in this field in the u2018Logon Languageu2019 of the RFC_IN channel. i.e we need to dynamically identify the login language based on this value.

Regards,

Saipriya.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

We cannot dynamically assign value to u2018Logon Languageu2019 parameter in RFC channel as Logon Language is not part of ASMA(Adapter Specific Message Attributes).

Can you explain your requirement and reason behind assigning values to logon field dynamically?

Former Member
0 Kudos

Hi Nagarjuna,

I wanted to know is there any other way we can assign the language value coming in xml to u2018Logon Languageu2019 parameter in reciever RFC channel. In our scenario(SOAP to RFC) the language value may vary in the input xml.

Regards,

Saipriya.

former_member187339
Active Contributor
0 Kudos

Hi Saipriya,

An alternative will be to use different communication channel for this and then in receiver determination check the source field and route to appropriate service

Regards

Suraj

Answers (3)

Answers (3)

abhay_rajhans2
Contributor
0 Kudos

Hi

This link may help u

/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

Former Member
0 Kudos

Hi Saipriya,

You can change Communication Channel Parameters using dynamic configuration. In repository write code for 'Dynamic Configuration' in UDF to call the communication channel and change the parameters accordingly. Here is the UDF sample code for your reference to change file name.

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

//conf.removeAll();

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

String filename= "tb_"a".txt";

conf.put(key1,filename);

Thanks

Amol

Former Member
0 Kudos

Hi Saipriya,

You can change Communication Channel Parameters using dynamic configuration. In repository write code for 'Dynamic Configuration' in UDF to call the communication channel and change the parameters accordingly. Here is the UDF sample code for your reference to change file name.

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

//conf.removeAll();

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

String filename= "tb_"a".txt";

conf.put(key1,filename);

Thanks

Amol