on 09-10-2012 7:42 AM
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
Hi Rare,
yes, you can use "Dynamic Configuration" for that: Usage of Dynamic Configuration in Synchronous Scenarios
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
81 | |
10 | |
10 | |
8 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.