ABAP Objects8838771
De BISAWiki
Primarily based on your present expertise of procedural programming with ABAP, we will clarify the object-oriented strategy and motivate you to use it konsultanci SAP. The primary emphasis will be on explanation. At this stage, it is important to introduce you to the matter and its principles, so that we can create on this knowledge later on on.
For now, it would not make sense to try out to argue a conclusive case for or from the item-oriented strategy. Prior to you can make a experienced determination, you need to get to know all object-oriented ideas and their benefits and drawbacks.
As we can see from the programming language Simula sixty seven, item-oriented programming was produced at roughly the identical time as the rational and procedural programming versions. In the previous, COBOL and, above all, the procedural programming design as expressed in languages like C or Pascal were dominant in enterprise application improvement. Before ABAP, SAP originally utilised a macro assembler. Even nowadays, several developers still have a lot more expertise with procedural programming than item-oriented programming. As a result, this introduction to object-oriented programming also employs references to the procedural design in its explanations SAP warszawa.
A normal procedural ABAP plan consists of type definitions and info declarations, which describe the structure of the info the plan employs when it is executed. Modularization models (for illustration, subroutines or operate modules) can be encapsulated. Nonetheless, on the major software level, there is no special defense for the worldwide data objects. Any variables can be accessed by any implies.
Every single time a perform module is called in a main program, its function team is loaded into the internal session. The perform group continues to be energetic until finally the major software is completed. The major software and the function groups that had been named in it are all stored in independent memory areas. Even if their knowledge objects have the very same names, they are not shared. You can only phone the function modules of the purpose teams from the major system. In flip, the perform modules can obtain the other factors especially the global knowledge of the function groups. In other phrases, it is not achievable to entry the function group's global knowledge right from the principal program. Encapsulation also incorporates the notion that the implementation of a support can be concealed from the system's other elements, so that these are not able to and do not have to make assumptions about the internal position of the modularization unit system SAP. This way, the layout of these other factors is not dependent on a particular implementation of the other modularization units. For that reason, a purpose group is a unit of data and features that manages this info. Encapsulated entry to data and services one of the numerous ideas of the item-oriented programming product can for that reason be supported in the procedural portion of ABAP Objects. This intended that BAPIs could be applied as operate modules and Organization Objects could be applied as operate groups.
The object-oriented principles of ABAP Objects are in essence the same as those of other modern day object-oriented languages like C or Java. A little number of concepts that did not confirm to be effective in these other languages ended up not incorporated in ABAP Objects. On the other hand, ABAP Objects also has valuable language elements that C and Java do not supply. Some particular attributes of ABAP Objects only exist since of the guaranteed upward compatibility of more mature ABAP language factors. Major variations in comparison to other object-oriented languages are in the improvement setting. You can use the whole assortment of features of the ABAP Workbench with ABAP Objects.
ABAP Objects is not a new language, but has been created as a systematic extension of ABAP. All of the extensions, including the old procedural areas, are upwardly suitable.