‎2009 Apr 22 12:16 PM
Hi Experts,
My requirement is to create a docking container on a subscreen.
How to create such docking container ?
Thanks
Alok Vishnoi
‎2009 Apr 22 12:22 PM
Hi,
Create a conatiner with reference to class CL_GUI_DOCKING_CONTAINER
For more details visit:
http://help.sap.com/saphelp_47x200/helpdata/en/f5/4f6e0a9f2511d295cc00a0c930660b/frameset.htm
Sample Code:
DATA: c_dockingcont TYPE REF TO cl_gui_docking_container.
* create docking container for alv control
CREATE OBJECT c_dockingcont
EXPORTING
dynnr = '600'
extension = 300
side = cl_gui_docking_container=>dock_at_top.
* create alv control
CREATE OBJECT c_alv
EXPORTING i_parent = c_dockingcont.
Regards,
Mansi.
‎2009 Apr 22 1:56 PM
Thanks Mansi,
You give me the code of creating docking container.....
But my requirement is to create docking container on subscreen and call it at subscreen area.
Like 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' .
‎2009 Apr 22 1:02 PM
Hi Alok ,
Try to do below
data: docking_container type ref to cl_gui_docking_container,
splitter_container type ref to cl_gui_splitter_container,
top_container type ref to cl_gui_container.
* Create container for alv tree
create object docking_container
exporting
side = cl_gui_docking_container=>dock_at_left
extension = 270
repid = sy-repid
dynnr = '100'.
if not docking_container is initial.
* Creating object for splitter container
create object splitter_container
exporting
link_dynnr = '100'
link_repid = sy-repid
parent = docking_container
rows = 1
columns = 1.
endif. " IF NOT docking_container IS INITIAL
if not splitter_container is initial.
* Method to get the container name of top splitter area of docking container
call method splitter_container->get_container
exporting
row = 1
column = 1
receiving
container = top_container.
endif. " IF NOT splitter_container IS INITIALyou can check more info on my reply of below thread
https://www.sdn.sap.com/irj/scn/profile?userid=3925441
hope this info is useful to you.
Thanks!
Edited by: Prasanth Maddela on Apr 22, 2009 5:34 PM