cancel
Showing results for 
Search instead for 
Did you mean: 

Clear Root Node Attribute

Former Member
0 Kudos

hi all,

I have an attribute in the root node and I need to clear this attribute without affects other nodes and attributes.

Could you help me in this.?

BR,

Ali

Accepted Solutions (1)

Accepted Solutions (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Ali,

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


I hope it helps.

Regards

Arjun

Answers (0)