cancel
Showing results for 
Search instead for 
Did you mean: 

Lead Selection for Multiple Selected Row in Table

BrajeshKumar
Explorer
0 Kudos

Hi Experts,

What would be lead selection if i select multiple rows in Table,

kindly clarify this doubt.

Regards:

Brajesh

Accepted Solutions (1)

Accepted Solutions (1)

chengalarayulu
Active Contributor
0 Kudos

Rajesh,

If you select multiple rows from a Table, then whatever the record you select at first, that will be in LeadSelection. remaining all will be just selected.

in this moment, all the rows will be returned like elements when you call the method GET_SELECTED_ELEMENTS of node(IF_WD_CONTEXT_NODE).

BrajeshKumar
Explorer
0 Kudos

Hi Chengalarayulu D,

Thanks for replying. can u give me some reference link for this , where i can explore that more.

Regards

Brajesh

chengalarayulu
Active Contributor
0 Kudos

Rajesh,

here am showing you the pics which are selected multiple rown in a table, so that you can understand easily. i didn't find any links for reference.

if you observe clearly, lead selected row is hilighted, if you use to call the method GET_STATIC_ATTRIBUTES then that row alown will be fetched. if you require to get all then you must use GET_SELECTED_ELEMENTS of node.

Pic from ALV Table - selected multiple rows.

Pic for Normal Table - Selected multiple rows.

BrajeshKumar
Explorer
0 Kudos

Thanks for exploring more.

Regards

Brajesh

Answers (2)

Answers (2)

BrajeshKumar
Explorer
0 Kudos

Thanks to all guys for valuable information..

Regards

Brajesh

Former Member
0 Kudos

Hi Kumar,

If u select node properties lead selection..then that node first element will be automatically selected for lead selection. and u can get that element by using code below..( Just read that node U will get lead selected record. i.e first record in this case.)..

  lo_nd->get_static_attributes ( )..

If u want select multiple records on node then u have to select node property  0...n. At output u can select morethan one record and U can call node like below...

   CALL METHOD lo_nd_rooms_tf->get_selected_elements
*  EXPORTING
*    including_lead_selection = ABAP_FALSE
  receiving
    set                      = lo_element    .

in receiving parameter  lo_element u can get selected elements...

Regards,

Venkat

BrajeshKumar
Explorer
0 Kudos

Hi Venkat,

Thanks for ur answer, but my question is some what different from ur answer,  i repeat again.

if i select one row or default selected row called as Lead Selection, but in same scenario , if i select multiple rows in table, then what would be Lead Selection for that ?

Thanks & Regards

Brajesh


Former Member
0 Kudos

Kumar,

In your selected records ...First record u selected is the lead selection remaining records selected are normal......

Explore below two links  u will get idea...

http://www.sapdev.co.uk/sap-webapps/sap-webdynpro/get_selected_elements.htm

http://www.sapdev.co.uk/sap-webapps/sap-webdynpro/wdp-table-rows.htm

Regards,

Venkat