2019 Aug 23 9:02 AM
Hi All,
When we use Delete adjacent duplicates comparing all fields, do we need to sort table with all fields ? or "Sort Itab" will be suffiecient .
Regards,
Sri
2019 Aug 23 1:12 PM
Just press F1 on SORT and click on further hyperlinks.
Documentation of primary table key:
Documentation of standard key:
If you use DELETE ADJACENT DUPLICATES FROM itab COMPARING ALL FIELDS, it can be preceded with SORT and the pseudo component table_line equivalent to ALL FIELDS (I can't find it in the documentation):
SORT itab BY table_line.
Just press F1 on SORT and click on further hyperlinks.
Documentation of primary table key:
Documentation of standard key:
If you use DELETE ADJACENT DUPLICATES FROM itab COMPARING ALL FIELDS, it can be preceded with SORT and the pseudo component table_line equivalent to ALL FIELDS (I can't find it in the documentation):
SORT itab BY table_line.
2019 Aug 23 12:28 PM
Hi,
generally we short table with key fields, then we delete adjacent duplicates comparing those fileds
like sort EKPO by EBELN EBELP
Regards,
Bhupendra
2019 Aug 23 1:12 PM
Just press F1 on SORT and click on further hyperlinks.
Documentation of primary table key:
Documentation of standard key:
If you use DELETE ADJACENT DUPLICATES FROM itab COMPARING ALL FIELDS, it can be preceded with SORT and the pseudo component table_line equivalent to ALL FIELDS (I can't find it in the documentation):
SORT itab BY table_line.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |