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: 

Suppress the column Heading

Former Member
0 Kudos

Hi,

Can i suppress the column heading in ALV grid display. Actually i am using Set_table_for_first_display, for my ALV grid. Thanks a bunch.

6 REPLIES 6

Former Member
0 Kudos

Hi,

Flag this field NO_HEADERS in the LAYOUT workarea that you pass to the FM. ex: w_layout-no_headers = 'X'

this will supress the column heading

0 Kudos

hi,

I need one more clarification.......how can i get rid off standard alv options(like sort ascending, descending, download to excel). How can i do that. Please suggest me.

0 Kudos

Which structure has no_headers field in it for building field cat?

0 Kudos

Have a look at

<a href="http://help.sap.com/saphelp_erp2004/helpdata/en/ef/a2e9e9f88311d2b48d006094192fe3/content.htm">http://help.sap.com/saphelp_erp2004/helpdata/en/ef/a2e9e9f88311d2b48d006094192fe3/content.htm</a>

where it describes "no_headers" and other fields in the layout structure of type LVC_S_LAYO.

0 Kudos

Sorry guys i failed to update yesterday, I got the answer, now I need to suppress the standard SAP ALV tool options.

Let me explain my requirement very clearly, I need to increase the font size of the output, with double column headings in the top of the LIST. Initially I tried with Classical report which only will give the option of double column headings. But increasing font size is a problem here. So i shifted back to ALV which will not allow for double column heading.

Yup, here i analyzed that if we use containers with the method set_table_for_first_display and the class cl_dd_document, which offers me to increase the fontsize as well as double column headings. Means the column heading standalone will come into a separate containers.

Now here the problem araises of removing the column heading and removing the standard alv tool options, which will come automatically in the top of the alv when we use set_table_for_first_display.

Now can anyone of you tell me how can i get rid off the standard alv tool options.

Many thanks.

0 Kudos

I got the answer. Thanks.