Video Lesson 7.3: ABAP Table Types
You will learn how to create a table type object in the ABAP dictionary, this can be re-used in different programs to declare table type variables.
Table Types
- Table types are construction blueprints for internal tables that are stored in the ABAP Dictionary.
- When you create a table type in the ABAP Dictionary, you specify the line type, access type, and key.
- The line type can be any data type from the ABAP Dictionary, that is, a data element, a structure, a table type, or the type of a database table
- In an ABAP program, you can use the TYPE addition to refer directly to a table type. ->
Visibility of Global and Local Data Objects
- Variables defined in the main program are global data objects.
- They are visible (can be addressed) in the entire main program in every subroutine called.
- Variables defined within a subroutine are called local, as they only exist in the relevant subroutine - just like the formal parameters.
- The formal parameters and local data objects of a subroutine can not have the same names.