GET PARAMETER in ABAP programming is used for reading the data objects in SAP memory. Before accessing, the objects should be created in SAP memory using SET PARAMETER. These data objects in SAP memory is known as SPA/GPA parameters ( also known as SET/GET parameters) .
Syntax of GET PARAMETER statement
GET PARAMETER ID pid FIELD dobj.
Here we assigning a data object named dobj in ABAP program with the content of object pid in SAP memory.
sy-subrc values
- sy-subrc=0 ( the specified SPA/GPA parameter exists in memory and its value transferred)
- sy-subrc=4 (The specified SPA/GPA parameter not exist in memory for the user)
Also Read : View Other ABAP Keywords & Syntax -> ABAP Transaction codes