Skip to Content
0
Former Member
Jul 17, 2008 at 04:21 PM

module pool- mandatory field

19 Views

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