08-18-2010 4:05 PM
Hey guys,
is there any possibility to hide the header row in an alv grid?
Thanks,
Hans
08-18-2010 6:21 PM
Please use search before posting:
http://help.sap.com/saphelp_nw70/helpdata/en/e3/e3eb40c4f8712ae10000000a155106/content.htm
08-18-2010 6:21 PM
Please use search before posting:
http://help.sap.com/saphelp_nw70/helpdata/en/e3/e3eb40c4f8712ae10000000a155106/content.htm
08-19-2010 3:21 AM
08-19-2010 4:14 PM
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?
08-19-2010 5:04 PM
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
08-19-2010 8:28 PM
Hi,
Not sure about GRID display, But it should work for ALV_LIST_DISPLAY.
Try
wa_layout-no_colhead = 'X'.
Thanks,
Senthil
08-20-2010 9:41 AM
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.)
08-19-2010 9:35 AM
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