Skip to Content
author's profile photo Former Member
Former Member

How can I add Two ALV GRID's into one page

Hello Friends,

Can anybody tell me how to Display two ALV GRID's in a single page,

One after the other?

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 07:15 AM

    Hi Prathap,

    U need to display using Blocked ALV's ,

    Reuse_Alv_Blocklist_init,

    Reuse_Alv_Blocklist_Display.

    Thanks&Regard's

    Bhaskar Rao.M

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 07:18 AM

    you use it in simple or in ocx

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 02, 2007 at 07:19 AM

    Use the FM : REUSE_ALV_BLOCK_LIST_APPEND

    See the program : BALVBT01

    Regards

    Gopi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 02, 2007 at 07:31 AM

    Hello Pradeepareddy

    Basically we have to use <b>splitter containers</b> in order to display multiple controls on a single screen.

    Have a look at the following sample reports:

    alv

    You will find lots of sample reports dealing with ALV interaction (events) in the <i>ABAP Objects</i> forum (search for <b>ZUS_SDN</b>).

    Regards

    Uwe

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 07:39 AM

    Hi Pradeep,

    Use these Two functions, you will get result.

    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'

    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'.

    Thanks

    senthil

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 07:44 AM

    HI.

    REPORT z_alv_block_list.

    • Type-pools

    TYPE-POOLS: slis.

    • Data declarations.

    DATA: BEGIN OF t_vbak OCCURS 0,

    vbeln TYPE vbeln,

    bstnk TYPE vbak-bstnk,

    erdat TYPE vbak-erdat,

    kunnr TYPE vbak-kunnr,

    END OF t_vbak.

    DATA: BEGIN OF t_vbap OCCURS 0,

    vbeln TYPE vbeln,

    matnr TYPE vbap-matnr,

    netpr TYPE vbap-netpr,

    waerk TYPE vbap-waerk,

    kwmeng TYPE vbap-kwmeng,

    meins TYPE vbap-meins,

    END OF t_vbap.

    DATA: t_fieldcatalog1 TYPE slis_t_fieldcat_alv.

    DATA: t_fieldcatalog2 TYPE slis_t_fieldcat_alv.

    DATA: v_repid TYPE syrepid.

    DATA: s_layout TYPE slis_layout_alv.

    DATA: v_tabname TYPE slis_tabname.

    DATA: t_events TYPE slis_t_event.

    • start-of-selection event.

    START-OF-SELECTION.

    v_repid = sy-repid.

    • Get the fieldcatalog for the first block

    PERFORM get_fieldcat1 CHANGING t_fieldcatalog1.

    • Get the fieldcatalog for the second block

    PERFORM get_fieldcat2 CHANGING t_fieldcatalog2.

    • Get the data for the first block

    SELECT vbeln bstnk erdat kunnr UP TO 10 ROWS

    INTO TABLE t_vbak

    FROM vbak WHERE vbeln > '0060000100'.

    • Get the data for the second block

    SELECT vbeln matnr netpr waerk kwmeng meins UP TO 10 ROWS

    INTO TABLE t_vbap

    FROM vbap WHERE vbeln > '0060000100'.

    • init

    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'

    EXPORTING

    i_callback_program = v_repid.

    • First block

    v_tabname = 'ITAB1'.

    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

    EXPORTING

    is_layout = s_layout

    it_fieldcat = t_fieldcatalog1

    i_tabname = v_tabname

    it_events = t_events

    TABLES

    t_outtab = t_vbak.

    • Second block

    Reward all helpfull answers.

    Regards.

    Jay

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.