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

Lead selection issue on click of button after filter in webdynpro ALV

Hi Experts,

I just want to know how to set the lead selection after filter in webdynpro ALV. On click of button after filtering lead selection is getting removed . How to set the lead selection on click of button after filter. It's very urgent. I will be so thankful if i could i get reply as soon as possible.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 12, 2015 at 07:29 AM

    Hi,

    Have you tried to use the set_lead_selection_index method after your filter action???

    BR,

    RAM.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 12, 2015 at 07:42 AM

    Hi Hadi Ali,

    In your Actions Method,

    Declare your Node Context reference and get the child node.

    METHOD onactionadd_more_lines.

    * Populate Line Items

    DATA: lo_nd_claim TYPE REF TO if_wd_context_node. " This is your context node in your contexts

    lo_nd_claim = wd_context->get_child_node( name = wd_this->wdctx_claim ).

    lo_nd_claim->set_lead_selection_index( EXPORTING index = 1 ). " Which line you want to highlight


    ENDMETHOD.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2015 at 06:50 AM

    Hi,

    Please follow the logic below:

    After Binding your ITAB to the ALV context node: Write the code below

    *************Refresh the SALV_WD_TABLE with*******************************************
    *DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
    DATA: ls_in TYPE if_salv_wd_table=>s_type_param_refresh_in.
    ls_in-dummy = '01'. "all

    lo_INTERFACECONTROLLER = wd_this->wd_cpifc_xyz( ). "xyz is the component created for ALV

    lo_interfacecontroller->refresh(
    in = ls_in " if_salv_wd_table=>s_type_param_refresh_in
    ).

    Note: this code will execute the WDDOMODIFY method to SALV_WD_TABLE before we select the row. This is the refresh method of ALV interface controller.

    Now use the method:

    set_lead_selection_index( ) : to select the row.

    Here you can just pass the '1' to select the first row of your ALV always.

    Thanks

    KH

    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.