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

ALV

Can I display more than one alv in one window?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Sep 24, 2005 at 08:34 AM

    Welcome to SDN.

    yes you can do it. you need to use splitter container control to place more than one ALV .

    for sample program check out program

    RSDEMO_SPLITTER_CONTROL

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2005 at 08:41 AM

    Hi

    Yes but you have to use the class CL_GUI_ALV_GRID and a screen with container.

    This is an example of code:

    DATA: SPLITTER TYPE REF TO CL_GUI_SPLITTER_CONTAINER,

    CUSTOM_CONTAINER TYPE REF TO

    CL_GUI_CUSTOM_CONTAINER,

    G_CUSTOM_CONTAINER1 TYPE REF TO CL_GUI_CONTAINER,

    G_CUSTOM_CONTAINER2 TYPE REF TO CL_GUI_CONTAINER,

    G_GRID1 TYPE REF TO CL_GUI_ALV_GRID,

    G_GRID2 TYPE REF TO CL_GUI_ALV_GRID.

    PROCESS PBO

    MODULE INIT_GRID.

    MODULE INIT_GRID.

    CREATE OBJECT G_CUSTOM_CONTAINER

    EXPORTING

    CONTAINER_NAME = 'MY_CONTAINER'

    EXCEPTIONS

    CNTL_ERROR = 1

    CNTL_SYSTEM_ERROR = 2

    CREATE_ERROR = 3

    LIFETIME_ERROR = 4

    LIFETIME_DYNPRO_DYNPRO_LINK = 5

    OTHERS = 6.

    CREATE OBJECT SPLITTER

    EXPORTING PARENT = CUSTOM_CONTAINER

    ROWS = 2

    COLUMNS = 1.

    CALL METHOD SPLITTER->GET_CONTAINER

    EXPORTING ROW = 1

    COLUMN = 1

    RECEIVING CONTAINER =

    G_CUSTOM_CONTAINER2.

    CALL METHOD SPLITTER->GET_CONTAINER

    EXPORTING ROW = 2

    COLUMN = 1

    RECEIVING CONTAINER =

    G_CUSTOM_CONTAINER1.

    CREATE OBJECT G_GRID1

    EXPORTING

    • I_SHELLSTYLE = 0

    • I_LIFETIME =

    I_PARENT = G_CUSTOM_CONTAINER1

    • I_APPL_EVENTS = space

    • I_PARENTDBG =

    • I_APPLOGPARENT =

    • I_GRAPHICSPARENT =

    • I_USE_VARIANT_CLASS = SPACE

    • I_NAME =

    EXCEPTIONS

    ERROR_CNTL_CREATE = 1

    ERROR_CNTL_INIT = 2

    ERROR_CNTL_LINK = 3

    ERROR_DP_CREATE = 4

    OTHERS = 5.

    CREATE OBJECT G_GRID2

    EXPORTING

    • I_SHELLSTYLE = 0

    • I_LIFETIME =

    I_PARENT = G_CUSTOM_CONTAINER2

    • I_APPL_EVENTS = space

    • I_PARENTDBG =

    • I_APPLOGPARENT =

    • I_GRAPHICSPARENT =

    • I_USE_VARIANT_CLASS = SPACE

    • I_NAME =

    EXCEPTIONS

    ERROR_CNTL_CREATE = 1

    ERROR_CNTL_INIT = 2

    ERROR_CNTL_LINK = 3

    ERROR_DP_CREATE = 4

    OTHERS = 5.

    CALL METHOD G_GRID2->SET_TABLE_FOR_FIRST_DISPLAY

    EXPORTING

    IS_LAYOUT = LT_LAYOUT2

    CHANGING

    IT_OUTTAB = GT_OUTTAB2[]

    IT_FIELDCATALOG = GT_FIELDCATALOG2.

    CALL METHOD G_GRID1->SET_TABLE_FOR_FIRST_DISPLAY

    EXPORTING

    IS_VARIANT = L_VARIANT

    I_SAVE = 'A'

    IS_LAYOUT = LT_LAYOUT

    CHANGING

    IT_OUTTAB = GT_OUTTAB[]

    IT_FIELDCATALOG = GT_FIELDCATALOG.

    ...................

    ENDMODULE.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2005 at 01:54 PM

    Hi,

    If you are making ALV through Structures, then try to build BLOCK ALV .

    Thanks and Regards

    Gurpreet Singh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 26, 2005 at 03:45 AM

    S u can do so,

    U can do by placing a container and splitting the same into two or three OR u can place three custom container in the layout.

    U can check this link for sample ALV program, u can repeat the same for the other grids which u r placing.

    http://www.sapdevelopment.co.uk/reporting/alvhome.htm

    Hope this helps.

    IF u have any query back if not kindly reward points and close the thread.

    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.