Skip to Content
avatar image
-1
Former Member

ALV SPLITTER REPORT PROBLEM

Hi Experts!!

I have made a simple interactive alv report using fm REUSE_ALV_POPUP_TO_SELECT .

But now the problem is user don't want popup now they want me to diplay the 2nd internal table(or the 2nd ALV) in the right hand side in the same screen.

So I have to use splitter container but I m not good with OOPS.

Can anyone provide a sample code for alv splitter container

where after 1st display user would click a specific field and the 2nd alv will show in the right hand side

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Feb 04 at 03:26 PM

    You didn't explain how you built the first ALV (dynpro container, full screen, ALV framework used, etc.), so we can't even tell you for sure what is the simplest thing to do.

    But if you search "alv splitter 2 screens", you'll find lots of examples: Display two or more ALVs on one screen using Splitter Control, etc.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 04 at 05:08 PM

    "but I m not good with OOPS."

    That makes no sense. Seems that you are not good in SAP GUI controls. Search for documentation and examples about that. ABAP Objects should be common knowledge anyway if you work with ABAP nowadays.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Yes U are right , First time doing with object oriented got a little confused But finally did it .

  • Feb 06 at 04:29 AM

    hi,

    see below sample code for ur req.

    REPORT ZDEMO2.



    DATA:GO_CON TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
    GO_SPLT TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
    GO_CON1 TYPE REF TO CL_GUI_CONTAINER,
    GO_CON2 TYPE REF TO CL_GUI_CONTAINER,
    GO_ALV1 TYPE REF TO CL_GUI_ALV_GRID,
    GO_ALV2 TYPE REF TO CL_GUI_ALV_GRID.





    START-OF-SELECTION.


    CREATE OBJECT GO_CON
    EXPORTING
    CONTAINER_NAME = 'CON'
    EXCEPTIONS
    CNTL_ERROR = 1
    CNTL_SYSTEM_ERROR = 2
    CREATE_ERROR = 3
    LIFETIME_ERROR = 4
    LIFETIME_DYNPRO_DYNPRO_LINK = 5
    OTHERS = 6.


    CREATE OBJECT GO_SPLT
    EXPORTING
    PARENT = GO_CON
    ROWS = 1
    COLUMNS = 2
    EXCEPTIONS
    CNTL_ERROR = 1
    CNTL_SYSTEM_ERROR = 2
    OTHERS = 3.

    CALL METHOD GO_SPLT->GET_CONTAINER
    EXPORTING
    ROW = 1
    COLUMN = 1
    RECEIVING
    CONTAINER = GO_CON1.

    CALL METHOD GO_SPLT->GET_CONTAINER
    EXPORTING
    ROW = 1
    COLUMN = 2
    RECEIVING
    CONTAINER = GO_CON2.

    CREATE OBJECT GO_ALV1
    EXPORTING
    I_PARENT = GO_CON1
    EXCEPTIONS
    ERROR_CNTL_CREATE = 1
    ERROR_CNTL_INIT = 2
    ERROR_CNTL_LINK = 3
    ERROR_DP_CREATE = 4
    OTHERS = 5.

    CREATE OBJECT GO_ALV2
    EXPORTING
    I_PARENT = GO_CON2
    EXCEPTIONS
    ERROR_CNTL_CREATE = 1
    ERROR_CNTL_INIT = 2
    ERROR_CNTL_LINK = 3
    ERROR_DP_CREATE = 4
    OTHERS = 5.




    END-OF-SELECTION.

    CALL SCREEN 100.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 06 at 06:25 AM

    If you already used an old FM to display some tree or displayed some classic dynpro/selection-screen, you can create a new container with class CL_GUI_DOCKING_CONTAINER attached to the right side of the FM provided dynpro, and display an OO ALV class like CL_SALV_TABLE or CL_GUI_ALV_GRID in this container. (Search the forum, there are already many samples and discussions on this subject)

    NB: This solution remains valid whatever the technique used to develop the main screen container / OO or classic dynpro or selection-screen ...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 06 at 09:32 AM

    Thanks all of U...Its resolved now

    Add comment
    10|10000 characters needed characters exceeded