This article started with my blog post Suggestions for better object oriented design . After I have published it on LinkedIn, @EnnoWulff started a friendly discussion about composition vs inheritance; and sent me a GitHub repo containing his design ...
Today, I would like to demonstrate a very simple but effective programming habit that I use in ABAP development: "TODO based coding".
The idea is to plant TODO comments into the code (typically among multiple programs / classes) before actually star...
ABAP CDS Views are great and all; however, they don't support subqueries at this time. In this post, I would like to share a workaround which functions similar to "NOT EXISTS".
The requirement was to exclude material document items (MSEG) which were...
In this post, I will share a general purpose class covering the multiton design pattern. By implementing a simple interface, you can add multiton functionality to your existing classes.
What is multiton, anyway?
Multiton is a performance oriented d...
As many of you already know, ABAP supports the UNION command now. UNION is an SQL command to combine the results of two separate queries into one dataset.
Here is a sample dataset from the imaginary database table Z1:
ID
TEXT
001
One
00...
You can rent a fully functional S/4 HANA ERP system on cal.sap.com and pay as you use; but it would be a time limited demo system - so it's not supposed to be used forever.
I would approach this differently, depending on the environment. For on-premise development, CDS is useful for centralizing queries and handling simpler requirements. As things get more complex, AMDP (SqlScript) becomes preferable due to its more pow...
In terms of performance, "For all entries" is usually evil.If you are on Hana, try this instead: SELECT
FROM gt_vbrk AS _vbrk
INNER JOIN ZDIGI_OOWARD_H as _z ON _z~ACCVOUCHERNO = _vbrk~vbeln
FIELDS _z~ACCVOUCHERNO, _z~EWBNUMBER
INTO TA...