cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Global Container

former_member200339
Participant
0 Kudos


Dear Experts,

I have an RFC  to FILE Scenario and used BPM to meet the requirements.

There are 2 graphical mappings - mapping1 before the BPM and mapping2 (transformation) within the BPM.

I have saved a parameter in the global container in mapping1 but unable to extract the same in mapping2. Any idea?

UDF in mapping1:

GlobalContainer gc1 = container.getGlobalContainer();

String gdata1 = va2 + "_" + var3;

gc1.setParameter("gdata",gdata1);

UDF in mapping2:

GlobalContainer gc2 = container.getGlobalContainer();

String gdata2 = (String) gc2.getParameter("gdata");

Thanks and Regards,

Rana Brata De

Accepted Solutions (1)

Accepted Solutions (1)

engswee
Active Contributor
0 Kudos

Hi Rana

Refer the following statement from SAP Help stating that the values only available in same message mapping.


This object enables you to cache the values that you want to read again when you next call any user-defined function in the same message mapping.

GlobalContainer Object - Enterprise Services Repository - SAP Library

If you want to pass the value, you can either add additional fields in your structures or use DynamicConfiguration (has limit of 200 characters). Since you are using BPM (is it ccBPM or NW BPM?), I'm not sure if DC attributes can be passed into a BPM an accessible.

Any particular reason to do the 2nd mapping within the BPM? You can also do it out of the BPM after all the necessary BPM processing.

Rgds

Eng Swee

Answers (0)