Application Development 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: 

Radio Button with Table Control in Module pool

Former Member
0 Kudos

Hi Experts,

I have created a zsceen, where i have made 2 radio buttons and 1
table control. Now based on the selection of radio buttons my requirement is to
display table control in read or edit mode. For this i have grouped the radio
buttons and on PBO i have wriiten the code like this.

if sy-ucomm = 'RADIO' AND RB1 = 'X'.

     screen-input = 0.

    ELSEIF sy-ucomm = 'RADIO' AND RB2 = 'X'.

     screen-input = 1.

   ENDIF.

   modify screen.

But my problem is at the very first time when screen gets opened
, sy-ucomm value is not correct and  my first radio button RB1 is
selected, whose value does not come when i debug and hence my table
control is not getting changed.

In short my radio button above functionality is not getting met.

Can you please let me know what to do in this case? Looking
forward for an early reply.

  1. Thanks.
3 REPLIES 3

Former Member
0 Kudos

Hi Prachi,

Please write it in PAI event.

Regards

Purnand

Former Member
0 Kudos

Hi Prachi,

Did you get the solution? If yes please close the thread.

Regards

Purnand

Former Member
0 Kudos

Hi gupta..

Hope you have set the function code correctly,and the name of the radio buttons as 'RB1' and 'RB2'.

It would be more clear if you paste your code.

Thanks

Askar