on 04-15-2009 8:32 AM
I have define a set of attributes in component controller attribute tab.
Z_CURR_CTRL_ATT IF_WD_CONTROLLER
Z_MSG_MGR_ATT IF_WD_MESSAGE_MANAGER
Z_IMP_NODE_ATT IF_WD_CONTEXT_NODE
Z_EXP_NODE_ATT IF_WD_CONTEXT_NODE
Z_EXP_ELEM_ATT IF_WD_CONTEXT_ELEMENT
Z_IMP_ELEM_ATT IF_WD_CONTEXT_ELEMENT
Z_RUN_RPORT_ATT IF_WD_CONTEXT_NODE
I want to use this attribute in my code but it give me error message said:
Field "Z_EXP_NODE_ATT" is unknown. It is neither in one of the
specified tables nor defined by a "DATA" statement *. . . . . . . . . . *
BR,
Ali
Hi,
Have you gievn the scope as PUBLIC only then yuo can access them
Regards,
Lekha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the code:
Z_RUN_RPORT_ATT = wd_context->get_child_node(
name = if_componentcontroller=>wdctx_ze_shp_run_report_nd ).
* navigate from <ZE_SHP_RUN_REPORT_ND> to <IMPORTING> via lead selection
z_exp_node_att = Z_RUN_RPORT_ATT->get_child_node(
name = if_componentcontroller=>wdctx_exporting ).
z_imp_node_att = Z_RUN_RPORT_ATT->get_child_node(
name = if_componentcontroller=>wdctx_importing ).
* get element via lead selection
z_exp_elem_att = z_exp_node_att->get_element( ).
z_imp_elem_att = z_imp_node_att->get_element( ).
Edited by: Ali Saleh AlAbbad on Apr 15, 2009 10:40 AM
Edited by: Ali Saleh AlAbbad on Apr 15, 2009 10:41 AM
Hi Ali,
Where you are usinf these attributes component controller methods or view methods.
If you are using in component controller methods use controller instance to refer attribute like
wd_this->Z_RUN_RPORT_ATT ..
If you are using in view controller methods then use controller instance like
wd_comp_controller->Z_RUN_RPORT_ATT
refer all attributes with controller instance.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.