on 04-20-2011 1:26 PM
Hi All,
I am having an Alv table that displays the data from the database with all fields editable. When i insert some row in any row or modify any exisiting data, my code should fetch the data that is new and modified. Can anyone help me in solving this issue please.
HI,
You can implement "ON_DATA_CHECK" event of ALV for all such actions form ALV, e.g. Insert Row, Delete Row, Modify Celll, etc.
The vent will pass a parameter "R_PARAM" which is of Type "IF_SALV_WD_TABLE_DATA_CHECK".
You can read the attributes from this as r_param->t_deleted_rows, r_param->t_inserted_rows, r_param->t_modified_cells etc.
and performk you action accordingly. This will avoid you using the whole data and find which one was changed.
Hope this helps you.
Regards
Vineet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to view ALV a normal ABAP WebDynpro Table.
YOu can read this data by reading the node bound to ALV.
read the entire node as a table and do the processing that you want to do.
Regards,
Ashish Shah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can read a node as a table using this method in wizard.
DATA lo_nd_<node name> TYPE REF TO if_wd_context_node.
DATA lt_<node name> TYPE wd_this->elements_<node name> .
* navigate from <CONTEXT> to <<NODE NAME> > via lead selection
lo_nd_<node name> = wd_context->get_child_node( name = wd_this->wdctx_<node name> ).
* @TODO handle non existant child
* IF lo_nd_<node name> IS INITIAL.
* ENDIF.
lo_nd_<node name>->get_static_attributes_table( IMPORTING table = lt_<node name> ).
If you need to fetch only one element , which is a lead selected element then let me know i can help for that.
Regards,
Ashish Shah
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.