‎2007 Feb 27 7:24 PM
‎2007 Feb 27 7:31 PM
Hi,
<b>SET PARAMETER</b>
Writes the contents of the field f to the global user-specific SAP memory
<b>Ex</b>
DATA REPID like sy-repid VALUE 'RSPFPAR'.
SET PARAMETER ID 'RID' FIELD REPID.
<b>GET PARAMETER</b>
Transfers the value stored under the key pid from the global user-related SAP memory to the field f.
<b>Ex</b>
DATA : REPID LIKE SY-REPID.
GET PARAMETER ID 'RID' FIELD REPID.
Thanks,
Naren
‎2007 Feb 27 7:59 PM
hi,,
SET PARAMETER ID 'VKO' FIELD p_vkorg.
set the value to sap memory under id vko for p_vkorg.
GET PARAMETER ID 'VKO' FIELD p_vkorg1.
get the value from sap memory under id vko to p_vkorg1.
__________________________________________________________________
data vkorg type tvko-vkorg.
p_vkorg1 TYPE tvko-vkorg.
initialization.
clear vkorg.
get parameter id VKO field vkorg.
if not vkorg is initial.
p_vkorg1 = vkorg.
endif.
____________________________________________________________________
‎2007 Feb 28 10:25 AM
hi
set parameter and get paratemeter statements are quite opposite to import memory and export memory statements. set parameter and get paratemeter statements are said to be global memory which stores the values in the system memory called the hide area and when use any interactive events, the values are restored from there. These statements helps to store and retrieve the values from any sessions but where as abap memory statements are used only within the session i.e internal session. SET and GET parameter statements are used can be used in external sessions.
regards,
shamim
‎2007 Feb 28 10:30 AM
Hello,
What is the difference between SAP memory and ABAP memory?
SAP Memory is a global memory area which all sessions within a
SAPgui have access to. This allows for passing data between
sessions. The SET PARAMETER ID and GET PARAMETER ID statements are
used to manipulate the SAP Memory.
SET PARAMETER ID 'MAT' field p_matnr.
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'.
Vasanth