cancel
Showing results for 
Search instead for 
Did you mean: 

how to refresh interal table in Webdynpro ABAP

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor

Just invalidate the node, then it will remove all elements in node.

lo_nd_node->invalidate( ).

Regards

Srinivas

Former Member
0 Kudos

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

former_member199125
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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..

Former Member
0 Kudos

Answered by Srenivas correct.

Regards,

Prasad

Answers (0)