Ansicht
Dokumentation

ABENDDIC_APPEND_STRUCTURES - DDIC APPEND STRUCTURES

ABENDDIC_APPEND_STRUCTURES - DDIC APPEND STRUCTURES

CL_GUI_FRONTEND_SERVICES - Frontend Services   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

- Append Structures

An append structure is a structure in ABAP Dictionary appended to another DDIC structure or DDIC database table and which adds its components to this structure or table. In customer systems, append structures can be added to structures and DDIC database tables delivered by SAP. An append structure is assigned to exactly one table or structure. There can, however, be more than one append structure for a table or structure. The components of append structures must meet the prerequisites for table fields.

The following extensions can be made to a DDIC database table or structure using an append structure:

  • Foreign keys defined for existing fields of a DDIC database table

All extensions are part of the append structure, which means that any changes made to these enhancements are made only using the append structure. The same applies to transports. When a DDIC database table or structure is activated, all associated append structures are found and their components are appended to the DDIC database table or structure. Any foreign keys or search help bindings added using the append structure are also appended. When an append structure is activated, the assigned DDIC database table or DDIC structure is adjusted to the changes made. Any existing tables are not adjusted, which can put the fields in the dictionary in a different order from the order on the database. When a DDIC structure or DDIC database table with an append structure is copied, the appended fields, foreign keys, and search helps become real elements of the target of the copy.

The following must be noted when using append structures to enhance DDIC database tables:

  • No append structures can be appended to DDIC database tables with fields of the type LCHR or LRAW, since these fields must always be the last field of the table.
  • Any fields appended to a DDIC database table using an append structure can be added to its secondary indexes. No secondary index can be defined for the append structure itself.
  • A binding of a check table or search help that already exists for a field of the DDIC database table cannot be modified using the append structure.

Extensions of SAP structures or SAP tables using append structures in customer systems do not constitute modifications. Append structures created for SAP objects in customer systems are in the customer namespace (or in the namespace of a partner of a special development project) and hence are protected from being overwritten by upgrades. It is advisable to also create the components of append structures of this type with names from the customer namespace to avoid naming conflicts. After an upgrade, the associated append structures are again appended to tables modified by SAP.

Append structures can be defined as form-based structures in transaction SE11 or as source-code-based structures using Dictionary DDL in the ABAP Development Tools. The following section is a summary of the syntax of the source code-based definition:

Note

The same structure can be appended to multiple DDIC database tables or structures by including it in the individual append structures as an include structure.

Example

The append structure DEMO_APPEND_STRUCTURE extends the structure DEMO_STRUCTURE.






ROGBILLS - Synchronize billing plans   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 5000 Date: 20240419 Time: 054627     sap01-206 ( 85 ms )