In this post we will discuss about the SAP memory
sap memory
SAP memory is a memory area to which all main sessions within a SAPgui have access.You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another.Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters).These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement.Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement.
The most frequent use of SPA/GPA parameters is to fill input fields on screens.
*Declare the field name and the variable.
DATA:l_v_vbeln_fname TYPE fieldname,
l_v_vbeln TYPE vbeln,
*Pass the data to the locla variable and then pass it to the field name.
l_v_vbeln = '123456789'.
l_v_vbeln_fname = l_v_vbeln.
*Set the parameter id.Here you cna specify any name.
SET PARAMETER ID 'SASI' FIELD l_v_vbeln_fname.
CLEAR: l_v_vbeln,l_v_vbeln_fname.
*write this code in the program where we want to get this field value from SAP memory
GET PARAMETER ID 'SASI' FIELD l_v_vbeln_fname.
*The value is determined from the memory and will be stored in l_v_vbeln_fname.
l_v_vbeln = l_v_vbeln_fname.
Regards,
Sasidhar
No comments:
Post a Comment