Hey #ABAP , is "Semi Constant" a thing? (And is there a better word for it? )
It's used like a constant, but well actually, its a variable.
Why? So I CAN change it in the Debugger, if I want to try something out.
Examples:
DATA lv_con_max_rows_select_eg_50 TYPE i VALUE 50.
DATA lv_con_do_2_times TYPE i VALUE 2.
Do you use something like this?
The upcoming #SAPOpenSource webinar is all about Code Pal! This #OpenSource tool helps you easily integrate the #CleanABAP rules into your development.
Register now: https://events.sap.com/code-pal-clean-abap/
#OpenSource #codepal #ABAP
Webinar on "Code pal – ABAP test cockpit checks for Clean ABAP" open for registration - another great open source tool which supports the adoption of Clean ABAP.
https://events.sap.com/code-pal-clean-abap/en/registration.aspx
Jörg-Michael Grassau the master mind behind ABAP cleaner, just wrote the best blog so far about the tool which can help you to automate many of the Clean ABAP rules! The blog also contains the links to the recent sessions about the tool.
https://blog.sap-press.com/how-to-clean-your-abap-code-with-one-keystroke-using-abap-cleaner
Automatically clean up your ABAP code applying the basic rules of the Clean ABAP guide and book with ABAPCleaner. Join the SAP OpenSource webinar
https://blogs.sap.com/2022/12/21/clean-code-writing-maintainable-readable-and-testable-code/
@klaushaeuptle
Nice!
I had a look at #AbapCleaner today. Standalone works fine, but I could not get the ADT-AddOn installed yet:
Attention #ABAP developers
Do you want to clean your code with one keystroke?
? What if you could choose from 55+ cleanup rules to suit your needs? Meet ABAP cleaner, the ultimate tool for the ABAP code style!
https://github.com/SAP/abap-cleaner #CleanABAP #OpenSource #Automation #SAP - @klaushaeuptle
Attention ABAP developers
Do you want to clean your code with one keystroke?
? What if you could choose from 55+ cleanup rules to suit your needs? Meet ABAP cleaner, the ultimate tool for the ABAP code style!
https://github.com/SAP/abap-cleaner
More details on Clean Code, Clean ABAP, the books, the style guide repository and more can be found in the blog: https://blogs.sap.com/2022/12/21/clean-code-writing-maintainable-readable-and-testable-code/
#AdtAdvantage : rename.
0. I have a method, that does one thing, and does it good (#CleanABAP) : Calculate the fraction at production line. Fine.
1. Now I notice, that I can use it in another context (calculate fraction for a single unit), too. Nice.
2. Only thing: the parameter is called iv_fraction_at_line. Now this name doesn't fit anymore (the code works fine, though).
1/2