cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding Context Element without removing them from Context Node

Former Member
0 Kudos

Hi,

my application uses an ALV table. I'm implementing Complex Filter that are used to hide some rows that match certain conditions, like the regular filter in ALV does. At the end, I want to save all rows, even the hidden ones. It would be simpler for me to keep all elements in my context, but just to set an attribute to hide the element. Is there a way to do it or I have to remove the element from context and put it aside in a temporary buffer?

Thanks

Davy

Accepted Solutions (1)

Accepted Solutions (1)

former_member262988
Active Contributor
0 Kudos

Hi ,

Get the column reference of the alv and loop the alv columns ...get the column which you want to hide and use the method

CALL METHOD lr_column->set_visible

EXPORTING

value = cl_wd_uielement=>e_visible-none.

Regards,

Shailaja Ainala.

Former Member
0 Kudos

Hi Shailaja,

you did not really answer to my question. I don't want to hide a column in ALV, I want to hide some of the elements displayed by the ALV. I know that I could remove these elements from the Context Node, but I was wondering if there is a way to set a property of element so it would not be displayed, even if it's still part of the context node.

Best Regards,

Davy

Former Member
0 Kudos

i dont think within ALV its possible to hide rows..by using the Visible/Invisible for few rows. i guess you will have to put all the data in a internal table when its first fectched without filter!!

Then depending on the logic either you read the ALV data ( filtered one ) or the entire data from the temp internal table.

Greetings

Prashant

Answers (0)