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 in a loop

Former Member
0 Likes
636

Hi Guys,

I am stuck up in a very funny situation.I have to display an alv in a loop, i.e. alv(with same field catalog) with different set of data.And i just found that it is not possible to do so using...

REUSE_ALV_BLOCK_LIST_APPEND

and then

REUSE_ALV_BLOCK_LIST_DISPLAY

can anyone help...

thanx a loooooooooot in advance.

Hi Guys,

I am stuck up in a very funny situation.I have to display an alv in a loop, i.e. alv(with same field catalog) with different set of data.And i just found that it is not possible to do so using...

REUSE_ALV_BLOCK_LIST_APPEND

and then

REUSE_ALV_BLOCK_LIST_DISPLAY

can anyone help...

thanx a loooooooooot in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
473

Hi,

if you want to call different alv lists then you need to use these FM's.

REUSE_ALV_BLOCK_LIST_INIT

REUSE_ALV_BLOCK_LIST_APPEND

REUSE_ALV_BLOCK_LIST_DISPLAY

and refer this simple alv Program <b>BALVBT01</b>

Regards

Vijay

Read only

Former Member
0 Likes
473

Hi,

I am not very clear what exactly you want to do.

You are saying that its the same Field catalog, but a different set of data.

1. You can append the data in the same table, and show it together. If you want to differentiate the data, then you can probably colour the data differently.

2. What you can also do is to have two grids on the same screen. Have a container (CL_GUI_CUSTOM_CONTAINER_, split it into two containers (CL_GUI_SPLIT_CONTAINER), create two ALV Grids (CL_GUI_ALV_GRID). Now, use each of the grids to display the data with the same field catalog.

If you requirements are different please explain in detail.

Regards,

Ravi

Note : Please mark the helpful answers.