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

Hide alv grid PR custom subscreen

Former Member
0 Likes
943

Hello All,

I have a custom subscreen on PR ( bulit via screen exit) with ALV grid and some screen elements ( to get input data from user) on it.

In create and change PR mode, I need to get the input ( could be multiple rows with the help of create next icon )from user and update ALV grid with the input values. But in PR display mode, I need to hide the ALV grid.

I tried using desctructor method FREE, but dint work.

Any suggestions?

Thanks,

Chandra

Hello All,

I have a custom subscreen on PR ( bulit via screen exit) with ALV grid and some screen elements ( to get input data from user) on it.

In create and change PR mode, I need to get the input ( could be multiple rows with the help of create next icon )from user and update ALV grid with the input values. But in PR display mode, I need to hide the ALV grid.

I tried using desctructor method FREE, but dint work.

Any suggestions?

Thanks,

Chandra

3 REPLIES 3
Read only

Former Member
0 Likes
502

Any suggestions,please?

Read only

Former Member
0 Likes
502

I have a similiar problem:

I have a dynpro where there are different possibilities for ALV grids to be shown. I have 10 containers (that's the maximum number of ALV grids that can appear) and want to use the highest first. Now, it might be that I want to show another ALV in a container I have had an ALV before, therefore I must hide / delete / destroy the previous ALV in this container.

I use the FREE( ) method of the alv controls, I clear and free all references, but still, even after leaving and accessing the dynpro again, the ALV is shown. That's why I'd need some help here too...

Thanks in advance, Christopher

Read only

0 Likes
502

I have found a solution (or rather work-around) for this problem:

You can hide the alv by using it's method SET_VISIBLE( VISIBLE = ' ' ) and it's container has the same method. It isn't listed in the method list of the class which is why I couldn't find it, it's a general CL_GUI_* method I think.

I move the container away with SET_POSITION ( LEFT = int TOP = int WIDTH = int HEIGHT = int ) to prevent the user from clicking on it.

Hope this helps (someone who still has this problem ).