Then, validate if the number
zero is entered and if it is, show an error message.
Solution:
REPORT z_abap101_075.
DATA v_number TYPE i.
SELECT-OPTIONS s_number FOR v_number NO INTERVALS.
AT SELECTION-SCREEN ON s_number.
LOOP AT s_number.
IF s_number-low = '0'.
MESSAGE 'Number zero is not allowed' TYPE 'E'.
ENDIF.
ENDLOOP.
Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP S/4 HANA Logistics Consultant
Contact : serkurumsal@yandex.com
Social Plugin