Skip to Content
0
Jun 01, 2011 at 06:37 AM

Trigger AT SELECTION-SCREEN OUTPUT after START-OF-SELECTION.

2505 Views

Hi,

is it possible to trigger the event AT SELECTION-SCREEN OUTPUT after the START-OF-SELECTION event ?

PARAMETERS: p_tel TYPE i.

AT SELECTION-SCREEN OUTPUT.

  IF p_tel > 10.
    p_tel = 10.
  ELSEIF p_tel > 5.
    p_tel = 5.
  ENDIF.

START-OF-SELECTION.

* trigger AT SELECTION-SCREEN OUTPUT ?

  WRITE:/ 'P_TEL = ', p_tel.

If user fills 6 and press enters, the input field value is set to 5.

But if the value is 6 and the user press Execute, the field value will stay 6.

regards,

Hans