on 09-03-2008 12:37 PM
I have created a Function SetVariable, with the code below
-
// SetVariable
// a = Date
// b = Variable Name
container.setParameter(a,b);
return a;
-
I have used this function in one of the field and when I am trying to retrieve the Value in the just next immediate field with GetVariable function, null value is returned.
-
// GetVariable
// a = Variable Name
String var=(String) container.getParameter(a);
return var;
-
Any help would be appreciated.
Regards,
Bharani
//SetLocalvariable
GlobalContainer globalContainer;
globalContainer = container.getGlobalContainer();
globalContainer.setParameter(a,b);
return a;
//GetLocalVaraible
GlobalContainer globalContainer;
globalContainer = container.getGlobalContainer();
String var= (String) globalContainer.getParameter(a);
return var;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1)void setParameter (String parName, Object obj)-Saves the obj object under the name parName in a container for a user-specific function.
2)Object getParameter(String parName)-Returns the parameter that was saved under the parName name in this user-specific function by using the setParameter method. If no such parameters exist, getParameter returns null.
http://help.sap.com/saphelp_nw04/helpdata/en/e0/7d8e40496f6f1de10000000a1550b0/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.