Skip to Content

How to hide label of a webdynpro ALV column?

Hi Experts,

I have a webdynpro for ABAP ALV report. It has 4 columns namely, Material, Stock_Qty and Reconcile. I have to hide the label of the column 'Reconcile'. In other words, I want the last column without a label. Please note that I am not hiding the whole column.

Currently it shows like this:

-


Materal | Stock_Qty | Reconcile |

-


What I want:

-


Materal | Stock_Qty | |

-


Kindly help me. Any code snippet will be really appreciated.

Thanks

Gopal

Message was edited by:

gopalkrishna baliga

Message was edited by:

gopalkrishna baliga

Message was edited by:

gopalkrishna baliga

Message was edited by:

gopalkrishna baliga

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2007 at 06:47 AM

    Hi Balgia,

    I suppose you are viewing ALV output in external view with ALV configuration model. Then follow the below steps.

    In ALV View WDDOINIT() method, add the below code. First get the column object and get header of it. Then change it to null.

    
    *  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    
    * get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    
    * set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).

    If you have further queries, pls let me know.

    I hope it helps 😊

    Regards,

    Rakesh.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.