on 05-12-2010 8:06 AM
hi,
I am facing one problem with one field having property of drop down by index.
In my application i have two view when i select field value data from the first view and set the value to drop down field by using :
lo_nd_veh->set_attribute( EXPORTING name = `ZDESC` value = im_detail-tail ).
but i am getting multiple value ofsame data
Hello,
a dropdown by index works by displaying the lead selection of the bound node.
Updating an attribute of an element of this node will just update the lead selection - not change the selection to the value you want.
you could search through the bound node for the element which had the correct value and mark it as lead selection - but... I would suggest that you might be better using a dropdown by key and populating into the attribute info the dropdown list - then setting the attribute value will have the result you are after.
- Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Initially check that do you get multiple entries in im_detail? If yes, check the data selection steps once again.
If not, then check the Node cardinality is 0..N, for by you are binding the data source of the Dropdown. Also bind all the elements of modified dropdown table as below:
node->bind_table(
new_items = im_detail
set_initial_elements = abap_true ).
Edited by: SANKET SETHI on May 12, 2010 12:55 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to set the Dropdown table as below:
data declaration
DATA im_detail TYPE wd_this->elements_node_dropdown.
DATA ls_item LIKE LINE OF im_detail.
APPEND ls_item TO im_detail.
node->bind_table(
new_items = im_detail
set_initial_elements = abap_true ).
Please revert us back if it will not works for you.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.