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: 

ALV for user selection

Former Member
0 Kudos

Hi all,

Can anyone help me how can i get the ALV with check boxes when user selects particular records and selection process further will happen for that records.

Thanks in advance,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hiii....

for doing furthur selection to alv list display ..

go through the following link ..were code snippet is given /..

if you want check boxes

http://sap.ittoolbox.com/groups/technical-functional/sap-dev/adding-checkboxes-to-alv-530043

the extra peice of code that you have to add to fieldcat ...is given

and the sap help link for check boxes in alv ....is

http://help.sap.com/saphelp_sm32/helpdata/EN/26/46fb40f17af66fe10000000a1550b0/content.htm

he used radio buttons ...

http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-RadioButtonsinALVGRIDREPORT

I think the above information will do the job for you

7 REPLIES 7

Former Member
0 Kudos

Hi,

in field catalog there is field CHECKBOX - set it to 'X'.

Regards,

--

Przemysław

Former Member
0 Kudos

hi,

see the following standard program

BCALV_TEST_GRID_EDITABLE

hope this helps

regards

Ritesh

0 Kudos

THanks for the inputs ,i also want to further process with the selected data how can i process the selected records

0 Kudos

Hi,

field connected with checkbox will be set to X for selected rows.


LOOP AT itab.
  IF itab-field_with_checkbox IS NOT INITIAL.
    " processing...

Regards,

--

Przemysław

Former Member
0 Kudos

Hi Eric,

Please refer to Standard Program BCALV_EDIT_05.

Hope this helps.

Regards,

Chandravadan

Former Member
0 Kudos

hiii....

for doing furthur selection to alv list display ..

go through the following link ..were code snippet is given /..

if you want check boxes

http://sap.ittoolbox.com/groups/technical-functional/sap-dev/adding-checkboxes-to-alv-530043

the extra peice of code that you have to add to fieldcat ...is given

and the sap help link for check boxes in alv ....is

http://help.sap.com/saphelp_sm32/helpdata/EN/26/46fb40f17af66fe10000000a1550b0/content.htm

he used radio buttons ...

http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-RadioButtonsinALVGRIDREPORT

I think the above information will do the job for you

Former Member
0 Kudos

hi,

sort the table by which you fill the ALV in DESCENDING order

and loop on the table where check_box = 'X'.

you find the desired row

hope this helps

Regards

Ritesh