cancel
Showing results for 
Search instead for 
Did you mean: 

Screen Refresh

Former Member
0 Kudos

Hi Gurus,

I am new to ABAP-Webdynpro.

I have created a screen with 3 input fields.

After the execution of a method...i want the values in the input fields to be refreshed.

How can i do that??

Sohil.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If the context attributes to which input field is binded are under one node, then simply invalidate the node using :

lo_nd->invalidate( ) .

If independ context attributes are created then use set_attribute_null method to do this.

Refer this code:
DATA lo_el_context TYPE REF TO if_wd_context_element.
  DATA ls_context TYPE wd_this->element_context.
 
* get element via lead selection
  lo_el_context = wd_context->get_element( ).
 
** get single attribute
  lo_el_context->set_attribute_null(
    EXPORTING
      name =  `ABC` "ABC is the name of attribute ).

Answers (0)