rspec/rules/S1485/abap/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

38 lines
667 B
Plaintext

== Why is this an issue?
``++DATA BEGIN OF ... OCCURS++`` has been deprecated and will eventually be removed. All usages should be replaced.
=== Noncompliant code example
[source,abap]
----
DATA BEGIN OF itab OCCURS n. "Noncompliant
...
DATA END OF itab [VALID BETWEEN intlim1 AND intlim2].
----
=== Compliant solution
[source,abap]
----
DATA BEGIN OF wa.
...
DATA END OF wa.
DATA itab LIKE TABLE OF wa.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Declare this data structure differently to remove the use of "DATA BEGIN OF OCCURS".
endif::env-github,rspecator-view[]