Using selection-screen Parameters in SAP ABAP


How to add an input field in Selection Screen using SAP ABAP ? Using Parameters in SAP ABAP Programming

A+ A-

PARAMETERS statement is used to create a single input field, check box, radio buttons on the selection screen .
Syntax : 
PARAMETERS <P_NAME> TYPE <TABLE-FIELD>. " General parameter for a input field

PARAMETERS <P_NAME> TYPE <TABLE-FIELD> OBLIGATORY. "Parameter for mandatory input field

PARAMETERS <P_NAME> AS CHECKBOX. " Parameter for check box printing


PARAMETERS <P_NAME1> RADIOBUTTONGROUP <RADIOBUTTON GROUP>. " Print Radio button group
PARAMETERS <P_NAME2> RADIOBUTTONGROUP <RADIOBUTTON GROUP>. " Print Radio button group
PARAMETERS <P_NAME2> RADIOBUTTONGROUP <RADIOBUTTON GROUP>. " Print Radio button group

Examples of using parameters in SAP ABAP

PARAMETERS : P_MATNR TYPE MARA-MATNR .

The above statement prints a input field on selection-screen like below.

Using Parameters in SAP ABAP

PARAMETERS : P_CHK AS CHECKBOX .

The above statement prints a check box on selection-screen like below.

Using Parameters in SAP ABAP

**Radiobutton group is nothing but a group of radiobuttons
PARAMETERS : P_RADIO1 RADIOBUTTON GROUP RG1.
PARAMETERS : P_RADIO2 RADIOBUTTON GROUP RG1.
PARAMETERS : P_RADIO3 RADIOBUTTON GROUP RG1.

The above statement prints a radio button group on selection-screen like below.

Using Parameters in SAP ABAP


Learner Questions

No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question


    Was this lesson helpful to you? Yes No 130 People out of 140 think this lesson helpful

    Lesson Navigation

    Select Statements types← Previous Lesson
    Next Chapter →