cancel
Showing results for 
Search instead for 
Did you mean: 

Sharing values accross multiple message mappings

iprieto
Contributor
0 Kudos

Hello all,

I have a question about the posibility to share a value among severals messages mappings and use it in an operation mapping.

How can I do it?

An example:

I have three message mappings( graphical and Java mappings ) where in the first message I have a value that I have to use in last mapping. In the operation mapping those mappings are executed in sequencial mode.

Best regards and thanks in advanced

Ivá

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Ivan,

you can use "global varirables":

[GlobalContainer - in graphical mapping (XI)|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1352] [original link is broken] [original link is broken] [original link is broken];

[SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8638] [original link is broken] [original link is broken] [original link is broken];

Regards,

Udo

iprieto
Contributor
0 Kudos

Thank you Udo,

Yesterday I tested those solutions and it only works for the same message mapping. I think that the method for solving this issue is transfer the parameters over the messages mappings but I wouldn't use this solution.

Thanks

Ivá

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Have you tried to use global variable section of function libraries?

Thanks,

Tuhin

iprieto
Contributor
0 Kudos

Hi guys,

Thank you for your responses.

The solution for this issue was to create an attribute in a function library and the trick is:

this solution doesn't work in design time when you test in the Operation Mapping test option but in runtime the solution works.

Best regards

Ivá

Former Member
0 Kudos

Hi

I too have same issue can you please explain me how you done in detail?

Regards

Shankar.