on 06-27-2011 10:43 AM
Hi all,
In my application i am using Table and displaying some records, i am displaying with lead selection.
In this table sected records i am copying to another table.
Here problem is, i am using lead selection at node level so first record is selected automatically, and i select some more records and do copy. Here problem is Lead selection record is not copying another records which i manually selected records are
copying??? Why it happens any ideas?
Thanks,
Venkat.
have you checked with the table properties? i assume that we can choose the table property as multilead rather tab singlelead.
we can you a method cl_* for table relate class to get the records which you have selected
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Multiple selection is working, my question is default lead selction selected row is not copying.
And in my table Select all also not working. For example assume my table has no elad selection. if i select select all in table( default option ) and i am trying to copy giving error access null object. If i select first record manually and i use default select all function now it is working copying all records.. I am not getting whats the problem?
Any suggestions pelase?
Thanks,
Venkat.
Hi Lekha,
Thanks for your reply.
I am using Multi selection mode.. my cardinality is 0-n and 0-n.
my code..
* navigate from <CONTEXT> to <IT_LIPS> via lead selection
lo_nd_it_lips = wd_context->path_get_node( path = `ZRETURN_DEL_CHANGE.CHANGING_3.IT_LIPS` ).
CALL METHOD lo_nd_it_lips->get_selected_elements
RECEIVING
set = lt_temp.
DATA lo_nd_pack_mat TYPE REF TO if_wd_context_node.
DATA lo_el_pack_mat TYPE REF TO if_wd_context_element.
DATA ls_pack_mat TYPE wd_this->Element_pack_mat.
DATA lt_pack_mat TYPE wd_this->Elements_pack_mat.
* navigate from <CONTEXT> to <PACK_MAT> via lead selection
lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
lo_nd_pack_mat->get_static_attributes_table( importing table = lt_pack_mat ).
LOOP AT lt_temp INTO wa_temp.
CALL METHOD wa_temp->get_static_attributes
IMPORTING
static_attributes = ls_it_lips.
ls_pack_mat-vbeln = ls_it_lips-vbeln.
ls_pack_mat-material = ls_it_lips-matnr.
ls_pack_mat-plant = ls_it_lips-werks.
ls_pack_mat-item = ls_it_lips-posnr.
append ls_pack_mat to lt_pack_mat.
endloop.
And i explained my SELECT_ALL problem also pelase check in my previous post.
thanks,
Venkat
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.