cancel
Showing results for 
Search instead for 
Did you mean: 

WDP APP3 ALV

Former Member
0 Kudos

Hi Experts,

How to transfer selected entries in ALV output to Webdynpro application.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Please stop loading your interview questions into the forum, and duplicate posting some of them as well.

Your recent batch have been deleted.

You will find a copy of the forum rules in your mail.

Cheers,

Julius

Former Member
0 Kudos

Hi,

IF you need to have the selected rows of ALV into an internal table , use this code for your reference :

data : lo_nd type ref to if_wd_context_node,
  lo_nd1 type ref to if_wd_context_node,
  lt_temp type wdr_context_element_set,
  wa_temp type ref to if_wd_context_element,
  ls_node1 type sflight,
  lt_node1 type STANDARD TABLE OF sflight.

lo_nd = wd_context->get_child_node('CN_MAIN').
  CALL METHOD lo_nd->get_selected_elements
   RECEIVING
       set = lt_temp.
  loop at lt_temp INTO wa_temp.
      CALL METHOD wa_temp->get_static_attributes
      IMPORTING
        static_attributes = ls_node1.
    APPEND ls_node1 TO lt_node1.
    CLEAR ls_node1.
  ENDLOOP.

CN_MAIN is the node of node binded to Table.

Now you have all the selected rows of ALV into an internal table and thus you can use this internal table for your reference.