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: 

ALV Binding to screen0, i_parent=... (problem with "manage layouts")

Former Member
0 Kudos

Hello everyone,

I discovered a weird behavior, which I could reproduce by

a slight change in the standard program BCALV_GRID_09.

Once I replace


    CREATE OBJECT grid1
          EXPORTING i_parent = custom_container.

with


    CREATE OBJECT grid1
*          EXPORTING i_parent = custom_container.
          EXPORTING i_parent = cl_gui_container=>screen0.

then I experience the following behavior:

once you select "Manage Layouts" from the layout

dropdown menu, you don't see the list of layouts,

but the alv list with flights instead.

I have exactly the same problem with my workbench.

The problem I face is the following:

Once I bind my ALV grid to a custom_container, I do not

see the ALV list, once I bind it to cl_gui_container=>screen0,

I see the ALV list, but have the problem described above.

Has anyone any ideas on this?

5 REPLIES 5

franois_henrotte
Active Contributor
0 Kudos

try to use DEFAULT_SCREEN in place of SCREEN0

0 Kudos

I have this issue also. Seems to be a problem when using the SCREEN0 or DEFAULT_SCREEN. the title bar changes but it does not appear to be able to get the screen with the layouts to the front because we are using the base screen node.

Only way I found around it was to use a screen. Place a container on it and then use that container. Then it works like a charm. Seems to be an issue in this version of the container and using screen0 / default screen.

0 Kudos

To get around this issue I had to create a screen and get the alv to use the entire screen. Fixed the issue for me. But I don't think it will work in all cases. The issue seems to be a bug that the screen0 takes the base screen element and can't have anything drawn over the top of it. Let me know if this is still an issue for you and I can try and cut some code.

0 Kudos

is there still no solution ?

0 Kudos

Hi,

have a look at Note 1498559 "ALV Grid: Displaying layout management".