‎2009 Nov 17 7:20 AM
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
‎2009 Nov 18 6:40 PM
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
‎2009 Nov 19 6:39 AM
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
‎2009 Nov 19 6:40 AM
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