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: 

Showing a Screen in Easy Splitter

sebastianNoe
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

MarcinPciak
Active Contributor
0 Kudos

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

4 REPLIES 4

MarcinPciak
Active Contributor
0 Kudos

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

0 Kudos

Thank you Marcin,

So there is no possibility to get a subscreen combined with a splitter?

0 Kudos

No, you can embed splitter inside a subscreen, but not vice versa. Containers are purely for GUI controls.

Cheers

Marcin

0 Kudos

Ok thank you.

So I have to think of something else.