rspec/rules/S1485/abap/rule.adoc

38 lines
667 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-04-28 16:49:39 +02:00
``++DATA BEGIN OF ... OCCURS++`` has been deprecated and will eventually be removed. All usages should be replaced.
=== Noncompliant code example
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,abap]
2021-04-28 16:49:39 +02:00
----
DATA BEGIN OF itab OCCURS n. "Noncompliant
...
DATA END OF itab [VALID BETWEEN intlim1 AND intlim2].
----
=== Compliant solution
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,abap]
2021-04-28 16:49:39 +02:00
----
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[]