Hello,
I have 2 custom containers ( c1 & c2 ) on the screen each of them containing an ALV Grid, one for lines and the other for summary, at times I want to hide the container ( c1) for line items and only display the summary container (c2). I'm using the container method set_visible and passing '0' to the methods visible parameter.
CALL METHOD g_custom_container_items->set_visible EXPORTING visible = cl_gui_control=>visible_false.
The container then disappears , which is the way it should work.
However, it is still occupying the space allocated for the custom container and therefore I see the summary ( c2 ) container after a gap of the lines allocated for the first container i.e. c1.
Is there a way to suppress this gap ? Is there anything extra that needs to be done besides hiding the container? Please advise.
I know I could achieve this with subscreens or having 2 different screen for different outputs, but I want to avoid that.
Example :
Without hiding c1. output is ok
-
c1
c2
-
After hiding c1.
-
-
> Here it keeps the gap
c2
-
Expected output should be.
-
c2
---
-
regards,
Advait