cancel
Showing results for 
Search instead for 
Did you mean: 

access comm. channel parameters from UDF

Former Member
0 Kudos

hi,

i need to access comm. channel parameters from UDF. please let me know if it is possible.

regards,

meenakshi pradhan

Accepted Solutions (1)

Accepted Solutions (1)

former_member187339
Active Contributor
0 Kudos

Hi Meenakshi,

You can access communication channel by its name, but you cannot access its individual fiedls like Fielname, directory path etc..

May be try explaining the scenario we can see why you want to access them

Regards

Suraj

Answers (2)

Answers (2)

former_member200962
Active Contributor
0 Kudos

I think it should be possible.

Check the ASMA attributes in the sender channel....suppose if you have file sender then FileName, Directory.

In Message Mapping write a UDF which will have a different Dynamic key defined for each of the parameter like:

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

Similarly for other parameters which you want to pull

Then the return statement should have the value which you want to see....you can concat all the values separated by semi-colon or something else

May not be possible to query Receiver CC in similar manner.

The above mentioned behavior is shown in ablog by Michal: /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

The method described is called Dynamic Configuration .... if you want more information then just hit the [Search option of SDN|http://forumsa.sdn.sap.com/search.jspa?threadID=&q=&objID=f44&dateRange=all&numResults=15]

Regards,

Abhishek.

abhay_rajhans2
Contributor
0 Kudos

Hi Meenakshi,

You can write a UDF to call a communication channel. In below scenario it is explained for RFC communication channel.

Please find attached link may help.