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 lists in ALV

Former Member
0 Likes
756

Hi,

How can i create multiple lists in ALV reports ???

Eg: Form user_command using r_ucomm like sy-ucomm

     rs_selfield type slis_selfield.

     case r_ucomm.

     when '&IC1'.

perform build_field_cat.

perform fetch data.

perform display_data.

     when '&IC2'.

perform build_field_cat.

perform fetch data.

perform display_data.

     when '&IC3'.

perform build_field_cat.

perform fetch data.

perform display_data.

endform.

In the above case r_ucomm value is not changing to &IC2 for second list OR sy-lsind value is not changing to 2, 3,4......

Is it possible to use at line selection in ALV interactive reports ???.

Please help on the same.

Best Regards,

Dhananjay.

Hi,

How can i create multiple lists in ALV reports ???

Eg: Form user_command using r_ucomm like sy-ucomm

     rs_selfield type slis_selfield.

     case r_ucomm.

     when '&IC1'.

perform build_field_cat.

perform fetch data.

perform display_data.

     when '&IC2'.

perform build_field_cat.

perform fetch data.

perform display_data.

     when '&IC3'.

perform build_field_cat.

perform fetch data.

perform display_data.

endform.

In the above case r_ucomm value is not changing to &IC2 for second list OR sy-lsind value is not changing to 2, 3,4......

Is it possible to use at line selection in ALV interactive reports ???.

Please help on the same.

Best Regards,

Dhananjay.

3 REPLIES 3
Read only

gouravkumar64
Active Contributor
0 Likes
622

HI,

Sap program BALVBT01 will give u some good idea,

2)Otherwise,

try like this

U have to call 4 Function modules in sequence

1)

declare data with type pools slis.

2)Then select your requiremnt,

3)Then call function reuse_alv_fieldcatalog_merge, (multiple times as u want, suppose 2 times)

4)call function   REUSE_ALV_BLOCK_LIST_INIT,(1 times)

5)Then call REUSE_ALV_BLOCK_LIST_APPEND(Multiple times as u want -here 2 times)

6)Last REUSE_ALV_BLOCK_LIST_DISPLAY

Hope your output  list will come for 2 times.

Thanks

Gourav.

Read only

0 Likes
622

Hi Gourav,

I want to disply second list with using separate field catalog coz secondary list will have different data.

Can't we do it like Normal interactive using At line-selection event (HIDE & LSIND) in Grid display ???.

Thanks,

Thananjay.

Read only

0 Likes
622

If we call submit report statement

     when '&IC1'.

           submit Report.

may be this can work?