on 09-27-2011 2:01 PM
Hi Experts,
In my requirement am working on general DML operations i need help for editing a selected record. Please help me.
Thanks,
Sandy.
Hi Sandy,
I am not clear about your requirement. You want to edit data in database tables through WD?
be bit more clear please.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The particular column that u want to edit,make the cell editor as input field.
Edit the data and read the node bound with the table in the 'Save' or 'Update' button you have.
Use the method get_static_attributes_table of if_wd_context_node. You will get the updated data in the internal table.
From that updated data from the screen you can do whatever you want.
Thanks,
Saikat
Hi Sandy,
I think you have table ready to change values.. change your table rows.
create one button save.. SAVE. in on action of that button.
Use code wizard to read table. and code like this.. for example
LOOP AT lt_segment1 INTO ls_segment1. //
wa_segment-person = level1.
wa_segment-cdate = ls_level-date.
wa_segment-dealer_code = lv_dealer_code.
wa_segment-dimension = ls_segment1-segment.
APPEND wa_segment TO it_segment.
ENDLOOP.
MODIFY zwd_apo FROM TABLE it_segment.
// To modify data from internal table to database table.
Cheers..
Kris.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.