반응형
try.
if lt_insert is not initial.
insert db from table lt_insert.
if sy-subrc ne 0.
rollback work.
return.
endif.
endif.
if lt_update is not initial.
update db from table lt_update.
if sy-subrc ne 0
rollback work.
return.
endif.
endif.
commit work.
catch cx_root.
rollback work.
return.
endtry.
반응형
'SAP > ABAP Basics' 카테고리의 다른 글
abap open cursor with hold 구문 (2) | 2022.11.10 |
---|---|
abap split (0) | 2022.11.09 |
abap function 사용 시 others 기준 (0) | 2022.11.09 |
abap se16n_interface 펑션 (0) | 2022.11.04 |
abap 파일 한줄씩 읽기(Read dataset) (0) | 2022.11.02 |