ABAP How to add user parameters

  Edit Data

How to create user parameters (SAP memory)

Open table: TPARA with transaction code: SM30 or SM32.
Enter the name you want to create in Set / Get parameter ID name and save.
This completes the parameter creation.

How to set a fixed value

If this parameter is always a fixed value, set the value of the parameter for each user with transaction code: SU01.
Open transaction code: SU01 in change mode and go to the Parameters tab.
Enter the name created above in Set / Get parameter ID, enter a value in parameter value, and save.

How to set parameter values dynamically

If you need to change the value dynamically by the program, use the function module: G_SET_USER_PARAMETER to set the value.
The usage is as follows:
CALL FUNCTION ‘G_SET_USER_PARAMETER’
EXPORTING
parameter_id = ‘ZTEST’
parameter_value = lv_padest.

How to learn values
To get the value, you can use the GET PARAMETER command.
DATA TEXT(40) TYPE C .
GET PARAMETER ID ‘ZTEST’ FIELD TEXT.

LEAVE A COMMENT