ABAP Objects5489608

De BISAWiki

Edição feita às 05h33min de 21 de fevereiro de 2013 por CedricpyrxjaeufkVanmatre (disc | contribs)
(dif) ← Versão anterior | ver versão atual (dif) | Versão posterior → (dif)

Based on your existing expertise of procedural programming with ABAP, we will describe the item-oriented technique and motivate you to use it SAP EDI. The primary emphasis will be on rationalization. At this phase, it is essential to introduce you to the subject matter and its principles, so that we can create on this information afterwards on.

For now, it would not make perception to try out to argue a conclusive circumstance for or in opposition to the object-oriented technique. Just before you can make a qualified decision, you require to get to know all item-oriented concepts and their benefits and down sides.

As we can see from the programming language Simula sixty seven, item-oriented programming was created at about the identical time as the logical and procedural programming models. In the earlier, COBOL and, over all, the procedural programming model as expressed in languages like C or Pascal had been dominant in company application advancement. Just before ABAP, SAP at first utilised a macro assembler. Even today, numerous builders even now have a lot more encounter with procedural programming than item-oriented programming. For that reason, this introduction to object-oriented programming also uses references to the procedural design in its explanations system SAP.

A typical procedural ABAP program is composed of type definitions and knowledge declarations, which explain the framework of the knowledge the program utilizes when it is executed. Modularization models (for example, subroutines or function modules) can be encapsulated. Nonetheless, on the main software amount, there is no special defense for the global information objects. Any variables can be accessed by any implies.

Every single time a purpose module is referred to as in a main program, its operate group is loaded into the inside session. The function group remains active until the main system is concluded. The principal system and the perform groups that were named in it are all saved in different memory locations. Even if their knowledge objects have the exact same names, they are not shared. You can only phone the function modules of the purpose groups from the primary program. In flip, the function modules can access the other parts specifically the worldwide knowledge of the purpose groups. In other phrases, it is not possible to obtain the function group's international data directly from the main plan. Encapsulation also incorporates the notion that the implementation of a support can be hidden from the system's other parts, so that these cannot and do not have to make assumptions about the interior position of the modularization device system SAP. This way, the design of these other elements is not dependent on a specific implementation of the other modularization units. As a result, a function team is a unit of info and functions that manages this data. Encapsulated access to info and services a single of the several principles of the item-oriented programming model can consequently be supported in the procedural component of ABAP Objects. This intended that BAPIs could be implemented as perform modules and Business Objects could be carried out as purpose teams.

The item-oriented concepts of ABAP Objects are primarily the identical as these of other modern day item-oriented languages like C or Java. A modest number of principles that did not prove to be successful in these other languages have been not provided in ABAP Objects. On the other hand, ABAP Objects also has beneficial language factors that C and Java do not provide. Some distinct features of ABAP Objects only exist because of the confirmed upward compatibility of more mature ABAP language components. Key distinctions in comparison to other object-oriented languages are in the growth atmosphere. You can use the whole selection of functions of the ABAP Workbench with ABAP Objects.

ABAP Objects is not a new language, but has been designed as a systematic extension of ABAP. All of the extensions, such as the aged procedural parts, are upwardly suitable.

Ferramentas pessoais