cancel
Showing results for 
Search instead for 
Did you mean: 

sap_wapi_decision_complete cx_sy_no_handler

Former Member
0 Kudos

Hi

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.

Accepted Solutions (1)

Accepted Solutions (1)

alejandro_bindi
Active Contributor

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.

try.

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( ).

endtry.

 IF lv_subrc <> 0.
* Execute the RFC exception handling process
     me->/iwbep/if_sb_dpc_comm_services~rfc_exception_handling(
         EXPORTING
             iv_subrc = lv_subrc
             iv_exp_message_text = lv_exc_msg ).
 ENDIF.

Answers (0)