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

Get selected rows from webdynpro ALV

Hi,

In webdynpro I have an ALV usage to display a table which allows multiple row selection. What method can I use to to get the user selected rows?

Thanks.

Pulau

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    Posted on Mar 31, 2009 at 03:33 AM

    Hi Pulau,

    Please refer the reply of Uday in this thread: get-selections-from-alv-on-multiple-selection-mode.

    I hope it helps.

    Regards

    Arjun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 01:36 AM

    Hi Pulau Dan,

    Whether it is normal table or ALV table display. You can still read the context by using

    • get all declared attributes

    lo_el_<node>->get_static_attributes(

    IMPORTING

    static_attributes = ls_<str> ). this will return the selected record.

    And if you want all records to retrieved from the table, use the below method..

    CALL METHOD lo_nd_<node>->get_static_attributes_table

    EXPORTING

    from = 1

    to = 2147483647

    IMPORTING

    table = lt_<table> .

    Hope this will help you. Reply me if you still not clear.

    Regards,

    Sreenivasa sarma k

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 04:47 AM

    hi,

    Refer packages SALV_WD_DEMO or SALV_WD_TEST for examples on WD ALV.

    Check out this thread :

    how-to-process-multiple-row-selection-in-alv-table

    Thanx.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 04:54 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 31, 2009 at 05:22 AM

    Hi,

    Use this to get the selected rows

    CALL METHOD node1->GET_SELECTED_ELEMENTS

    RECEIVING

    SET = lt_elementset.

    Regards,

    Lekha.

    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.