Skip to Content
author's profile photo Former Member
Former Member

Doubts in ALV?

Hi,

I have few doubts in Reuse_Alv_List_Display.

1. How to use It_Filter?

2. Their is a direct filter option in he list display. then what is the need of this It_Filter?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 05:59 AM

    this is what the F1 help says about that parameter:

    Filter criteria for first list output

    Description

    Filter criteria table

    Filter criteria which result, e.g. from explicitly loading an initial display variant, can be passed to list output in this parameter.

    This table should never be built-up 'manually'.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 31, 2007 at 06:00 AM

    Hi

    You can Filter the data in ALV like this way:

    Use the Sort table

    data : it_sort type table ot SLIS_T_SORTINFO_ALV with header line.

    it_sort-fieldname = 'FIELD1'.

    it_sort-up = 'X'.

    append it_sort.

    clear it_sort.

    and pass this to the parameter IT_SORT of FM REUSE_ALV_GRID_DISPLAY

    Regards,

    Sree

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 06:07 AM

    Hi ajay

    Use

    Set current filter settings. A row of the table describes the selection conditions for column entries that are not to be displayed.

    You should never manually set up the internal table with the filter settings. Use this method only to set filter criteria that you got using get_filter_criteria or a layout.

    Features

    CALL METHOD <ref. var. to CL_GUI_ALV_GRID > ->set_filter_criteria

    EXPORTING

    IT_FILTER = <internal table of type LVC_T_FILT > .

    <b>IT_FILTER</b>

    Table with filter properties for columns for which a filter is to be set initially

    check this link

    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/top_of_page-top_of_list-using-alvgrid-functions-617843

    http://www.sap-basis-abap.com/sapalv.htm

    Rewards if helpfull

    Regards

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 05:52 AM

    Hi Ajay,

    Similar thread, may answer your query,

    alv-problem-with-filter-use

    Regards,

    Jayant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2007 at 05:57 AM

    Hi

    IT_FILTER Filter criteria for first list output

    Description

    Filter criteria table. Filter criteria which result, e.g. from explicitly loading an initial display variant, can be passed to list output in this parameter. This table should never be built-up 'manually'.

    Reward points if useful

    Regards

    Anji

    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.