29 lines
639 B
Plaintext
29 lines
639 B
Plaintext
Calling ``++DELETE ADJACENT DUPLICATES++`` won't reliably do any good if the table hasn't first been sorted to put duplicates side by side, since the ``++ADJACENT++`` part of the command looks for multiple rows side-by-side with the same content.
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
[source,abap]
|
|
----
|
|
DELETE ADJACENT DUPLICATES FROM ITAB COMPARING LAND.
|
|
----
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
[source,abap]
|
|
----
|
|
SORT ITAB BY LAND.
|
|
DELETE ADJACENT DUPLICATES FROM ITAB COMPARING LAND.
|
|
----
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::message.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|