2007 Nov 30 12:11 PM
Hi,
I have created a SET/GET parameter the value of which comes from the user profile in transaction SU3. In the code, using GET PARAMETER, I fetch the value of this parameter into the attribute of a public class and then based on the value in this attribute execute the appropriate code.
I want to know what is the scope of the GET PARAMETER statement. If I am fetching the parameter value using GET PARAMETER and putting it into a class attribute in a particular Function Group, would it be available in other Function Groups also?
Please help.
Thank you.
2007 Nov 30 12:22 PM
Parameter IDs are specific to an individual user and are retained throughout the login.
<i>available to any programs and any sessions throughout the whole duration of a user session</i> - from the ABAP help on SAP memory.
Hence your parameter id is available in all your programs, function modules and classes.
matt
2007 Nov 30 12:30 PM
Hi Matthew,
I think what you are saying is absolutely correct provided I fetch the value of the parameter in my code using GET PARAMETER statement. In my case, I have written the GET PARAMTER statement in one Function Group (let's say A) to transer the value of that PARAMETER ID into the attribute of a public Class. Once this is done, check is performed on the value on this attribute and execute the code appropriately.
Now, my question is will the value I captured in the Class attribute in Function Group A remain visible in other Function Groups also?
Thank you.
2007 Nov 30 12:27 PM