formatting_error =1internal_error =2send_error =3user_canceled = 4 OTHERS = 5. DATA:lt_out LIKE... . DELETElt_out WHERE mark <> 'X'.SORTlt_outBYlgort. DELETE ADJACENT DUPLICATES FROMlt 智能推荐 【转】ABAP的坑2 如果说工作区域、变量未清空是ABAP第一坑的话,那么FOR ALL ENTRIES的坑大概...
DELETE ADJACENT DUPLICATES FROM 表名 COMPARING 字段名.(删除表中指定字段重复的值) DELETE ADJACENT DUPLICATES FROM gt_table COMPARING id."必须先排序才可以删除重复 1 遍历内表 LOOP AT 表名 INTO 结构体 WHERE 条件. 执行的操作. ENDLOOP. *遍历内表 LOOP AT gt_table INTO gs_member WHERE id = ...
To delete all duplicate entries from a sorted internal table, you can specify DELETE ADJACENT DUPLICATES FROM itab after SORT . The sort itself uses the Quicksort process where the key fields for all the data records are retrieved and placed in an area of main memory. ...
DELETE ADJACENT DUPLICATES FROM itab comparing matnr. thanks Seshu Reply Former Member 2007 Sep 12 9:23 PM 0 Kudos 752 SAP Managed Tags: ABAP Development I forgot to tell you before deleting the duplicates just use sort itab by matnr and delete it. nothing with fieldcatlog,...
From: “R. Neal Wilhite via sap-abap”previoustoolboxuser (previous_toolbox_user) July 30, 2010, 5:21pm 7 I’m thinking of all the Bill-of-Materials and material characteristics processing I’ve written and the DELETE ADJACENT DUPLICATE command I’ve used following a SORT. In those cas...