on 09-20-2011 6:52 AM
Hi all,
I want to delete/free/refresh interal table in webdynpro abap.
One of the form gave solution to pass blank internal table?
I cleared node and itab in webdynpro, but internally SAP doesn't delete the context node and itab values.
Please help me in how to refresh itab in webdynpro abap.
Regards,
Prasad
Just invalidate the node, then it will remove all elements in node.
lo_nd_node->invalidate( ).
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
it doesn't work.
I wrote like this in action list method.
method lta_task.
if not lcontext_node_task is intial.
context_node_task->invalidate().
endif.
select.......
populate data into internal table lt_task_output_table .
if not lt_task_output_table is inital.
context_node_task = wd_context->get_child_node( name = 'TASK_PER').
context_node_task->bind_table( wd_this->lt_task_output_table ).
endif.
endmethod.
Starting of the mehod i have written to inavlidate, before upating the itab
but donesn;t work. Where should I write the code
Reagards,
Prasad
Hi prasad,
Try this and let me know. And instead of context_node_task, why dont u declare task node and use like lo_nd_task->invalidate( ).
method lta_task.
context_node_task->invalidate().
select.......
populate data into internal table lt_task_output_table .
if not lt_task_output_table is inital.
context_node_task = wd_context->get_child_node( name = 'TASK_PER').
context_node_task->bind_table(new_items = lt_task_output_table set_initial_elements = abap_true ).
endif.
endmethod.
Hi,
I think the above post should be able to help.
If you still cannot clear pls check the following things:
1. If there are some global variables that you need to clear - like global tables
2. Use REFRESH for all the global and local tables in which you fetch data before invalidating the node
3. Clear all work areas before invalidating the node
Sometimes the node gets free but tables and work areas are not cleared and search is not performed correctly and hence same data is fetched again..
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.