cancel
Showing results for 
Search instead for 
Did you mean: 

GlobalContainer

Former Member
0 Kudos

Hi ,

I have following two doubts with globalContainer Variable :-

Case I .

I have a Synchronous Scenario with two mappings.

Request Mapping

Response Mapping

Now GlobalContainer value set in Request Mapping , Can I get the same globalContainer value in Response Mapping ?


Case II .

Asynchronous Scenario - Only Request Mapping .

But in Operation Mapping . I have added two mapping here .

GraphicalMapping_1

GraphicalMapping_2

So can I get globalContainer value in Mapping 2 which was orignaly setted in Mapping No 1 ?

Regards

PS.

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

SAP help says it is only valid in the same message mapping.

http://help.sap.com/saphelp_nwpi711/helpdata/en/e0/7d8e40496f6f1de10000000a1550b0/frameset.htm

You can opt to use Dynamic Configuration instead.

Hope this helps,

Mark

Answers (3)

Answers (3)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Assume this way every UDF is sort of java class. Once the class is completely executed at run time, the global containter value will be lost. So you cannot use the value stored in one mapping to the another mapping whereas you can use it within the UDF as many times you want. If you like to have the permanent save information for the future retrieval, you can store in database table using UDF in the mapping and retrieve using jdbc lookup. Or store the value in file and do the lookup using UDF.

Refer jdbc lookup in scn .

refer this link for file lookup udf

http://wiki.sdn.sap.com/wiki/display/XI/File+Lookup+in+UDF

ambrish_mishra
Active Contributor
0 Kudos

Hi Prabhat,

Global container value is available only till the execution time of that mapping. So the answer to both of your questions should be no.

Ambrish

allamudi_loordh
Active Participant
0 Kudos

Hi Prabhat,

for Case 1:

Yes you can capture the value in response mapping .

Let me know if you need udf.

For Case 2:

No , i believe.

Regards

Loordh

allamudi_loordh
Active Participant
0 Kudos

Hi,

we have done one scenario on the same. Set the value in request mapping and get the value the response mapping.

Hope it will help below thread.

http://scn.sap.com/message/13793830#13793830

Regards,

Loordh