文章目录
1 Introduction
In the sap how to delete internal line ? I will demostrate it in the next demo.
2.Demo
loop at gt_alv into gw_alv where sel = 'X'.
delete gt_alv .
delete from ztfi083b where zlcbh = gw_alv-zlcbh .
commit work.
if sy-subrc = 0.
message '删除数据成功' type 'S'.
else.
message '数据保存失败' type 'E'.
endif.
clear:gw_alv.
endloop.
loop at gt_alv into gw_alv where sel = 'X'.
delete table gt_alv from gw_alv .
delete from ztfi083b where zlcbh = gw_alv-zlcbh .
commit work.
if sy-subrc = 0.
message '删除数据成功' type 'S'.
else.
message '数据保存失败' type 'E'.
endif.
clear:gw_alv.
endloop.