Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

module pool- mandatory field

Former Member
0 Likes
328

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

1 REPLY 1
Read only

Former Member
0 Likes
309

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