on 04-22-2015 7:18 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.