Register Login

Types of Selection Screen Event

Updated May 19, 2018

What are the Various Types of Selection Screen Event?

Types of Selection Screen Events

  • Intialization
  • At selection-screen
  • At selection-screen output
  • At selection-screen on
  • At selection-screen on block
  • At selection-screen on help-request
  • At selection-screen on RADIOBUTTON
  • At selection-screen on value-request

Initialization

  • This is triggered only one time prior to when the screen is presented to the user for very first time
  • It is used to intialize Selection-Screen comments, Pushbuttons with Values

At Selection Screen

  • Basic form of a series of events
  • These events are called between INITIALIZATION and START-OF- SELECTION.
  • Defined to change selection screen or process user input, i.e. Validations, etc.

At Selection Screen Output

Allows you to modify selection-screen directly before it is displayed.

EXAMPLE

Parameters: test1(10),
test2(10), test3(10), test4(10).
At selection-screen output.
Loop at screen.
If screen-name = ‘test1'. Screen-intensified = '1'. Modify screen.
Continue.
ENDIF.
If screen-name = ‘test3'.
Screen-input = '0'. Modify screen.
ENDIF.
Endloop.

AT SELECTION-SCREEN ON <field>

Is triggered when the contents of the field are passed from the selection screen to the ABAP program.

EXAMPLE

At selection-screen on test1.
IF TEST1 = ‘not OK’.
Message e001.
ENDIF.

AT SELECTION-SCREEN ON BLOCK <block>

Is triggered when the contents of all of the fields in a block are passed from the selection screen to the ABAP program

EXAMPLE.

Selection-screen begin of block part1 with frame.
Parameters: number1 type i,
number2 type i, number3 type i.
Selection-screen end of block part1.

At selection-screen on block part1.
If number3 LT number2 or number3 LT number1 or number2 LT number1.
Message e020.
ENDIF.

AT SELECTION-SCREEN ON HELP-REQUEST FOR <field>

Is triggered when the user calls the F1 help for the field <field>.

EXAMPLE

At selection-screen on help-request for p_CARR_2.
Call screen 100 starting at 10 5
ending at 60 10.

AT SELECTION-SCREEN ON RADIOBUTTON GROUP <radi>

Is triggered when the contents of all of the fields in a radio button group are passed from the selection screen to the ABAP program.

EXAMPLE

At selection-screen on RADIOBUTTON group rad1.
If r1 = 'x'.
Message w040.
ENDIF.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>

Is triggered when the user calls the F4 help for the field <field> E.G.

At selection-screen on value-request for p_CARR_2.
Call screen 100 starting at 10 5
ending at 50 10. Module value_list output.

Related: Attach Search Help to Selection Screen Field in ABAP


Comments

  • 09 Aug 2017 1:13 pm Chandan Singh Parihar Helpful Answer

    initialization 
    at selection-screen
    start-of-selection
    get
    end-of-selection 

    at line-selection 
    at pfn 
    at user-command 

    top-of-page 
    end-of-page 

  • 09 Aug 2017 1:48 pm Sushma Helpful Answer
    1. Initialization
    2. At selection screen
    3. Start-of-Selection 
    4. End-of-Selection

×