cancel
Showing results for 
Search instead for 
Did you mean: 

Attribute in Comp. Controller

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have you gievn the scope as PUBLIC only then yuo can access them

Regards,

Lekha

Former Member
0 Kudos

I alreay give it as public!!

But same error .

BR

Ali

Former Member
0 Kudos

Hi,

Give

Z_EXP_NODE_ATT as TYPE REF TO IF_WD_CONEXT_NODE as it is a interface

If this is also not the case, paste the code .

Regards,

Lekha

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

saket_abhyankar
Active Participant
0 Kudos

Hi Ali,

Try following code:

1) If attribute is declared in component controller : wd_comp_controller->Z_RUN_RPORT_ATT =

2) If attribute is declared in view : wd_this->Z_RUN_RPORT_ATT

Regards,

Saket .

Answers (0)