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: 

Select Option in ALV list

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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]

9 REPLIES 9

Former Member
0 Kudos

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]

0 Kudos

@Avinash

Thanks for your fast reply..Letme try it and then get back to you..

Kumar.

0 Kudos

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

0 Kudos

@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.

0 Kudos

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.

0 Kudos

@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.

0 Kudos

refer to link that i have provided (see above).......

0 Kudos

Hi,

Refer to this program BCALV_EDIT_05.

Checkbox is the internal table field which is passed to ALV.

Former Member
0 Kudos