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

How to display two grids in same screen using SALV Method

Former Member
0 Likes
2,125

Hi Freinds,

Please let me know how to display two grids in same screen using SALV Method.

Thank you

Regards,

SDV

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,300

Catch is to split the container. Once you split it & get the container instance you can pass it to the FACTORY method of CL_SALV_TABLE.

Do you face any specific problem while doing this ?

BR,

SUhas

PS: You can refer to the program RSDEMO_SPLITTER_CONTROL to check how to split a container.

Hi Freinds,

Please let me know how to display two grids in same screen using SALV Method.

Thank you

Regards,

SDV

4 REPLIES 4
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,301

Catch is to split the container. Once you split it & get the container instance you can pass it to the FACTORY method of CL_SALV_TABLE.

Do you face any specific problem while doing this ?

BR,

SUhas

PS: You can refer to the program RSDEMO_SPLITTER_CONTROL to check how to split a container.

Read only

MarcinPciak
Active Contributor
0 Likes
1,300

Using the same concept as described in .

All you need to add is passing your new containers as r_container parementer of factory method.


"1st one
      cl_salv_table=>factory(
         EXPORTING
           R_CONTAINER    = g_top_container
          ....

"2nd one
      cl_salv_table=>factory(
         EXPORTING
           R_CONTAINER    = g_bottom_container
          ....

Regards

Marcin

Read only

Former Member
0 Likes
1,300

You can use split container as mentioned above

or just use old technique of ALV:

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

...

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'

I used it recently as the output needed to be displayed in job spool.

sample code BALVBT01.

Read only

MarcinPciak
Active Contributor
0 Likes
1,300

Thanks for points, but I believe Suhas also deserve some as he is the first who gave you the overall idea.

Chers

Marcin