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

Create blank screen space between two ALV grids

Former Member
0 Likes
806

I want to create some blank screen space between the two ALV grids I have on the screen. Can someone tell me how to do this?

Thanks and best regards,

Sandy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
759

I don't understand how to link the two custom contols I created in Screen Painter (I called them CONTAINER_1 and CONTAINER_2) to the ALV code that creates the ALV objects.

create object g_alv_tr

exporting

i_parent = container_1.

Can you please explain how I do this?

Thanks.

Sandy

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
759

I assume that you are using ALV controls in custom containers since you have two. All you need to do is put some space between the containers in screen painter. Just move the second container down one line.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
760

I don't understand how to link the two custom contols I created in Screen Painter (I called them CONTAINER_1 and CONTAINER_2) to the ALV code that creates the ALV objects.

create object g_alv_tr

exporting

i_parent = container_1.

Can you please explain how I do this?

Thanks.

Sandy

Read only

0 Likes
759

You don't have link the two containers.

I guess you have a grid and tree control that you want to display. So, use a different container for each of these controls, so that they appear differently.

If you don't want space in between them, you can have one container and split that into and display the tree and grid in each of the split portions.

The advantage with this will be you can resize the tree/grids using the vertical line that separates them.

Take a look at WE02 transaction to see what I am trying to explain.

Regards,

Ravi

Read only

0 Likes
759

First you must create the object for the custom container then assign it to the ALV_GRID object.




DATA: ALV_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
      ALV_GRID TYPE REF TO CL_GUI_ALV_GRID.


* Create Controls
  CREATE OBJECT ALV_CONTAINER
         EXPORTING CONTAINER_NAME = 'CONTAINER_1'.

  CREATE OBJECT ALV_GRID
         EXPORTING  I_PARENT =  ALV_CONTAINER.


Regards,

Rich Heilman