cancel
Showing results for 
Search instead for 
Did you mean: 

Access class attributes

Former Member
0 Kudos

Hi,

I am new to WD abap. I want to access class attributes. Below are my code lines:

"wd_context type ref to IF_WD_CONTEXT_NODE
Data: lo_wd_group_node  TYPE REF TO if_wd_context_node.

lo_wd_group_node = wd_context->get_child_node( wd_this->wdctx_groups ).

Now lo_wd_group_node has the following data & I want to access the attribute TABLE_REF. How can I access the entries in TABLE_REF?

Can someone help?

Regards,

Mrunal

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Looks like you want to access the table data in the context node! If so, you can use method get_static_attributes_table method of context node.

lo_wd_group_node->get_static_attributes_table( importing table = lt_groups ) " lt_groups is the itab of type context node structure.

You can use code wizard to to read the table which generates code automatically.

Hope this helps u.,

Regards,

Kiran

Former Member
0 Kudos

Hi Kiran,

By the time my post got approved I got to know how to access table data (I utilized where used option for this class attribute).

Your answer is correct....using the code

lo_wd_group_node->get_static_attributes_table( importing table = lt_groups ) " lt_groups is the itab of type context node structure.

Thanks,

Mrunal

Answers (0)