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

Store the ABAP release in custom profile

Open aaalbe opened this issue 1 year ago • 5 comments

I would like to use the ABAP Cleaner for a modern S4Hana system, but also for some older legacy ECC systems from the same ADT install. I created a custom profile for ECC and one for S4Hana, but when switching between profiles the ABAP syntax version needs to be selected manually every time. It would be great to be able to store the ABAP syntax version together with the profile and switch them together.

Best regards,

Arjan

aaalbe avatar May 16 '24 11:05 aaalbe

Since last month the ABAP Cleaner has workspace-specific settings. You could have one workspace for S/4 and one for ECC systems. The setting for the ABAP release can then be set once for each workspace.

Check out this comment for more details: https://github.com/SAP/abap-cleaner/issues/211#issuecomment-2043139858

Hopefully that helps you already, Arjan 😉

ConjuringCoffee avatar May 16 '24 12:05 ConjuringCoffee

Nice! Thanks for the response. I will play around with switching workspaces as you suggested.

aaalbe avatar May 16 '24 13:05 aaalbe

Hi Aarjan,

please also note that if you use ABAP cleaner from ADT, the setting on the ABAP cleaner UI ("Restrict rules to syntax of …") is just an additional restriction: ABAP cleaner also automatically gets the ABAP release of the system in which the incoming source code is stored …

image

… and then uses the lower one of those two releases to restrict the syntax. The restriction on the UI is usually just needed if you want to downport you code to even older releases at a later point (or in the standalone version, where ABAP cleaner doesn't know the system's ABAP release).

Kind regards, Jörg-Michael

jmgrassau avatar May 16 '24 13:05 jmgrassau

Oh, I didn't know that the ABAP Cleaner automatically detects the system's version... in this case, switching the workspace isn't necessary after all!

The UI doesn't make that quite clear in my opinion. Maybe it would be useful to display the automatically determined release right there in the settings? Check out my crude mock-up:

image

ConjuringCoffee avatar May 16 '24 13:05 ConjuringCoffee

I also stumbled upon this and didn't know that it automatically detects the ABAP version. Would be cool if this was somehow noted in the UI. Some of our devs are afraid of using it, because they think they have to keep track of the system version when switching between projects/systems :D

menof36go avatar Sep 23 '25 11:09 menof36go