on 2007 Dec 21 8:08 AM
Hi,
In a very Layman language ,Global Container as its name suggests ,A container that can store values which can be used in your all UDF's.
Let us understand it by an e.g. --> If we have 50 UDF's for a mapping.And all of them are using a constant which is decided by our client as say 11.and based on this constant our all UDF's process further.
In such a case its better to store this constant as Global Container which prevents you from defining this constant 5o times in all yor UDF's and further if client later decided to change this value to 12 then we need to change this value only in Global container at one place , not in all 50 UDF's.
It saves lot of time and efforts.This is one of practical Implementaion of Global Container
Thanks & Regards,
Anurag Garg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To know about global container check above links and to write the UDF check the code.
Getglobal container.
String gctmp;
GlobalContainer gc = container.getGlobalContainer();
gctmp = (String) gc.getParameter(globalContainer);
return gctmp;
Setglobal container.
GlobalContainer gc = container.getGlobalContainer();
gc.setParameter("controlNo", controlNo);
return controlNo;
Regards,
phani
Reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Global container is used in graphical mapping.This object enables you to cache the values that you want to read again when you next call any user-defined function that is in the same message mapping. Note that the sequence in which user-defined functions are called is predefined. It depends on the position of the target fields that the function was assigned to.
To get a global container object, call the getGlobalContainer() method for the Container Object.
There are times when we want to create many tags from just one source tag - imagine situation, when we get serial numbers as a range (from, to) and we have to create one tag for each serial number.
For example.. refer this link by Michale ...
http://www.erpgenie.com/netweaver/xi/mapping1.htm
Regards
Aashish Sinha
PS : reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
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
Refer the below help and the code for the global container:
http://help.sap.com/saphelp_nw04/helpdata/en/75/8e0f8f3b0c2e4ea5f8d8f9faa9461a/frameset.htm
http://www.erpgenie.com/netweaver/xi/mapping1.htm
Thnx
Chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
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.