‎2008 Jul 04 7:12 AM
‎2008 Jul 04 7:15 AM
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
‎2008 Jul 04 7:17 AM
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..
‎2008 Jul 04 7:17 AM
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
‎2008 Jul 04 7:17 AM
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