Show TOC

Extending Tables Without Modification Using Append Structures

Description

Customer fields can be added to structures and transparent tables without modifying the table itself, the new fields being entered in a separate append structure.

An append structure is a structure which is allocated to only one table. However, a single table can have several append structures. If an append structure is created or changed, the table to which it is assigned will be activated when the structure itself is activated and the changes will take effect there, that is, the fields of the append structure are appended to the allocated table. If a table is activated, on the other hand, all active append structures for the table will be appended to it.

Append structures are created by the customer in the customer name range and are thus protected against overwriting at the time of an upgrade or Release upgrade. During a Release upgrade, the new versions of the standard tables are imported and the fields contained in append structures are automatically reappended during activation.

Example: An append structure ZT is defined for table T.


            ----------------           -----------

            | K | F1 | F2 |        <-- | Z1 | Z2 |

            ----------------           -----------

           Dictionary table T          Append structure ZT for T

After activation, the runtime object belonging to T and the underlying database table have the fields from ZT, and '.append ZT' is displayed as the last line in the field display in the ABAP/4 Dictionary.


                   --------------------------

                   | K | F1 | F2 | Z1 | Z2 |

                   --------------------------

               Database table T, runtime object T

If you want to append fields to transparent tables or structures, create an append structure and insert the fields there. If you make further additions, extend this append structure. Therefore, create only one APPEND structure for each table/structure. This cannot then be deleted!

To create or change an append structure, go into the display of the table to be extended and choose Goto -> Append structures.

Notes:

Further notes

Append structures are not delivered in the standard R/3 System. The append structure functionality is used to extend the standard system by specific fields in industry solutions and country-specific versions. However, you can create your own append structures for your own additions.

During the Release upgrade from 2.x to 3.0, the fields created by the customer are rolled out into an append structure, where possible, during Dictionary adjustment of transparent tables and structures. Adjustment is then not required in future Release upgrades.

Since the field sequence in the ABAP/4 Dictionary can be different to the Field sequence in the database, adding append structures or inserting fields into such append structures does not lead to the conversion of transparent tables.