cancel
Showing results for 
Search instead for 
Did you mean: 

Pass value from Request to Response message in SAP PI 7.1 Integrated Configuration

0 Kudos

Hi Everyone 🙂

I have a requirement wherein a value from the request message needs to be posted in a field in the response message. I have tried two solutions but unfortunately, they are not applicable in our system.

1. use getpayloadvalue bean - this is not applicable since this can be used for 7.31 and above versions only. We're working on 7.1.

2. Use dynamic configuration - this is not possible since I'm using Integrated configuration for my sync async bridge. The values are not saved and retrieved when ICos are used since the Integration Engine is bypassed.

Can this be achieved without the use of BPM?

Accepted Solutions (1)

Accepted Solutions (1)

former_member182412
Active Contributor

Hi

You can use DynamicConfigurationBean to save the value from the request and retrieve in the response message as shown in below blog, this will work for ICO also there is no restriction.

Copy value from Request message to Response message using DynamicConfigurationBean and dynamic heade...

Regards,

Praveen.

0 Kudos

I'll try this Praveen thanks!

0 Kudos

Hi Praveen,

Unfortunately, I'm just getting a blank in my response message.

I'm pushing a value from a source field using the udf:

DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); DynamicConfigurationKey keySource1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","Value"); if (conf != null) { conf.put(keySource1, var1); } return var1;

Then this UDF to get the value:

DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); if (conf != null) { DynamicConfigurationKey keySource1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","Value"); return conf.get(keySource1); } else return "";

Then I have the following module parameters:

Answers (1)

Answers (1)

former_member182412
Active Contributor

Hi

In the request message audit log can you able to see that module actually written the value in dynamic configuration.

Can you able to see your custom dynamic configuration attribute under SOAP document in message display tool for your response message??

Regards,

Praveen.

0 Kudos

Thanks Praveen! It worked!!! 🙂