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

radio buttons disabling functionality in OOPS ALV

Former Member
0 Likes
495

Hi,

I am facing this peculiar problem in OOPS ALV. the requirement was to have a field and 2 radio buttons in ALV as editable when user clicks on CHANGE mode. but initially the table should be in display mode.

I have used the icons in ALV to provide the radio button functioanlity and its working.. but cant find solution to these 2 issues:

1) how to make radio button display only ?

2) when appending a new row in the ALV, its just appending a row with 4 columns ( 2 of field and 2 of radio button), but it is not able to append icons by default.

KIndly provide help on this. let me know if u need to clarify anything..

Thankx in advance,

Rohan Malik

3 REPLIES 3
Read only

Former Member
0 Likes
470

Hi Rohan,

Not sure whether I understood your question correctly. I cant visualise your output .

To add icons while appending a new row to the output

First of all you need to have a field icon ( of type icon_d ) in your output table.

While appending the row you have to explicitly right the icon name to that field

l_record-icon = '@#12' something like that which you get from the type pool icons

Read only

0 Likes
470

Hi Arshad,

Actually i was using standard create new row functionality in the ALV and it was not showing the radio button (as the user wanted to have the radio button with default status on when he inserts new row.), so now i have used my own logic on my custom button.

Thanks for the answer.. as i also did the same thing..

Cheers,

Rohan

Read only

Former Member
0 Likes
470

i used the is_ready_for_input of class cl_gui_alv_grid to disable the buttons in display mode.

Thanks,

Rohan

Edited by: Rohan Malik on Nov 19, 2009 7:42 AM