cancel
Showing results for 
Search instead for 
Did you mean: 

2 ALVu00B4s on the same screen

former_member182371
Active Contributor
0 Kudos

Hi,

i need to display 2 ALV´s on the same screen.

How can i do it?

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi calsadillo,

it is possible. You must use "ALV Blocks". Pls have a look into demo programs BALVBT01 and BALVBT02.

The point is, you must call FM 'REUSE_ALV_BLOCK_LIST_INIT' in order to initialize. Then call 'REUSE_ALV_BLOCK_LIST_APPEND' or 'REUSE_ALV_BLOCK_LIST_HS_APPEND' for every ALV list you want to display (the former for plain ALV, the latter for hierarchical ALV). Finally, call 'REUSE_ALV_BLOCK_LIST_DISPLAY' to display the whole result.

Please let us know if it helped. BR,

Alvaro

Former Member
0 Kudos

Hi Alvaro,

The program examples you have mentioned is for the List display, how does it work if I want 2 ALVs grid display on the same screen. Could you brifly tell me the step-wise FM that needs to be called for it.I have a scenario, like I have a selection screen with checkbox, if it's unchecked then it should display 1 ALV grid display and if it's checked then it should display me 2 ALVs grid display on the screen. Hope you got what I'm looking for.

Best Regards,

Mira

Former Member
0 Kudos

Hi Mira,

I'm afraid there are no grid block ALV display, just for list display. If you want 2 ALVs you should create a container in your dynpro, then split it, then use ALV controls for each of your splittings

BR,

Alvaro

Former Member
0 Kudos

I can understand but then again that would need effort to re-structure the program.Can I do one thing, if I have to display one GRid...I could use REUSE_GRID_DISPLAY. And when I need to display 2 ALV's on the screen....could I use using REUSE_LIST_DISPLAY. the one you have given above the sequences of FM to be used. Could you give the FM sequence for LIST_DISPLAY of 2 ALV's on the screen as event wise.Please suggest

Thanks

Mira

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

Are you using CL_GUI_ALV_GRID or the function module?

if its CL_GUI_ALV_GRID then you can achieve the same by having splitter container, or two custom containers.

Regards

Raja

IanStubbings
Active Participant
0 Kudos

I recently wrote a program that has 1 to 3 ALVs on one screen. They are determined by selections on the front screen and then setup using an HTML header, splitter containers and ALVs using field symbols.

These are obviously setup using the classes rather the function modules.

Let me know if you want further details.

Ian

Former Member
0 Kudos

Hi Ian,

Could you send me the program which you did to display 1 to 3 ALVs on a screen for a reference . You could mail me to mirasahu@yahoo.com

Best Regards,

Mira

IanStubbings
Active Participant
0 Kudos

I'll send it over tomorrow, Mira.

Drop me an email at ianstubbings@hotmail.com to remind me though.

Cheers

Ian

IanStubbings
Active Participant
0 Kudos

Mira

You have email.

Ian

Former Member
0 Kudos

Thanks Ian for that program, it is really a good one.

Kind Regards,

Mira

Former Member
0 Kudos

Hi Ian,

Can you send me that program.

I'm trying to do the same !

Gert-Jan