As per this comment in this clean ABAP discussion thread, the ideal scenario to handle exceptions would be like this:
class LCX_APPLICATION_ERROR definition inheriting from CX_STATIC_CHECK.
endclass.
class LCX_INTERNAL_ERROR definition inheriting ...
REDUCE has been around since ABAP Release 740. There have been some useful blogs on it, especially this one from Horst Keller.
I love REDUCE and never miss a chance of using it. The typical use cases for me are summing up or concatenating the conten...
I like using ABAP functional operators in my daily coding, but sometimes i question the readability (CLEANliness) of the such coding blocks.
What i currently have:
R_RESULT
= cond #(
when I_PARAM is initial
and UTILITY->FOO( ) <> ...
Apparently if a (selection) screen element is defined using the predefined ABAP-Type 'd', the automatic date help is not displayed. Tbh, i came across this problem for the first time today, when defining a utility report (for PoC purposes).
PARAMET...
Hello,
I am modelling a BRF+ "Search Tree" for calculating the BuPa credit worthiness.
The algorithm looks something like this:
Check1: If true, RESULT-RATING = 'A1' + RESULT-SOURCE = 'Check1' ; ELSECheck2: If true, RESULT-RATING = 'A2' + RESUL...
As someone who has been using abap Cleaner plugin since a few years (since it was an inner-source project at SAP), i can hands-down recommend it to any ABAPer who cares about clean code.I have almost stopped using ABAP Formatter (aka Pretty Printer) ...
I prefer CL_BAL_LOGGING because with it i can work with the interface IF_BAL_LOGGER (CL_BAL_LOGGING=>CREATE_INSTANCE). That way it is easier for me to mock the behavior of the logger in unit-tests. Of course, there are some missing functions but it ...
Hi Matt,
Additionally, LOOP AT ASSIGNING is faster than REFERENCE INTO.
I was team ASSIGNING until immutable (FINAL) data references were introduced. AFAIK, field-symbols cannot be immutable. When i want to just iterate on a "wide" internal table wit...
Agree with Matt. I found the title of the blog a bit misleading. As Matt (and the ABAP docu) mentions the insert/append table_line, the table_line is a general expression position In your examples, you've highlighted the use of CORRESPONDING. It can ...