abap-cleaner icon indicating copy to clipboard operation
abap-cleaner copied to clipboard

higher verisions are not reflected

Open Tequilasword opened this issue 1 year ago • 2 comments

Hi,

I'm developing in a bydesign system which is on basis release 8.08. When I use ABAP Cleaner with the latest allowed functions it is using all of the newest statements like lv_counter += 1, which is not supported in this system.

Maybe you can check where is statement parity between NGAP and lower netweaver and apply similar rules.

Best regards, Martin

Tequilasword avatar Apr 23 '24 13:04 Tequilasword

Hi Martin,

yes, I'm afraid these 8.## version numbers are not yet correctly handled by ABAP cleaner and it would be good to support them! I shall try to investigate which ABAP language features are supported by which 8.## version. Currently, the following cleanup rules have restrictions to a certain minimum 7.## release:

  • 7.02 – Replace obsolete pseudo comments with pragmas
  • 7.02 – Use string templates to assemble text
  • 7.40 – Replace CREATE OBJECT with NEW constructor
  • 7.40 – Replace READ TABLE with table expression
  • 7.52 – Replace RAISE ... TYPE with RAISE ... NEW
  • 7.54 – Prefer calculation assignment operators (+=, -= etc.)
  • 7.57 – Use FINAL for immutable variables

Kind regards, Jörg-Michael

jmgrassau avatar May 10 '24 13:05 jmgrassau