cx_sy_dyn_call_illegal_type
調用函數BAPI_BILLINGDOC_CANCEL1
搞了半天都是cx_sy_dyn_call_illegal_type錯誤。
??CALL?FUNCTION?'BAPI_BILLINGDOC_CANCEL1'
????????EXPORTING
??????????BILLINGDOCUMENT?=?IT_ITEM-VBELN
*?????????TESTRUN?????????=?''
*?????????NO_COMMIT???????=
??????????BILLINGDATE?????=?IT_ITEM-FKDAT
????????TABLES
??????????RETURN??????????=?LT_BAPIRETURN1
??????????SUCCESS?????????=?LT_BAPIVBRKSUCCESS.
到后來才發現是return和success的參數顛倒了,居然沒有報錯,哎
?An exception has occurred which is explained in more detail below. The
?exception is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE' and was not
? caught in procedure
?"ZSD_INVOICE_POST" "(FUNCTION)", nor was it propagated by a RAISING clause.
?Since the caller of the procedure could not have anticipated this
?exception, the current program was terminated.
?The reason for the exception is:
?The call to function module "BAPI_BILLINGDOC_CANCEL1" is incorrect:
?In the function module interface, it was stipulated that only fields of
?a specific type and length can be specified under "RETURN". The currently
?specified field )" ") has the right type, but its length is incorrect.
總結
以上是生活随笔為你收集整理的cx_sy_dyn_call_illegal_type的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: abap CA CO CS等操作符
- 下一篇: 活动的批输入监控ENV