on 08-19-2013 12:42 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.