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

alv grid in module pool

Former Member
0 Likes
327

Hi all,

I have a screen with some fields and below them i have an alv container which contains gird.

Please let me know the procedure to deactivate the ALV container which is there on the screen depending on specific conditions.

and this ALV container is not in any subscreens.

Thanks,

Ram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
301

Hi Ram,

At first you will be creating a container and the conatiner name will be stored in a variable.

For e.g. w_custom type scrfname value 'CUSTOM'. Based on the conditions,

i ) If the ALV grid should be displayed on the screen, then create object and call the method(follow usual procedure), just add a single condition before this IF w_custom eq 'CUSTOM'.

i ) If ALV grid should be deactivated, then clear the variable(w_custom) before your own condition.

Hi Ram,

At first you will be creating a container and the conatiner name will be stored in a variable.

For e.g. w_custom type scrfname value 'CUSTOM'. Based on the conditions,

i ) If the ALV grid should be displayed on the screen, then create object and call the method(follow usual procedure), just add a single condition before this IF w_custom eq 'CUSTOM'.

i ) If ALV grid should be deactivated, then clear the variable(w_custom) before your own condition.

1 REPLY 1
Read only

Former Member
0 Likes
302

Hi Ram,

At first you will be creating a container and the conatiner name will be stored in a variable.

For e.g. w_custom type scrfname value 'CUSTOM'. Based on the conditions,

i ) If the ALV grid should be displayed on the screen, then create object and call the method(follow usual procedure), just add a single condition before this IF w_custom eq 'CUSTOM'.

i ) If ALV grid should be deactivated, then clear the variable(w_custom) before your own condition.