cancel
Showing results for 
Search instead for 
Did you mean: 

How to use in INVALIDATE method WD_CONTEXT.

former_member221367
Participant
0 Kudos

Hi

I need to refresh selet option for that some one has suggested me to use Invalidate method but how my wizard is old and I dont know how to call it.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ankita,

Invalidate method is used to invalidate/Clear all elements of a node.

You can use the method as below:

DATA lo_nd_cn_input TYPE REF TO if_wd_context_node.

lo_nd_cn_input = wd_context->get_child_node( name = wd_this->wdctx_cn_input ),

lo_nd_cn_input->invalidate( ).

Regards,

Sanjeev Kotwal.

vimal
Active Participant
0 Kudos

Hi Ankita,

1)First you need to get the node :

lo_nd_importing_1    = lo_nd_time_timesheet->get_child_node( name = wd_this->wdctx_importing ).

2) Call the invalidate method of node :

lo_nd_importing_1->invalidate( ).

3)Get the elements of the node:

lo_el_importing_1     = lo_nd_importing_1->get_element(  ).

4) Clear the structure which you want to bind and Call the Set_static_attributes method :

CLEAR ls_importing_1.

lo_el_importing_1->set_static_attributes( EXPORTING static_attributes = ls_importing_1 ).

And you will be able to clear the selection screen.

Former Member
0 Kudos

Hi ankita,

By using wizard read that node, and use invalidate method.

   * navigate from <CONTEXT> to <N_DEFECT> via lead selection
  lo_nd_n_defect = wd_context->get_child_node( name = wd_this->wdctx_n_defect ).

  lo_nd_n_defect->invalidate( ).

Cheers,

Kris.