‎2008 Apr 10 9:08 PM
Hi Epxerts,
Can i use loop endloop for the following TRY..CATCH block as i need to send multiple records
LOOP.
TRY.
Assign row
it_prxstruc-MT_table_EXTRACT-record-row = wa_area1. --> one record of
CALL METHOD prxy->execute_asynchronous
EXPORTING
output = it_prxstruc --> 1 record.
COMMIT WORK
.
CATCH cx_ai_system_fault .
DATA fault TYPE REF TO cx_ai_system_fault .
CREATE OBJECT fault.
WRITE 😕 fault->errortext.
ENDTRY.
ENDLOOP.
Please suggest accordingly.
Thanks
Dany
‎2008 Apr 10 9:23 PM
Try-Endtry specifies the territory of exception that catch is going to handle. Do it this way..
TRY.
LOOP.
Assign row
it_prxstruc-MT_table_EXTRACT-record-row = wa_area1. --> one record of
CALL METHOD prxy->execute_asynchronous
EXPORTING
output = it_prxstruc --> 1 record.
COMMIT WORK
.
ENDLOOP.
CATCH cx_ai_system_fault .
DATA fault TYPE REF TO cx_ai_system_fault .
CREATE OBJECT fault.
WRITE :/ fault->errortext.
ENDTRY.G@urav.
‎2008 Apr 10 9:23 PM
Try-Endtry specifies the territory of exception that catch is going to handle. Do it this way..
TRY.
LOOP.
Assign row
it_prxstruc-MT_table_EXTRACT-record-row = wa_area1. --> one record of
CALL METHOD prxy->execute_asynchronous
EXPORTING
output = it_prxstruc --> 1 record.
COMMIT WORK
.
ENDLOOP.
CATCH cx_ai_system_fault .
DATA fault TYPE REF TO cx_ai_system_fault .
CREATE OBJECT fault.
WRITE :/ fault->errortext.
ENDTRY.G@urav.