Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

proxy warning exception cx_ai_system_fault

Former Member
0 Kudos

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

8 REPLIES 8

nkr1shna
Contributor

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

Former Member
0 Kudos

Hi Nagendra,

yes.... FM is connecting to XI using PORT destination.

what kind of configuration i need to do for this?

thanks

Giri

0 Kudos

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

0 Kudos

0 Kudos

HI Giri,

Is your issue got resolved?

Best Regards,

Krishna

Former Member
0 Kudos

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

Former Member

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.

0 Kudos

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.