Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to check wether node is initial or not ?


we have a variable MO_Current_ORGval  which refers to IF_WD_CONTEXT_element.

During runtime i need to check wether the node is initial or not ?

how to achieve this ?

i have tried using  MO_Current_ORGval->get_node( ) is initial .

But no use.

source code:

check wd_comp_controller->mo_current_orgval is not initial.

"" Here i need to check , whether the node is having any value or not.

3.jpg.png (5331 B)
4.jpg.png (64483 B)
1.jpg.png (34805 B)
Former Member

Hi Aravindan,

Okay, I could see from snap shot that, NODE is an attribute of class CL_WDR_CONTEXT_ELEMENT.

Please try the below code

data lo_wdr_element type ref to cl_wdr_context_element.

lo_wdr_element ?= wd_comp_controller->mo_current_orgval.

if lo_wdr_element is bound.


    if lo_wdr_element->node is bound.



Hope this resolves your issue.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question