5 How to Read Input field values from user in ABAP

Опубликовано: 25 Июнь 2026
на канале: SAP Full Stack Custom Development
150
6

In ABAP, reading user input is primarily done through Selection Screens for reports or Function Modules for interactive pop-ups. Unlike languages like Python, ABAP uses specific keywords to automatically generate input fields on a screen.

1. Selection Screen (Standard Reports)
This is the most common way to get input. You define parameters at the top of your program, and SAP handles the UI.

PARAMETERS: Used for single values (e.g., one Material Number).

PARAMETERS: p_matnr TYPE matnr. " Single input field


SELECT-OPTIONS: Used for complex inputs, such as a range of values or multiple individual entries.

DATA: s_matnr TYPE matnr.
SELECT-OPTIONS: s_range FOR s_matnr. " Range/multiple input field

In SAP ABAP, "system values" typically refer to system fields (also known as system variables). These are predefined variables maintained by the ABAP runtime environment that provide real-time information about the system state, user context, and operation results.