Skip to Content
author's profile photo Former Member
Former Member

proxy warning exception cx_ai_system_fault

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 22, 2008 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member 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.

  • Posted on Oct 22, 2019 at 10: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.