ABAP Keyword Documentation → ABAP - Reference → program editing
Dynamic Program Editing
In addition to static program development in the ABAP Workbench, you can edit and generate the following components of ABAP programs with language elements:
This type of program development is called dynamic program development.
Other versions: 7.31 | 7.40 | 7.54
Notes
- On the one hand, the statements for dynamic program development provide a powerful and flexible method of dynamic programming, but on the other hand this type of programming is very elaborate and the created programs are difficult to maintain. Therefore, we recommend that you first make use of the other dynamic programming possibilities for application programs before using the dynamic program development. In ABAP, dynamic programming is facilitated by:
- Data objects, whose size is not statically defined (internal tables, strings)
- Dynamic creation of data types with Runtime Type Creation
- Dynamic creation of data types with
CREATE DATA
- Dynamic token specification - that is, the dynamic specification of operands or entire clauses as data objects in parentheses
- The statements for dynamic program development do not carry out authorization checks or other checks.
These must be programmed separately. You can use the following special function modules in addition
to the statement
AUTHORITY-CHECK
for the required checks:
- The function module RS_ACCESS_PERMISSION carries out all authorization checks that are also carried out when the ABAP Editor is called.
- The function module TR_SYS_PARAMS and other function modules of the function group STR9 determine whether Repository objects can be changed.
- The class CL_ABAP_DYN_PRG contains methods that support the creation of correct and secure dynamic programs.