Skip to Content
author's profile photo Former Member
Former Member

Scope of GET PARAMETER

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 30, 2007 at 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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 12:27 PM

    hi

    For the statements GET PARAMETER ID pid FIELD f and GET PARAMETER ID pid FIELD f,

    f must be character-type. You can use the EXPORT and IMPORT statements for storing

    non-character-type fields and structures.

    <b>

    Where's the best place to set & get parameter ID

    regards,

    pavan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.