Ansicht
Dokumentation

ABENDDIC_STRUCTURES_ENH_CAT - DDIC STRUCTURES ENH CAT

ABENDDIC_STRUCTURES_ENH_CAT - DDIC STRUCTURES ENH CAT

Fill RESBD Structure from EBP Component Structure   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

- Enhancement Category of Structures

ABAP Dictionary structures and DDIC database tables that are delivered by SAP can be enhanced using customizing includes or append structures. These types of changes cause problems if the enhancements change the structure fragment view.

For this reason, structures and DDIC database tables are classified in order to be able to recognize and handle problems related to structure enhancements. This classification is used in the program check to create a warning at all positions where the program works with structures, and where later structure enhancements could cause syntax errors or changed program behavior. When a structure or a DDIC database table is defined in the ABAP Dictionary, the enhancement categories shown in the following table can be used as a classification.

Level Category Meaning
1 Unclassified The structure does not have an enhancement category.
2 Cannot be enhanced The structure must not be enhanced.
3 Can be enhanced and character-like All structure components and their enhancements must be character-like and flat.
4 Can be enhanced and character-like or numeric All structure components and their enhancements must be flat.
5 Can be enhanced in any way All structure components and their enhancements can have any data type.

The warnings from the program check are classified into three levels from the following table, depending on the effects of the allowed structure enhancements.

Level Type of Check Meaning
A Syntax check An enhancement that completely exhausts the enhancement category of the affected structure produces a syntax error.
B Extended check Permitted enhancements can produce syntax errors, but not always.
C Extended check Permitted enhancements cannot produce syntax errors, although changes to program behavior do cause semantic problems.

Example

If the structure ddic_struc in the ABAP Dictionary is defined only with flat components but is classified as Can be enhanced in any way, the following program section produces a warning in the syntax check. If the structure were to be enhanced by a deep component after the program was delivered, the program would have incorrect syntax and would no longer be executable. In this case, therefore either the structure ddic_struc must be classified in the ABAP Dictionary as Can be enhanced and character-like or else the offset/length cannot be specified in the program.

DATA: my_struc TYPE ddic_struc,
      str TYPE string,
      off  TYPE i,
      len TYPE i.
...
str = my_struc+off(len).






rdisp/max_wprun_time - Maximum work process run time   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 4592 Date: 20240427 Time: 033849     sap01-206 ( 60 ms )