Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exception CX_SY_NO_HANDLER triggered.

Former Member
0 Likes
2,790

Hi,

I tried to run and debug the badi, but I got this An Exception with the type CX_SY_DYN_CALL_PARAM_NOT_FOUND when debugging ran until CALL FUNCTION 'BBP_PD_PO_GETDETAIL'.

What is the error about? What is wrong with my codes? Thanks.

method IF_EX_BBP_DOC_CHECK_BADI~BBP_DOC_CHECK.

  DATA:  ls_e_item          TYPE BBP_PDS_PO_ITEM_D,
         ls_e_header        TYPE bbp_pds_ctr_header_d,
         lt_e_account       TYPE TABLE OF BBP_PDS_ACC,
         ls_e_account       TYPE BBP_PDS_ACC,
         lt_e_item          TYPE TABLE OF BBP_PDS_PO_ITEM_D.

  DATA:  lt_ta_approval_return TYPE TABLE OF ZSC_WFL_APPR_S,
         lt_cc_approval_tbl    TYPE TABLE OF  ZSC_WFL_APPR_S,
         lt_ta_costobj         TYPE TABLE OF ZSC_WFL_APPR_S,
         ls_ta_costobj         TYPE ZSC_WFL_APPR_S,
         ls_ta_approval_return TYPE ZSC_WFL_APPR_S.

  DATA: lt_logical_sys TYPE BBPT_LOGICAL_SYSTEM,
        lt_logical_msg TYPE BBPT_BALMI,
        ls_logical_sys TYPE BBPS_LOGICAL_SYSTEM,
        lv_logical_sys TYPE LOGSYS.

  DATA: lt_worklist TYPE TABLE OF SWR_WIHDR,
        ls_worklist TYPE SWR_WIHDR,
        lv_retcode  TYPE SYSUBRC,
        lv_wiid     TYPE SWW_WIID.

  DATA: lt_simple_cont    TYPE TABLE OF SWR_CONT,
        ls_simple_cont    TYPE SWR_CONT,
        lt_message_lines  TYPE SAPI_MSG_LINES,
        lt_message_struct TYPE SAPI_MSG_STRUC,
        lv_element        TYPE SWC_ELEM.

  DATA: lv_message        TYPE BAPI_MSG,
        lt_messages       TYPE TABLE OF bbp_smessages_badi,
        ls_messages       TYPE bbp_smessages_badi.

  DATA: lv_count_invalid_appr TYPE I VALUE 0,
        lv_index        TYPE sy-index.

  CONSTANTS: lc_zsc     TYPE string VALUE 'ZSC',
             lc_004     TYPE string VALUE '004',
             lc_msgty_w TYPE string VALUE 'W'.

  IF flt_val = 'BUS2203'.
    CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
      EXPORTING
........

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
1,434

Hi,

you need to check FM interface. Probably you call that FM with invalid parameter. Maybe you have just typo or some extra parameter. Unfortunately you cut off the most important part of your code.

Cheers

Hi,

you need to check FM interface. Probably you call that FM with invalid parameter. Maybe you have just typo or some extra parameter. Unfortunately you cut off the most important part of your code.

Cheers

5 REPLIES 5
Read only

mvoros
Active Contributor
0 Likes
1,435

Hi,

you need to check FM interface. Probably you call that FM with invalid parameter. Maybe you have just typo or some extra parameter. Unfortunately you cut off the most important part of your code.

Cheers

Read only

Former Member
0 Likes
1,434

Hi,

Here are the callling FM codes:

IF flt_val = 'BUS2203'.
    CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
      EXPORTING
        i_guid    = iv_doc_guid
      IMPORTING
        e_item    = ls_e_item
      TABLES
        e_account = lt_e_account.

I cant see what's wrong with the code.

Graham,

How to start the debugger? Currently, I just execute the badi and clicked at the "Debugging", am I doing the right way?

Thanks.

Read only

mvoros
Active Contributor
0 Likes
1,434

Hi,

I can't see exporting parameter e_item in my system. There is only E_HEADER.

Cheers

Read only

Former Member
0 Likes
1,434

Hi Martin,

Thanks, it resolved my problem.

Read only

GrahamRobbo
SAP Mentor
SAP Mentor
0 Likes
1,434

Hi Izzy,

for goodness sake just use the debugger.

Cheers

Graham Robbo