Skip to Content

Removing Columns In ALV output

Hi All,

I used ALV to show a table as list in the output. thing now is that i need only certain fields in the table. i was successful in writing the query and i get the data only of the desired fields. but the problem is i have the blank columns of the fields which i dont need in the output. please help me in removing those columns.

thanks,

Selvakumar M.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jun 17, 2008 at 06:25 AM

    Hi

    data: lr_comp type ref to iwci_salv_wd_table.

    data: lr_model type ref to CL_SALV_WD_CONFIG_TABLE.

    lr_comp = wd_this->wd_cpifc_<usage_name>( ).

    lr_model = lr_comp->get_model( ).

    lr_model->IF_SALV_WD_COLUMN_SETTINGS~DELETE_COLUMN( '<field name>').

    use the method IF_SALV_WD_COLUMN_SETTINGS~DELETE_COLUMN( '<field name>')

    Abhi

    Edited by: Abhimanyu Lagishetti on Jun 17, 2008 8:25 AM

    Edited by: Abhimanyu Lagishetti on Jun 17, 2008 8:27 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 06:28 AM

    Hi

    Remove the dictionary structure name in the node in which you have the output fields to display

    Hope this helps U

    Thanks and regards

    Tamilselvan.K

    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.