on 02-13-2015 4:12 AM
I have created a custom table with 4 fields. In layout i have kept a table and have done context binding. I have a button to save. At runtime, changes made in the table should be saved when save button is clicked to the custom table.Kindly help...
Hi,
Get the attributes of the table in update it accordingly into your Z-table and sample code is already provided by Rama.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jonathan,
Hope there is action created for button SAVE.
Now, write the below code to read data from context
data lo_node type ref to if_wd_context_node.
data lt_data type wd_this->elements_MY_NODE.
lo_node = wd_context->get_child_node( wd_this->wdctx_my_node ).
lo_node->get_static_attributes_table( importing table = lt_data ).
" Now, update data to ztable
modify ztable from table lt_data. " Note this logic you should put in a class
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.