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: 

Docking container

MarcinPciak
Active Contributor
0 Kudos

Hello,

Could you please tell me what is wrong either in the code below or in my logic:


  DATA: d_container TYPE REF TO cl_gui_docking_container,
        e_control TYPE REF TO cl_gui_abapedit.

  CALL SCREEN 200.

  CREATE OBJECT d_container
    EXPORTING
*      repid                       = sy-cprog
*      dynnr                       = sy-dynnr
      side                        = cl_gui_docking_container=>dock_at_left.

  check sy-subrc = 0.

  CREATE OBJECT e_control
    EXPORTING
      parent = d_container.

Logic

- create empty screen 0200

- create docking container docking it to the left part of screen

- embedding abap editor control to this docking container

My question is: why when running program I don't see anything, as the docking container with the control inside wouldn't be there?

Thank you for help in advance.

Marcin

2 REPLIES 2

Former Member
0 Kudos

Have a look at report RSDEMO_DOCKING_CONTROL - I think you should not have commented out your repid & dynnr parameters on the "CREATE OBJECT d_container".

Jonathan

0 Kudos

Hi Jonathan,

The problem was obvious. The code simply should be included in PBO module of the screen.

There is no need to pass neither sy-repid nor sy-dynnr unless it displayed in other screen/program.

Gr8 thanks for your help:)

Regards,

Marcin