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: 

Splitscreen with Left ALV and right dynpro

0 Kudos

Hello,

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,

Kees

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

1 ACCEPTED SOLUTION

0 Kudos

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.

Kees

3 REPLIES 3

Former Member
0 Kudos

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:


CASE OK_CODE.
WHEN 'BACK'.
  CLEAR OK_CODE.
  LEAVE TO SCREEN 0.
....
....
WHEN OTHERS.
  CALL METHOD cl_gui_cfw=>dispatch         "Important!
    IMPORTING return_code = w_return_code.
ENDCASE.

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

0 Kudos

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.

Kees

0 Kudos

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.