Skip to Content
0
Jun 22, 2009 at 08:33 AM

Exception handling in outbound ABAP proxy

238 Views

Hi All,

i need to catch exception in outbound abap proxy in two cases:

1. if RFC dest in R3 which is pinging to XI goes down.

2. IF xi server is down.

in both the cases i need to catch the exceptions.

now i written the code in this way:

DATA: v_exceptions TYPE REF TO cx_ai_system_fault.

TRY.

CALL METHOD zirco_o_msg_if_as_req_details=>execute_asynchronous

EXPORTING

output = s_reference.

COMMIT WORK.

CATCH cx_ai_system_fault INTO v_exceptions.

WRITE: 'Exception CX_AI_SYSTEM_FAULT caught'.

WRITE: / v_exceptions->errortext.

WRITE: / v_exceptions->code.

but this code is not working.

can anybody tell me how can i acheive this?