cancel
Showing results for 
Search instead for 
Did you mean: 

Exception CX_SY_DYN_CALL_ILLEGAL_TYPE

Former Member
0 Kudos

Hello,

We are having a wierd issue with ABAP Web Dynpro.

We are getting exception CX_SY_DYN_CALL_ILLEGAL_TYPE between these lines. For some reason the context is not getting updated. Please help me where we could get the error in the statements below.

Also is there a way to look at the context values during runtime?

****************************************************************

    DATA lv_print type C.

    lv_print = 'X'.


  DATA lo_nd_et_otf_data TYPE REF TO if_wd_context_node.

  DATA lt_et_otf_data TYPE wd_this->Elements_et_otf_data.

****************************************************************

please do not point me to old discussions which are not ABAP Web Dynpro. I did my search before posting this.

Thanks

am

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

wd_this-> is the reference to the view runtime object.

For declaring your variables in ABAP that should have the same type as a context node, have a look at the generated Interface for the view controller or the component controller.

Menu: Goto -> Controller Interface

The name of the interface as well as the types are shown.

Examples:

In the component controller use notation:

DATA lt_your_data TYPE if_componentcontroller=>elements_your_data.

In the view controller replace "componentcontroller" by the name of the view, for example:

DATA lt_your_data TYPE if_your_view=>elements_your_data.

For debugging, there is a special Web Dynpro Tool in the New Debugger.

help.sap.com/erp2005_ehp_04/helpdata/en/48/74d50bd1431b5ae10000000a42189c/frameset.htm