fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

8.8K
active users

#cleanABAP

0 posts0 participants0 posts today

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?

#CleanAbap ?

🚨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!🚀 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: blogs.sap.com/2022/12/21/clean

GitHubGitHub - SAP/abap-cleaner: ABAP cleaner applies 55+ cleanup rules to ABAP code at a single keystrokeABAP cleaner applies 55+ cleanup rules to ABAP code at a single keystroke - GitHub - SAP/abap-cleaner: ABAP cleaner applies 55+ cleanup rules to ABAP code at a single keystroke

#SAP #ABAP #ADT

#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