cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry App - Complex table - CX_SY_NO_HANDLER:An exception of type 'CX_SY_DYN_CALL_ILLEGAL_TYPE' occurred, that was not caught anywher.

Former Member
0 Kudos

Hi All

I try to create class to pass data form SAP to Agentry Complex Table.

The Complex Table have

The structure of Complex Table is fully compatible with the SAP table structure MEAN.

So I created PABI FM Z00_BAPI_GET_MEAN_CT with

  ET_COMPLEX_TABLE LIKE MEAN

In the class that extend /SYCLO/CL_CORE_CT_HANDLER

in the method Z00_GET_MEAN_COMPLEX_TAB.GET_COMPLEX_TABLE I pass table of the same type

------


types: mean_table_type type sorted table of MEAN WITH UNIQUE KEY MANDT MATNR MEINH LFNUM

.

data: begin of ls_mdo_output_vals,

     et_complex_table type ref to mean_table_type,

     et_exchange_action_deleted type ref to /syclo/pm_buspart_deleted_tab,

   end of ls_mdo_output_vals.

data: lt_flt_temp type standard table of MEAN.

select *

       from MEAN

       into table lt_flt_temp.


CREATE DATA: ls_mdo_output_vals-et_complex_table.

APPEND LINES OF lt_flt_temp TO ls_mdo_output_vals-et_complex_table->*.

me->oref_mdo_data->set_mdo_output_via_ref_struct(

       exporting is_mdo_output = ls_mdo_output_vals ).

-----

But at the transfer time I get error

In /SYCLO/SLG1 the description looks as follows.


06.09.2016 12:08:58  - CX_SY_NO_HANDLER:An exception of type 'CX_SY_DYN_CALL_ILLEGAL_TYPE' occurred, that was not caught anywher

06.09.2016 12:08:58  - TYPE:E

06.09.2016 12:08:58 +BAPI Z00_BAPI_GET_MEAN_CT - NUMBER:000

06.09.2016 12:08:58 +BAPI Z00_BAPI_GET_MEAN_CT - MESSAGE:06.09.2016 12:08:58  - CX_SY_NO_HANDLER:An exception of type 'CX_SY_DYN

06.09.2016 12:08:58 +BAPI Z00_BAPI_GET_MEAN_CT - LOG_NO:00000000000000065336

06.09.2016 12:08:58 +BAPI Z00_BAPI_GET_MEAN_CT - LOG_MSG_NO:000000

06.09.2016 12:08:58 +BAPI Z00_BAPI_GET_MEAN_CT - ROW:0

06.09.2016 12:08:58 +BAPI Z00_BAPI_GET_MEAN_CT - TYPE:E

06.09.2016 12:08:58 +BAPI Z00_BAPI_GET_MEAN_CT - NUMBER:000

06.09.2016 12:08:58 +BAPI Z00_BAPI_GET_MEAN_CT - MESSAGE:06.09.2016 12:08:58  - CX_SY_NO_HANDLER:An exception of type 'CX_SY_DYN

06.09.2016 12:08:58 +BAPI Z00_BAPI_GET_MEAN_CT - LOG_NO:00000000000000065337

06.09.2016 12:08:58 +BAPI Z00_BAPI_GET_MEAN_CT - LOG_MSG_NO:000000

06.09.2016 12:08:58 +BAPI Z00_BAPI_GET_MEAN_CT - ROW:0

06.09.2016 12:09:01 DBOLSHAKOV ( 525400D995CF1ED69D823109D3F2C719 ) +BAPI /SYCLO/CORE_MDW_SESSION1_DEL : <****** START ******>

( Z00_FLIGHTBOOKING USER_GUID: 525400D995CF1EE5B5DF98875813A0BC )

What structure of ls_mdo_output_vals->et_complex_table must be to make it work?


I thought that the structure of  ET_COMPLEX_TABLE table of Z00_BAPI_GET_MEAN_CT FM

and ls_mdo_output_vals->et_complex_table  table of

Z00_GET_MEAN_COMPLEX_TAB.GET_COMPLEX_TABLE the class method

must be the same.



The exception is in

METHODCHECK_EXT_CONVEXIT (/SYCLO/CL_CORE_RFC_OO_DATA)

218CALL FUNCTION lv_convexit_funcname

            EXPORTING

              input  = <field>

            IMPORTING

              output = <field_ext>.

Next step F5 gives

Accepted Solutions (0)

Answers (2)

Answers (2)

JanarthananE
Contributor
0 Kudos

Hello,

Normally this kind of error occurs, if we are passing mismatch data type in function module, Please check all import and export parameters data type and length, it should match with function module's parameters data type and length.

I guess you are using FM lv_convexit_funcname - kindly check import/export parameters data type and length.

Best Regards,

Jana

mark_pe
Active Contributor
0 Kudos

Konstantin,

Hi. I'll see if I can ping a few people in our group who played with this the most and see if they can comment on your exercise.

Regards,

SAP Mobile Support Team

Former Member
0 Kudos

Thank you Mark.