12-22-2008 8:36 PM
Hi,
i am getting warning message: The exception CX_AI_SYSTEM_FAULT is neither caught nor is it declared in the RAISING clause of "Z_FM_PROXY_XI".
TRY.
CALL METHOD prxy->mi_sales_order_ob_asy
EXPORTING
output = output1.
COMMIT WORK.
CATCH cx_ai_system_fault INTO fault.
wf_errtxt = fault->get_text( ).
ENDTRY.
i am not sure where i am getting wrong...
can anybody provide some information on this?
Thanks
Giri
12-22-2008 8:44 PM
Hi,
Check whether Z_FM_PROXY_XI is using any logical port for connecting to XI system?.
Verify whether they have been properly configured?.
Best Regards
Krishna
12-22-2008 8:58 PM
Hi Nagendra,
yes.... FM is connecting to XI using PORT destination.
what kind of configuration i need to do for this?
thanks
Giri
12-22-2008 9:06 PM
HI Giri,
Please check in your ABAP proxy definitions, one of the settings you will be giving will be defining logical ports. Check they are existing in your system and working.
Use the SAP help regarding editing/displaying ABAP proxies.
http://help.sap.com/saphelp_nwpi71/helpdata/en/b3/96bcc5a5e3457a84e907c371e88fcb/content.htm
I hope you will find useful information using SPROXY.
Please ask me questions if you have any doubts.
Best Regards
Krishna
12-22-2008 9:09 PM
Hi Giri,
Please also check SAP help link http://help.sap.com/saphelp_nw04/helpdata/en/16/285d32996b25428dc2eedf2b0eadd8/content.htm
Regards
Krishna
12-22-2008 11:27 PM
08-26-2011 4:33 AM
Hi
Can you share your solution. I also have the same kind of error in SCI
Does the Perform statement has to handle this raising exception. how to catch this? pls advice
Error :
The exception CX_AI_SYSTEM_FAULT is neither caught nor is it declared in the Raising
clause of F_GET_HTD
Internal message code Message G-Q
--------------------------------------------------------------------
PERFORM F_CALL_PI.
---------------------------------------------------------------------
FORM F_CALL_PI RAISING CX_AI_SYSTEM_FAULT.
CREATE OBJECT LDC_ZPI_CO_SI_IF0072.
TRY.
CALL METHOD LDC_ZPI_CO_SI_IF0072->SI_IF0072
EXPORTING
OUTPUT = LDS_ZPI_MT_IF0072.
CATCH CX_AI_SYSTEM_FAULT.
ENDFORM
02-24-2012 5:48 PM
I don't know if it is too late but here goes my solution. It worked for me.
The problems seems to be in the exception that should be caught when creating the object and not only when calling the method.
My code is like that:
DATA: obj_ref TYPE REF TO zco_send_ob_sap2out_res_ecc, "service interface
it_output TYPE zsend_ecc2_res, "proxy output structure
fault TYPE REF TO cx_ai_system_fault,
p_w_proxy_err TYPE string
.
TRY.
CREATE OBJECT obj_ref.
"Send return message back to PI.
TRY.
CALL METHOD obj_ref->send_ob_sap2out_res_ecc
EXPORTING
output = it_output.
COMMIT WORK.
CATCH cx_ai_system_fault INTO fault.
p_w_proxy_err = fault->get_text( ).
ENDTRY.
CATCH cx_ai_system_fault INTO fault.
p_w_proxy_err = fault->get_text( ).
ENDTRY.
10-22-2019 11:05 AM
The problems seems to be in the exception that should be caught when creating the object and not only when calling the method.
--- That worked for me too. Thanks.