SET
Basic form 5
SET PARAMETER ID pid FIELD f.
Effect
Writes the contents of the field f to the global
SAP memory under the key pid . If the
key already contains a value, it is overwritten.
The key pid must consist of three characters. You can find a
list of the keys (parameters) used in the SAP system description or in
the ABAP/4 Development Workbench.
Notes
-
The global SAP memory remains available to the
user during the entire terminal session. This means that set values
are retained when you leave a program.
-
You should not use the SAP memory for temporary storage of
values because other modes use the same global memory.
-
If you need a new key (parameter), you can create this in the ABAP/4
Development Workbench.
Example
-
DATA: REPID(8) VALUE 'RFSCHU01'.
SET PARAMETER ID 'RID' FIELD REPID.
Sets the program name, e.g. for transfer to another program.
Notes
Runtime errors
-
SET_PARAMETER_ID_TOO_LONG : Key longer than 3 characters.
-
SET_PARAMETER_ID_WRONG_TYPE : Key neither type C nor type N.
-
SET_PARAMETER_VALUE_TOO_LONG : Value longer than 250
characters.
Related
GET PARAMETER
Index
© SAP AG 1996