‎2008 Jul 17 5:21 PM
hi all,
i have got 3 radio buttons
when i click first button it should ask me that, enter the value in text field i.e it should be mandatory.....
this is my code.......
IF ADD = 'X'.
RES = VAR1 + VAR2.
ELSEIF SUB = 'X'.
if var1 > var2.
RES = VAR1 - VAR2.
else.
message E001(zabc) with 'error'.
endif.
ELSEIF MUL = 'X'.
RES = VAR1 * VAR2.
ENDIF.
for ur information i manage the beloe code........
loop at screen.
if ADD = 'X'.
IF SCREEN-NAME = 'VAR1 '.
screen-REQUIRED = '1'.
ENDIF.
endif.
ENDLOOP.
but exactly where to write this code........
regards,
Pawan
‎2008 Jul 17 5:28 PM
Hi,
in AT SELECTION_SCREEN event write your code:
if add = 'X'.
if var1 is initial and var2 is initial.
message .....
endif.
endif.
Regards,
Subramanian