Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

set

Former Member
0 Kudos

what is the difference between set and get parameters.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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>

Former Member
0 Kudos

Hi sandeep,

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

Try F1 on set or get.

Regards, Dieter