cancel
Showing results for 
Search instead for 
Did you mean: 

Variable accessble to multiple message mappings

Former Member
0 Kudos

Hi Experts,

We have a synchronous web service scenario. This scenario should store a variables from the request message which will then later be used in the response message for filtering records. Is there a way to use a global variable that is to be accessible in both request and response message mappings? Thanks in advance

Regards,

Rare

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Rare,

yes, you can use "Dynamic Configuration" for that: Usage of Dynamic Configuration in Synchronous Scenarios

Regards,

Udo

Former Member
0 Kudos

Hi Udo,

Thanks for the help. Is there any other way to implement the global variable? Is the parameterized mapping also applicable to this scenario. Thanks.

Regards,

Rare

udo_martens
Active Contributor
0 Kudos

Hi Rare,

Is there any other way to implement the global variable?

yes, there are several ways, for example store a value in ABAP runtime cache, store a value in a data base or other creative ways. But dynamic configuration is here the first choice, standard, good monitoring, easy to handle. What is your problem with dynamic configuration?

Is the parameterized mapping also applicable to this scenario.

yes, why not? These issues are not linked together.

Regards,

Udo

Former Member
0 Kudos

Hi Udo,

Thank you very much for the help. I'm searching for the solution with minimal coding and config will only involve within PI only.

Regards,

Rare

Former Member
0 Kudos

Hi Rare,

Udo's suggestion is the one. This shouldn't take longer than 10 or 15 minutes (including testing). Everything staus in PI. You have a UDF on the way in (request arrives) to set the dynanmic configuration global variables / containers. You have another UDF to retrieve the dynamic configuration values when the response comes back, you can then do anything else you need to do.

It's pretty minimal coding.

Regards, Trevor

Answers (0)