on 04-10-2017 1:14 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.