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: 

What create docking container on a subscreen?

Former Member
0 Kudos

Hi Experts,

How to create docking container on a subscreen?

What parametr "parent" in constructor CL_GUI_DOCKING_CONTAINER?

Thanks

Mike Fedorov

7 REPLIES 7

former_member583013
Active Contributor
0 Kudos

Here's an example...Kindly steal from Rich Heilman -;)


report zrich_0001 .
 
data:
      dockingleft  type ref to cl_gui_docking_container,
      text_editor    type ref to cl_gui_textedit,
      repid type syrepid.
 
data: itext type table of tline-tdline,
      xtext type tline-tdline.
 
parameters: p_check.
 
at selection-screen output.
 
  repid = sy-repid.
 
  create object dockingleft
              exporting repid     = repid
                        dynnr     = sy-dynnr
                        side      = dockingleft->dock_at_left
                        extension = 1070.
 
  create object text_editor
              exporting
                   parent     = dockingleft.
 
  xtext = 'http:\\www.sap.com'.
  append xtext to itext.
 
  call method text_editor->set_text_as_r3table
     exporting
           table              = itext
     exceptions
           others             = 1.
 
start-of-selection.
 
  call method text_editor->get_text_as_r3table
     importing
           table              = itext
     exceptions
           others             = 1.
 
  loop at itext into xtext.
    write:/ xtext.
  endloop.

Greetings,

Blag.

0 Kudos

Thanks Alvaro,

You give me the code of creating docking container on MAIN SCREEN.....

But my requirement is to create docking container on SUBSCREEN and call it at subscreen area.

main screen is '0100' and sunscreen is '0101'

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

CALL SUBSCREEN SUB1 INCLUDING sy-repid v_dynnr.

PROCESS AFTER INPUT.

CALL SUBSCREEN SUB1.

MODULE USER_COMMAND_0100.

Docking container is created at subscreen '0101' and called at screen '0100'. Screen '0100' have a subscreen area 'SUB1' .

create object docking_alv
          exporting
             parent    = cl_gui_container=>screen0  "??????
             side        = cl_gui_docking_container=>dock_at_left
             dynnr     = '0101'.
            repid       = sy-repid
            extension = 230.

0 Kudos

Hello Mike,

There is not change in docking container creation code only thing is you have take container on the subscreen and

call the docking container creation code in PBO of the subscreen.

Thanks,

Augustin.

0 Kudos

Hello,

The solution for docking in subscreen is ok ?

Thierry

0 Kudos

did you try?

Clemens

0 Kudos

Hello,

Not yet.

Thierry

0 Kudos

Hello,

I tested the solution with subscreen and it is OK.

The post can be answered !

Thierry

Edited by: Thierry on Oct 29, 2009 4:27 PM