In SAP ABAP, the concept of parameters spans multiple areas of the language, primarily used for user selection screens, modularization units (methods/functions), global SAP memory, and Core Data Services (CDS) views.
Selection Screen Parameters (PARAMETERS)
The PARAMETERS statement declares an elementary data object bound to an input field on a visual selection screen.
Syntax and Scope: Names are limited to a maximum of 8 characters. It accepts only single values, unlike SELECT-OPTIONS which accept ranges.
PARAMETERS: p_bukrs TYPE bukrs OBLIGATORY, "Required input
p_date TYPE d DEFAULT sy-datum, "Pre-filled default date
p_chk AS CHECKBOX. "Rendered as a checkbox
Common Formatting Additions:
-----------------------------------------------------
OBLIGATORY: Makes the selection screen input field mandatory.
DEFAULT val: Pre-populates the field with a default start value.
LOWER CASE: Prevents the system from converting the character inputs to uppercase.
AS CHECKBOX / RADIOBUTTON GROUP grp: Changes the visual rendering on screen.
NO-DISPLAY: Hides the parameter from the user interface while keeping it active in code.
MEMORY ID id: Binds the field to a SAP memory ID to auto-fill previous session entries