cancel
Showing results for 
Search instead for 
Did you mean: 

Catching XI Exception in ABAP Cliente Proxy

Former Member
0 Kudos

Hello Dear Community ,

I have a synchronous scenario:

Abap client proxy <--> JDBC Receiver Adapter (SQL_QUERY)

I designed and configured this scenario and it's working well.........

The problem is when there is an error and i want to show it to the user as i see it in the sxmb_moni........

I just get:

-


Error----


MESSAGE.GENERAL

M

This is a part of the code:

CALL METHOD lo_proxy->execute_synchronous

EXPORTING

output = lv_output

IMPORTING

input = lv_input.

.........some processing......

CATCH cx_ai_system_fault INTO lo_sys_exception.

WRITE '--


Error--


'.

WRITE 😕 lo_sys_exception->code.

WRITE 😕 lo_sys_exception->codecontext.

WRITE 😕 lo_sys_exception->errortext.

l_error = lo_sys_exception->get_text( ).

WRITE:/ l_error.

I already tried in different ways using the proxy exception and the if_wsprotocol_xi_header but i coudn't....

Your help would be appreciated....

thanks a lot......

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

you cant do it. you just say their is an error but you cant show the error message of sxmb_moni.

agasthuri_doss
Active Contributor
0 Kudos

Hi,

This might help you

Regards

Agasthuri Doss