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

multiple selection in alv

Former Member
0 Likes
857

how to select multiple values in the generated output list for futher selection criteria in alv's without using oop's concept

basically using " reuse_alv_grid_display" function module

1 ACCEPTED SOLUTION
Read only

bpawanchand
Active Contributor
0 Likes
812

Hi

First, are you using the function module 'REUSE_ALV_GRID_DISPLAY'.

If so, MAYBE u can try this.

1. In the internal table for displaying in ALV, u can add a field

say 'SELK'.

2. In the ST_LAYOUT, you assign the name of this field to the field

"BOX_FIELDNAME" in ST_LAYOUT structure.

FORM layout_build USING p_st_layout TYPE slis_layout_alv.

...

p_st_layout-box_fieldname = 'SELK'. " Checkbox

...

ENDFORM. " LAYOUT_BUILD

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

...

is_layout = st_layout

...

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER* ES_EXIT_CAUSED_BY_USER TABLES

t_outtab = itab.

For further reference

http://www.sapdev.co.uk/reporting/alv/alvgrid_rowsel.htm

Regards

Pavan

5 REPLIES 5
Read only

bpawanchand
Active Contributor
0 Likes
813

Hi

First, are you using the function module 'REUSE_ALV_GRID_DISPLAY'.

If so, MAYBE u can try this.

1. In the internal table for displaying in ALV, u can add a field

say 'SELK'.

2. In the ST_LAYOUT, you assign the name of this field to the field

"BOX_FIELDNAME" in ST_LAYOUT structure.

FORM layout_build USING p_st_layout TYPE slis_layout_alv.

...

p_st_layout-box_fieldname = 'SELK'. " Checkbox

...

ENDFORM. " LAYOUT_BUILD

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

...

is_layout = st_layout

...

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER* ES_EXIT_CAUSED_BY_USER TABLES

t_outtab = itab.

For further reference

http://www.sapdev.co.uk/reporting/alv/alvgrid_rowsel.htm

Regards

Pavan

Read only

Former Member
0 Likes
812

hi,

Plz refer to this link.

http://www.sapdev.co.uk/reporting/alv/alvgrid_rowsel.htm

hope this will hel;p.

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
812

hi,

Display a check box in the report output for multiple selections ....Check out the below links for the same

http://www.sapfans.com/forums/viewtopic.php?t=88376

http://www.sapfans.com/forums/viewtopic.php?t=40968

http://www.sapfans.com/forums/viewtopic.php?t=6919

Regards,

Santosh

Read only

Former Member
0 Likes
812

Hi Ramesh,

Check out this following link, which has the complete code:

http://www.sapfans.com/forums/viewtopic.php?f=13&t=307935

Hope this helps you.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
812