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

ALV for user selection

Former Member
0 Likes
901

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
Read only

Former Member
0 Likes
867

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

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,

7 REPLIES 7
Read only

Former Member
0 Likes
867

Hi,

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

Regards,

--

Przemysław

Read only

Former Member
0 Likes
867

hi,

see the following standard program

BCALV_TEST_GRID_EDITABLE

hope this helps

regards

Ritesh

Read only

0 Likes
867

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

Read only

0 Likes
867

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

Read only

Former Member
0 Likes
867

Hi Eric,

Please refer to Standard Program BCALV_EDIT_05.

Hope this helps.

Regards,

Chandravadan

Read only

Former Member
0 Likes
868

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

Read only

Former Member
0 Likes
867

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