cancel
Showing results for 
Search instead for 
Did you mean: 

Sender Abap Proxy -- Receiver JDBC , catch communication channel exceptions

Former Member
0 Kudos

Hi All,

I have a sender abap proxy and a receiver jdbc asynchronous interface.

Now under some circumstances when I send some junk data for an update query(which satisfies metadata requirement but wrong primary key) it shows chequered flag in both XI and r/3.

But in communication channel it shows error.

Queries:

1. How do I handle this.

2. Since this is triggered from Abap wht will be subrc when method ends in this particular case.

3. Is there any possibility of program goin into dump?

Regards,

Prem

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

1. How do I handle this.

This should be handled at JDBC side(can also be handled using java mapping). because there is nothing wrong from SAP or XI point of veiw, the Query will run on the database not in any of these systems the adapter engine is responsible to catch these errros so it will catch that errror in RWB.

2. Since this is triggered from Abap wht will be subrc when method ends in this particular case.

This is a ASync case ,you cant handle it at ABAP,i guess

3. Is there any possibility of program goin into dump?

nope.

Former Member
0 Kudos

You can catch the exception in cx_ai_system_fault.

http://help.sap.com/saphelp_nw70/helpdata/en/75/a55c3cff8ca92be10000000a114084/content.htm

DATA:

lo_mes TYPE REF TO

[Client proxy class],

l_sys_exc TYPE REF TO

cx_ai_system_fault,

l_app_exc TYPE REF TO

cx_ai_application_fault.

CREATE OBJECT lo_mes.

TRY.

CALL METHOD

lo_mes->EXECUTE_SYNCHRONOUS

EXPORTING

OUTPUT = ls_request

IMPORTING

INPUT = ls_response.

[...]

CATCH cx_ai_system_fault

INTO l_sys_exc.

* handle system error

EXIT.

CATCH cx_fault_1

INTO l_app_exc.

* handle application error 1

[...]

* ############################

CATCH cx_fault_n

INTO l_app_exc.

* ############################

* handle application error n

CATCH cx_ai_application_fault

INTO l_app_exc.

* handle other

* application errors

ENDTRY.

Thanks,

Beena.

Answers (1)

Answers (1)

Former Member
0 Kudos

answered