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: 

Hide header row in ALV grid

Former Member
0 Kudos

Hey guys,

is there any possibility to hide the header row in an alv grid?

Thanks,

Hans

1 ACCEPTED SOLUTION

Jelena
Active Contributor
7 REPLIES 7

Jelena
Active Contributor

Former Member
0 Kudos

Since the object-oriented approach isn't working for me - I'm using ALV grids without any use of the screen painter, therefore no containers without new screens allowed as I'm just able to use one screen etc. - , I search for something that hides the header row in procedural programming (REUSE_ALV_GRID_DISPLAY with layout type SLIS_LAYOUT_ALV). How can I do that?

ThomasZloch
Active Contributor
0 Kudos

No need to fiddle with screen painter or containers with class CL_SALV_TABLE & Co., you should have another look. Anyway, please tell the whole story in your first post next time, to keep people from walking in the wrong direction.

Thomas

P.S. for our non-German speaking readers, "Hans Wurst" is "Jack Pudding" in English, I believe

Former Member
0 Kudos

Hi,

Not sure about GRID display, But it should work for ALV_LIST_DISPLAY.

Try

wa_layout-no_colhead = 'X'.

Thanks,

Senthil

Former Member
0 Kudos

Thanks Senthil, this works! I supposed there was a very easy way to solve this problem, and it was well hidden

(Indeed, I could have solved it by myself with a look into the definition of slis_layout_alv... but anyhow I was virtually blind when I looked at it.)

Former Member
0 Kudos

Hallo Hans,

And another link to ALV documentation:

[Options_ALV_layout|https://wiki.sdn.sap.com/wiki/display/ABAP/OPTIONS%20OF%20LAYOUT%20IN%20ALV]

ALV structure LVC_S_LAYO has field 'NO_HEADERS', description 'ALV control: Hide column headings', which can be set to 'X'.

Good luck!

Regards, Miranda