Application Development and Automation 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: 
Read only

A Screen in a container

Former Member
0 Likes
753

Hi,

I have 3 containers in one screen.

One with an ALV tree, the other with a alv grid and i need to call in the third a screen.

Is there any way to do it?

Don´t know what code i could put in here. I am doing all by oop.

tks in advanced

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
675

Hi

you can use 2 container (one for ALV tree, one for ALV grid) and 1 subarea instead of the third container where you can call your screen

Max

Hi,

I have 3 containers in one screen.

One with an ALV tree, the other with a alv grid and i need to call in the third a screen.

Is there any way to do it?

Don´t know what code i could put in here. I am doing all by oop.

tks in advanced

2 REPLIES 2
Read only

Former Member
0 Likes
676

Hi

you can use 2 container (one for ALV tree, one for ALV grid) and 1 subarea instead of the third container where you can call your screen

Max

Read only

Former Member
0 Likes
675

If you are only going to put ALV's in the screen containers. You can control it in the program using the split screen container.

You can either split the screen or split a container. In this case I am splitting the entire screen.

 
DATA: SPLITTER_V            type ref to CL_GUI_SPLITTER_CONTAINER. 

      create object SPLITTER_V
      exporting
        PARENT = CL_GUI_CONTAINER=>SCREEN0
        ROWS = 2
        COLUMNS = 1.

        g_CONTAINER_TOP     = SPLITTER_V->GET_CONTAINER( ROW = 1 COLUMN = 1 ).
        g_CONTAINER_BOTTOM  = SPLITTER_V->GET_CONTAINER( ROW = 2 COLUMN = 1 ).

This is also useful if you want to create a dynamic layout ie. 1 alv in summary or 2 - 3 in detail mode. Also CL_GUI_CONTAINER=>SCREEN0 can just as easily be a container on the screen.