Skip to Content
0

sap_wapi_decision_complete cx_sy_no_handler

Apr 10, 2017 at 12:14 PM

47

avatar image

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.

code1.png (7.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Alejandro Bindi Apr 10, 2017 at 03:54 PM
1

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.
Share
10 |10000 characters needed characters left characters exceeded