01-21-2009 4:27 PM
Hi Everyone,
I need a radiobutton on each line item on the alv output to select that specific line item. When you go into VL06D and display items there is a select option available beside the delivery number.I am trying to achieve something like this.I am not sure how to do this. Can anyone help me in this.
Thanks
Kumar.
01-21-2009 4:32 PM
Hi,
Instead of Radiobutton you can have the check boxes. As of my knowledge radio buttons are not possible in ALV.
Refer these links..[Check boxes in ALV|https://www.sdn.sap.com/irj/scn/advancedsearch?query=checkboxesin+ALV&cat=sdn_all]
01-21-2009 4:32 PM
Hi,
Instead of Radiobutton you can have the check boxes. As of my knowledge radio buttons are not possible in ALV.
Refer these links..[Check boxes in ALV|https://www.sdn.sap.com/irj/scn/advancedsearch?query=checkboxesin+ALV&cat=sdn_all]
01-21-2009 4:35 PM
@Avinash
Thanks for your fast reply..Letme try it and then get back to you..
Kumar.
01-21-2009 4:37 PM
hi,
search the SCN with this text [Check boxes using ALV|https://www.sdn.sap.com/irj/scn/advancedsearch?query=checkboxesusing+ALV&cat=sdn_all] you will find lot of threads
Edited by: Avinash Kodarapu on Jan 21, 2009 10:13 PM
01-21-2009 5:02 PM
@Avinash
I am getting the radio button on the screen.Thank you very much for that. Got one more doubt. Is there a way that it already comes as clicked instead of unclicked. There may be huge number of records and they dont want to click each line item..Instead they want to unclick those that they dont need.
Thanks
Kumar.
01-21-2009 5:06 PM
Hi,
Pass the value to the radio button as 'X' in the internal table if this is part of the internal table Field.
when alv is displayed it show as if all are selected.
01-21-2009 5:08 PM
@Avinash
if f_cat-seltext_m = 'Select'.
f_cat-col_pos = 1.
f_cat-seltext_l = 'EDIT'.
f_cat-Checkbox = 'X'.
f_cat-EDIT = 'X'.
endif.
I am already passing f_cat-checkbox = 'X'.
Thanks
Kumar.
01-21-2009 5:20 PM
01-21-2009 5:21 PM
Hi,
Refer to this program BCALV_EDIT_05.
Checkbox is the internal table field which is passed to ALV.
01-21-2009 4:52 PM
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/abap-RadioButtonsinALVGRIDREPORT