Application Development and Automation 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: 
Read only

what is set parameter id and get parameter id?

Former Member
0 Likes
56,923

hello all

what is set parameter id and get parameter id?

4 REPLIES 4
Read only

Former Member
25,800

Hi,

This syntax is used to store values from variables, structures, internal tables in SAP memory.

You store values in memory using the 'SET' syntax and retrive the same using 'GET' syntax.

You can get the actual syntax using F1 help.

PLEASE REWARD POINTS IF HELPFUL.

Thanks,

Kunal

Read only

Former Member
0 Likes
25,800

hi,

SET PARAMETER ID pid FIELD f.

Writes the contents of the field f to the global user-specific

SAP memory under the ID pid.Parameter IDs can be up to 20 characters long. They cannot consist entirely of spaces.

The global, user-specific SAP memory is available to a user

for the duration of a single terminal session. Values written to it are retained even when the user exits a program.

GET PARAMETER ID pid FIELD f.

Transfers the value stored under the key pid from the global user-related SAP memory to the field f.

hope this will clear you abt set and get parameters..

Read only

sachin_mathapati
Contributor
0 Likes
25,799

Hello,

Enter 'F1' on SET or GET in ABAP Editor to know about set or get..

SET Paramater :

Syntax :

SET PARAMETER ID pid FIELD f.

Writes the contents of the field f to the global user-specific SAP memory under the ID pid. SAP-Memory geschrieben. Wenn unter diesem Any existing value under the same ID is overwritten.

Parameter IDs can be up to 20 characters long. They cannot consist entirely of spaces. The SAP system description contains an overview of parameter IDs. You can also produce a list using the ABAP Workbench.

GET :

GET PARAMETER ID pid FIELD f.

Transfers the value stored under the key pid from the global user-related SAP memory to the field f.

A parameter ID can be up to 20 characters long. For an overview of the keys (parameters) used, refer to the SAP system description or the appropriate function in the ABAP Workbench.

Reward if Helpful..

Regards,

Sachin M M

Read only

Former Member
0 Likes
25,799

Hi,

The SET PARAMETER ID and GET PARAMETER ID statements are

used to manipulate the SAP Memory.

The SET PARAMETER ID will set the value of the parameter that we specify in the SAP Memory.

This value is accesible across transactions.

For example, if you create a sales order in VA01 transaction, you can see the new sales order number already present, if you open the VA03 transaction.

This is because the VA01 transaction uses the SET Parameter statement in its main program.

GET PARAMETER ID 'MAT' field p_matnr.ABAP Memory is a memory area which all programs in the call stack

within the same internal session can access. The EXPORT and IMPORT

statements are used here.

export p_matnr = p_matnr to memory id 'ZTESTMAT'.

import p_matnr = p_matnr from memory id 'ZTESTMAT'.

Hope this helps you.

Reward points if helpfull

Thanks & Regards,

Y.R.Prem Kumar