When you write a reusable code to DB related activities, you should consider checking if the call is made in Update Task or without as they are generally happen in ABAP Update Task. If it is with Update Task, you MUST not do COMMIT or ROLLBACK WORK as it would end in short dump. FM…
Builder is another Design Patterns in Object Oriented, to hide complex object building from the client. Lets check out it design and its implemented in OO ABAP.
ABAP Field Symbols are very powerful. Usage of Field-Symbols would provide performance gain, but for that you must use it correctly otherwise you may run into issues.
FM SYSTEM_CALLSTACK comes in handy when it is needed to check on the called program which is calling the current code block. This FM can be called in any code module – Methods, FMs, Subroutines, etc.
You can always use IS BOUND to check if the Variable is instantiated or not. But, if you want to check if any variable is referring to a class or in other words, variable is declared with TYPE REF TO, you use this technique leveraging .
Exception class can be defined using to use static Text as well as the messages from the Message repository maintained using transaction SE91. In this article, lets see how to use the message from Message repository T100.