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

set

what is the difference between set and get parameters.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 02:10 PM

    When a user or an application (e.g. via RFC) logs on to an SAP system, he, she, or it connects to a certain application server where a User Session is created. The common memory of a User Session is the so-called SAP Memory. ABAP programs have access to SPA/GPA parameters stored in the SAP memory. SPA/GPA parameters (or SET/GET parameters) are set using SET PARAMETER and read with GET PARAMETER. Input fields on Dynpro screens can be linked with SPA/GPA parameters. When a screen is called, the default values of such input fields are taken from the SAP Memory. When the screen is left, the field values are stored in SAP Memory (thatÂ’s why you always find the name of the last edited program in the input field of the ABAP Editor SE38). SPA/GPA parameters are managed in the database table TPARA.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 02:11 PM

    Hi,

    SET parameter will set a value for PID.

    GET will fetch the value which is set for the PID.

    Reward points for all useful answers.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

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

    Hi,

    SET PARAMETER and GET PARAMETER are used when you are dealing with SAP MEMORY.

    Meaning - You have multiple sessions open. Now you want to access from variables declared locally in different sessions.

    You can use

    SET PARAMETER to assign the value to SAP Memory and using

    GET PARAMETER you can retreive the values assigned by previous statement in a different session.

    <b>Reward Points for helpful answers</b>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 02:13 PM

    Hi sandeep,

    it's often usefull to press F1 on a statement.

    Try F1 on set or get.

    Regards, Dieter

    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.