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: 

Problem with cl_gui_alv_grid Filter function

Former Member
0 Kudos

Hello experts,

I have some problem with Filter Function on cl_gui_alv_grid.

This is my main screen(9000)

Every alv_grid has its own container, instance, fieldcatalog, layout, exclude functions and variant.

Right bottom alv_grid(Detail List) is changing according hotspots in left bottom alv_grid(Summary).

For now, everything works fine.

After hotspot click in Difference Column of Summary alv_grid Popup Screen shows up:

(In Production System its filled up corectly, no problem here)

The problem happens after Popup Screen is closed:

Now when i click on Filter button of any of these alv_grids, wrong Filter Criteria shows up.

Instead propper Filter Screen shows up Popup ALV with same structure as structure in popup on Difference HotSpot.

Any idea how to fix it?

Thanks in advance.

Jakub Misiarz

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Well, solution is very simple....it makes me even little bit ashamed

After closing popup window with ALV object, just use CALL METHOD g_alv_grid->free.

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

Every alv_grid has its own container, instance, fieldcatalog, layout, exclude functions and variant.

Did you use different value for HANDLE and LOG_GROUP when managing variants of different grids, does your code share some data between different Grid ?

Regards,

Raymond

0 Kudos

Yes i did. VARIANT handle is different for each instance of cl_gui_alv_grid. VARIANT is not the problem - same problem appears also when I completly remove variant option from program.

Each Grid has its own internal table, no sharing data. Only LEFT BOTTOM GRID(Summary) and RIGHT BOTTOM GRID(Detail) has same class for Event Reciever, but this isn't the source of the problem neither.

Thanks for idea though.

Regards,

Jakub

Former Member
0 Kudos

Well, solution is very simple....it makes me even little bit ashamed

After closing popup window with ALV object, just use CALL METHOD g_alv_grid->free.