1. MODIFY 新增或修改
CONSTANTS: gc_table TYPE tabname16 VALUE 'Z1T_NOTE06301_5'.
DATA: gt_in TYPE TABLE OF z1t_note06301_5.
MODIFY (gc_table) FROM TABLE gt_in.
IF sy-subrc = 0.
COMMIT WORK.
MESSAGE s398(00) WITH '数据更新成功'.
ELSE.
ROLLBACK WORK.
MESSAGE e398(00) WITH '数据更新失败'.
ENDIF.
2.DELETE 删除
CONSTANTS: gc_table TYPE tabname16 VALUE 'Z1T_NOTE06301_5'.
DELETE FROM (gc_table) WHERE congr = p_congr
AND rbunit = p_rbunit
AND ryear = p_ryear
AND rmonth = p_rmonth.
IF sy-subrc = 0.
COMMIT WORK.
ELSE.
ROLLBACK WORK.
ENDIF.
3.SELECT 查询
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/17908.html