Skip to Content
avatar image
Former Member

sap_wapi_decision_complete cx_sy_no_handler


there is an invoice which has to be released, this happens in a workflow. Now i want to try releasing it from an sapui5 application. For the link between sap and the application i want to use the gateway. In the gateway i'm trying to call the function sap_wapi_decision_complete to complete the decision.

The problem is that i get the error cx_sy_no_handler.

this is how i call the function

i appreciate the help, thanks.

code1.png (7.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 10, 2017 at 03:54 PM

    Put a try / catch block around the function call...

    Something like this:

    data lr_ex_root TYPE REF TO cx_root.
    data lv_subrc  TYPE i.
    data lv_exc_msg TYPE string.
    call function 'SAP_WAPI_DECISION_COMPLETE'
    catch cx_root into lr_ex_root.
     lv_subrc = 1001.
     lv_exc_msg = lr_ex_root->if_message~get_text( ).
     IF lv_subrc <> 0.
    * Execute the RFC exception handling process
                 iv_subrc = lv_subrc
                 iv_exp_message_text = lv_exc_msg ).
    Add comment
    10|10000 characters needed characters exceeded