04-13-2010 10:10 AM
Hi there,
currently I am trying to build up an application with a splitter consisting of two seperate screens. My current approach looks like this:
DATA:
lo_main_container TYPE REF TO cl_gui_custom_container,
lo_vertical_splitter TYPE REF TO cl_gui_easy_splitter_container,
lo_left_container TYPE REF TO cl_gui_container,
lo_right_container TYPE REF TO cl_gui_container,
lo_help_container TYPE REF TO cl_gui_gos_container.
**Build up the Splitters
CREATE OBJECT lo_main_container
EXPORTING
container_name = iv_container_name.
CREATE OBJECT lo_vertical_splitter
EXPORTING
parent = lo_main_container
orientation = 1.
lo_left_container = lo_vertical_splitter->top_left_container.
lo_right_container = lo_vertical_splitter->bottom_right_container.
lo_vertical_splitter->set_sash_position( 20 ).
CREATE OBJECT lo_help_container
EXPORTING parent = lo_left_container
dynnr = '0010'
repid = sy-cprog.
The application should now display the Screen number 0010 on the left side. But unfortunately it does not work. I just get a plain screen on the left.
Can you tell me where the fault is? Where did I thought the wrong way? Is it a complete wrong approach or just some stupid faults?
I would be very thankful if you could help me with this. If you need futher informations just let me know!
Kind Regards,
Sebastian
04-13-2010 10:56 AM
Hi Sebastian,
Splitter container is used only to store some GUI controls like ALV, trees etc inside. This is just a way of splitting one container to several ones. There is no option to place a screen or subscreen inside a GUI cointainer. For this you must use [subscreens|http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/frameset.htm].
Regards
Marcin
04-13-2010 10:56 AM
Hi Sebastian,
Splitter container is used only to store some GUI controls like ALV, trees etc inside. This is just a way of splitting one container to several ones. There is no option to place a screen or subscreen inside a GUI cointainer. For this you must use [subscreens|http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/frameset.htm].
Regards
Marcin
04-13-2010 12:01 PM
Thank you Marcin,
So there is no possibility to get a subscreen combined with a splitter?
04-13-2010 12:03 PM
No, you can embed splitter inside a subscreen, but not vice versa. Containers are purely for GUI controls.
Cheers
Marcin
04-13-2010 12:04 PM