Skip to Content

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

How to access private attribute of class CL_WDR_CONTEXT_NODE_VAL

Hi ,

I have created a simple webdynpro program where my application display the table entries in a table.

I have applied filter values on the table.

So for this I have created a action and it is working fine.

The problem here is I need to handle exceptions raised by the application and for this I need to acces the private variable of the class CL_WDR_CONTEXT_NODE_VAL .

I am new to OOPS and still in learning stage.

Request to guide me in how to read the private attribute of class in our webdynpro application.

Awaiting for your responses.

Thanks & Regards,

Ravi Ganji

Former Member
Former Member replied

Hello Ravi,

shouldn't the type of variable clr be wd_this->element_filter?

Data clr TYPE wd_this->element_nrs_status.

"change it to
data clr type wd_this->element_filter.

and the call to l_node->get_static_attributes method will throw cx_wd_context exception if the filter node is empty. Catch this exception and proceed accordingly. If the filter node is empty its not required to call invalidate. I think you have handled it already.

Br, Saravanan

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