GET PARAMETER

GET

Effect

Transfers the value stored under the key pid from the global user-related SAP memory to the field f.
The key pid must consist of three characters. For an overview of the keys (parameters) used, refer to the SAP system description or the appropriate function in the ABAP/4 Development Workbench.

The

return code

is set as follows:

(as of Release 4.0!)

SY-SUBRC = 4:

No value was found in SAP memory under the specified key.

SY-SUBRC is only set as of Release 4.0! For Releases 3.x, you can test whether GET PARAMETER has read something by first setting the result variable f to an invalid value and then reading the variable (see also Note 63161).

Example

Read the program name from SAP memory:

DATA : REPID LIKE SY-REPID. 
GET PARAMETER ID 'RID' FIELD REPID.

Related

SET PARAMETER