cancel
Showing results for 
Search instead for 
Did you mean: 

Exception handling in outbound ABAP proxy

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

not working means ,weather the cursor is reaching to the catch block or it is not executing at all....

Former Member
0 Kudos

menas...i am not receiving anything ...in v_exceptions varibale.

that means when RFC dest is down this method execute asynchronous not throwing cx_ai_systemfault exception.

Thanks & Regards

Kunaal

Former Member
0 Kudos

Hi All,

I need to log the error when receiver syatem is down.

Its like this:

Outbound proxy >>>XI>>>File adapter..

Now if xi goes down....means message is succussefully sent from ISD and get stuck in XI then i need to catch this exception in ISD.

Is it possible?? if yes then how??

Kunaal