on 10-03-2008 1:01 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.