Ansicht
Dokumentation

ABENBDL_ASSOCIATION_ABSTRACT - BDL ASSOCIATION ABSTRACT

ABENBDL_ASSOCIATION_ABSTRACT - BDL ASSOCIATION ABSTRACT

Vendor Master (General Section)   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

- Associations, Abstract BDEF

... association _Assoc $[with hierarchy$];

Effect

Includes a CDS association in the hierarchical BDEF derived type. The keyword association is used for associations, compositions, and to-parent associations. An entity whose child entity is included in the same abstract BDEF must specify the respective composition using the keyword association. If no behavior is defined for a subnode, then the respective composition must not be specified.

The optional addition with hierarchy can be used for associations only if with hierarchy is also specified in the BDEF header. It can be used for to-parent associations and for cross-BO associations. An association with this addition is handled like a composition: the target type is integrated (as structure or table, depending on the cardinality) into the source type. As a result, the association in question is included several times in the type structure. The definable structure thus generalizes from type tree to DAG (directed acyclic graph).

The association target of an association with the addition with hierarchy must be covered by an abstract BDEF with hierarchy. Typically, to-parent associations with hierarchy are used for local sub-structures, while cross-BO associations serve reuse.

Type mappings to other DDIC types continue to be defined in the BDEF containing the respective entity. Thus, if a hierarchical type is defined with cross-BO associations, its mapping to a hierarchical DDIC type spreads out across multiple abstract BDEFs.

Example

The following abstract BDEF defines behavior for four nodes, including intra- and cross-BO associations.






Vendor Master (General Section)   General Material Data  
This documentation is copyright by SAP AG.

Length: 3305 Date: 20240512 Time: 054959     sap01-206 ( 52 ms )