cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass value between two message mapping

Former Member
0 Kudos

Hi,

In my Operational mapping I have two message mappings used.

How to pass value between two message mapping.

Thanks,

Abdur

Accepted Solutions (0)

Answers (2)

Answers (2)

prateek
Active Contributor
0 Kudos

If you are using multiple mapping in same Operation Mapping, then the output of first message mapping will be treated as input to second mapping. For your case, you may map the required data for transfer to the target structure of first mapping.

Regards,

Prateek

Former Member
0 Kudos

Thanks for ur answer....

But is there any other solution apart from this.

thanks,

Abdur

Former Member
0 Kudos

Found this just some lines below, maybe it's what you are looking for:

former_member192295
Active Contributor
0 Kudos

Hi,

I think we can fulfill your requirement with global variable declaration, check out below link it will help you.

/people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14

JoelTrinidade
Active Contributor
0 Kudos

That is precisely what i have been telling abdur use global variables.

Former Member
0 Kudos

thanks joel trinidade ......

But global variable is accessible across UDF in message mapping.

They are not accessible across message mappings .

prateek
Active Contributor
0 Kudos

As per the documentation, yes it is for same message mapping

I haven't tried but you may try this. Goto Function Libraries -> Predefined Functions and Java Areas -> Attributes and Methods. Define an attribute there and then use it in two message mappings. Once done, dont use the test tab for testing. Instead run entire sceanrio. Come back with the results.

Regards,

Prateek

.

JoelTrinidade
Active Contributor
0 Kudos

Hi Abdur,

This cannot happen as mapping programs are stateless in nature. You cannot do passing around of value between message mappings.

But then you have a concept of global variable see how you can make use of that functionality.

Regards

joel

Edited by: joel trinidade on Apr 9, 2009 4:24 PM