cancel
Showing results for 
Search instead for 
Did you mean: 

retrieve the message put in message header using variable substitution

Former Member
0 Kudos

hi,

i am using dynamic configuration to put some information in the message header.is it possible to retrieve the message using variable substitution and if it is possible then how it be done using variable substitution.

regards,

Meenakshi

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member200962
Active Contributor
0 Kudos

Variable Substitution does not allow you to read all the messaeg header elements only some of them can be read/ access....for more info on how to read the message header elements refer: /people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean

From the above blog:
When using Variable Substitution, only certain standard message header attributes can be used/accessed (e.g. sender_party, 
sender_service, receiver_party, receiver_service, interface_name, interface_namespace, message_id)

Better use Dynamic Configuration to read the parameters.

I am wondering why you need to read the message header parameters when you are putting them using Dynamic Configuration.....cant you just get the details from the dynamic configuration UDF itself?

Regards,

Abhishek.

Edited by: abhishek salvi on Dec 10, 2009 1:18 PM

Former Member
0 Kudos

Hi Meenakshi,

Using variable substitution you can access messages from payload only not from message header.

If you want to access message from message header..write a small UDF in mapping and transfer that value in a field of target structure. And then you can use variable substitution.

Thanks and regards,

Sandeep Jaiswal