on 01-16-2012 8:26 AM
Hello Experts
I have a UI-Table in WD
My question is :
If I change one value and press the Return button the new value should be accepted
The dependent Column should be also changed.
Please example coding if possible
Return->change value -> change dependent value in other column too
Return->change Matnr -> set the short text of the new material in the other column
Thanks
Annette Bruy
Hello experts
but if i had the elements/ values not in the current line it doesnt work.
Even if I press return
best regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Create a new method for onEnter event for material number cell in the table. The below code will hellp you.
DATA lv_matnr TYPE wd_this->element_material-matnr.
DATA lv_maktx TYPE wd_this->element_material-maktx.
context_element->get_attribute(
EXPORTING
name = `MATNR`
IMPORTING
value = lv_matnr ).
SELECT SINGLE maktx FROM makt into lv_maktx WHERE spras = sy-langu
AND matnr = lv_matnr.
* set single attribute
context_element->set_attribute(
name = `MAKTX`
value = lv_maktx ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
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.