Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ABAP Proxy - R/3 to 3rd Party via XI CAUGHT cx_ai_system_fault

I am trying to get ABAP Proxy to work (I've been following blog from Ravi ABAP Proxies in XI(Client Proxy))

In my situation I have a list of data I want transferred from SAP R/3 to a 3rd Party System via XI - using ABAP Proxy.

When I debug my Triggering ABAP I can see that it builds my simple internal table correctly but when it does the

CALL METHOD prxy->execute_asynchronous

EXPORTING

output = mytableofdata.

commit work.

It gets an exception that is

CAUGHT cx_ai_system_fault

CX_ROOT INTERNAL_SOURCE_POS Structure: flat & not charlike

Here is the ABAP Trigger I have in R/3

REPORT  ZINFOR_TRIGGER_OPEN_POPR_PROXY.

DATA prxy TYPE REF TO ZINFOR_CO_MI_OA_OPEN_POPR_FROM.
*
CREATE OBJECT prxy.
DATA it TYPE  ZINFOR_MT_OPEN_POPR.


DATA lines type ZINFOR_DT_OPEN_POPR_LINES.
LINES-PRODUCT_CODE = 'PAULIE'.
lines-plant = '6666'.
APPEND LINES TO IT-MT_OPEN_POPR-LINES.
LINES-PRODUCT_CODE = 'PAULIE'.
lines-plant = '7777'.
APPEND LINES TO IT-MT_OPEN_POPR-LINES.



TRY.

    CALL METHOD prxy->execute_asynchronous
      EXPORTING
        output = it.
     commit work.

  CATCH cx_ai_system_fault .
    DATA fault TYPE REF TO cx_ai_system_fault .
    CREATE OBJECT fault.
    WRITE :/ fault->errortext.
    WRITE :/ fault->CX_ROOT.
ENDTRY.

Not what you were looking for? View more on this topic or Ask a question