Skip to main content

User Interactions

To take input from users we have multiple methods to do so.

Input TypeKeyword usedExample
Keyboard input (Text, number)PARAMETERSPARAMETERS: age TYPE I
Select from valuesSELECT-OPTIONSSELECT-OPTIONS: major FOR S_STUDY_MAJOR`

Parameters

It define a direct text input that allow user to input numerical or text. alt text

This will input the user with Two fields when the program is ran.

alt text

If the user input the data they can execute again to display data.

alt text

SELECT-OPTIONS

Using select options you can allow users to choose a values from fixed values.

Before you need to define a variable that hold the same data-element of your variable you want to define.

alt text

Then in execute you can allow user to choose from values.

alt text

Selection Frames

You can format the fields by putting them in a selection frame. alt text

Text-NUM

You can specify the Screen Title text by double clicking the TEXT-001 (Can also be TEXT-002,TEXT-003..etc). This will navigate you to a screen to specify the text for given title. Make sure to save and activate before you navigate back to the program or it will not work.

Result of these changes:

alt text

Messages

You can display pop-ups if certain condition is met.

For Example here, if the it_sflight is empty, we display an error message.


IF it_sflight IS INITIAL.
MESSAGE : 'NO DATA' TYPE 'E'
MessagedescriptionIdentifer
ErrorIndicate an Error has occured'E'
InformationInform the user that something happens'I'
SucessInform the user of Success Operations'S'

alt text