Skip to Content

Splitscreen with Left ALV and right dynpro


In the forum I see al lot of coding used form splitscreens with two ALV grids. Very nice.

At this moment I have a problem. On the left I need a list of sales orders and when double click in the rightside of the screen you get detailed information displayed not in an ALV but in a screen (here called 0110)

I'm able to create the screen and the left ALV grid with the splitter but then it stops.

Is there anybody who can and will help me. (It's my first job for programming such a report so I need some background info.)

Thanks in advance,


Edited by: Kees Leautaud on Dec 23, 2008 2:31 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 23, 2008 at 02:19 PM

    Ken Thanks,

    What I mean is following:

    my screen is divided in two sections. cont_left and cont_right.

    In the cont_left part a ALV grid is located that shows the salesordernumbers.

    when double click on a sales ordernumer in the Cont_right (rightpart of the screen) detailed information is to be shown via a subscreen.

    When another salesordernumber is ticked the information in the rightpart is to be changed to the new selected salesorder.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Like I said before, you can do this without two containers. Use the left container to list the sales orders in an ALV and the right side of the screen to display sales order details. A double-click or other event on the right side can trigger a subscreen or a popup to display further details.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 01:54 PM

    Not sure what you mean by "I'm able to create the screen and the left ALV grid with the splitter but then it stops." .

    In general this is one way to acheive your requirements:

    1) Create Screen (say 0110) and assign OK_CODE

    2) On left side of this screen, create a custom container

    3) On the right side of this screen, list all the sales order information fields you need

    4) In the PBO of screen 0110, instantiate custom container object

    5) Instantiate ALV grid object assigned to this custom container object - Make sure you set i_appl_events = 'X' while creating the grid object. <--Important!

    5) Register events (like double-click etc.)

    6) In the PAI of screen 0110 add following:

    WHEN 'BACK'.
      CALL METHOD cl_gui_cfw=>dispatch         "Important!
        IMPORTING return_code = w_return_code.

    7) In your event handler, add code to populate related sales order data fields (on the right side of the screen).

    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.