Application Development 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: 

is it possible to display 2 or more ALV lists in the same form?

Yasin
Active Participant
0 Kudos

Hi,

for example i have the following select statements:

SELECT ekbeebeln EKBEbelnr EKBEbewtp ekbebudat ekbedmbtr ekbewrbtr

from EKBE into CORRESPONDING FIELDS OF TABLE ITAB1

WHERE ekbeebeln IN s_ebeln AND ekbebelnr IN s_belnr AND EKBE~bewtp EQ 'E'.

SELECT ekbeebeln EKBEbelnr EKBEbewtp ekbebudat ekbedmbtr ekbewrbtr

from EKBE into CORRESPONDING FIELDS OF TABLE ITAB2

WHERE ekbeebeln IN s_ebeln AND ekbebelnr IN s_belnr AND EKBE~bewtp EQ 'Q'.

i can display ITAB1 in ALV list. but is it possible to display ITAB2 in another ALV List beside the first one?

if yes please give a hint how to do that. thaaaanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Split container or docking containers are the answer for you. You can even display more then two ALV is single screen( docking container )

9 REPLIES 9

Former Member
0 Kudos

Hi,

You can display multiple lists using blocked ALV.

below are examples.

http://wiki.sdn.sap.com/wiki/display/Snippets/blockedalvwith6tables

Former Member
0 Kudos

Hi,

You can use ALV with Class Containers so that, you can split the container.

Former Member
0 Kudos

Split container or docking containers are the answer for you. You can even display more then two ALV is single screen( docking container )

former_member1245113
Active Contributor
0 Kudos

HI Yasin,

Check the below thread

Ho[How to dispaly Three Internal Table Data (One below another) in ALV OOPS |;

Cheerz

Ram

0 Kudos

thnaks a lot guys , your gave me a lot of ideas to go through.

Former Member
0 Kudos

Check this standard program BCALV_TEST_GRID_DRAG_DROP to get your logic for displaying two grids vertically.

Former Member
0 Kudos

Use the following piece of code


*Display error log.
  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
      i_callback_program       = sy-repid
      i_callback_user_command  = c_usercmnd
      i_callback_pf_status_set = c_pfstatus.

  PERFORM f_create_fieldcatalog  "Create field catalog for table ITAB1


  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
      it_fieldcat                = i_fieldcat
      i_tabname                  = 'ITAB1'
      it_events                  = i_events
    TABLES
      t_outtab                   = itab1
    EXCEPTIONS
      program_error              = 1
      maximum_of_appends_reached = 2
      OTHERS                     = 3.

  FREE i_fieldcat.

  PERFORM f_create_fieldcatalog. "Create field catalog for table ITAB2



  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
      it_fieldcat                = i_fieldcat
      i_tabname                  = 'ITAB2'
      it_events                  = i_events
    TABLES
      t_outtab                   = itab2
    EXCEPTIONS
      program_error              = 1
      maximum_of_appends_reached = 2
      OTHERS                     = 3.

  FREE i_fieldcat.



Yasin
Active Participant
0 Kudos

Dear Abhisheksingh

can i use the same logic in the above code with the ALV Grid?

Regards

0 Kudos

i dont think so .

As the name suggests it is for LIST only.

Havent tried that with ALV grid