ABAP - Keyword Documentation → ABAP RAP Business Objects → RAP - Behavior Definitions → RAP - BDL for Behavior Definitions → RAP - Interface Behavior Definition → 

    RAP - Behavior Definition Header, Interface BDEF

    Description


    The RAP behavior definition header of an interface BDEF can project certain elements from its base BO. Defining new elements is not possible. All possible elements are listed below. The implementation type is mandatory and all other attributes are optional.

    The behavior definition header is followed by one or more  entity behavior definition(s) EntityBehaviorDefinition1, EntityBehaviorDefinition2, ... that start with define behavior for.

    Restrictions


    Example


    The following example shows an interface BDEF. The projected BO is DEMO_RAP_UNMANAGED_DRAFT_ROOT. The interface BDEF reuses draft handling and standard operations from the underlying BO. It also defines a foreign entity and excludes a field from the BDEF derived types.

    interface;
    use draft;
    foreign entity demo_cds_validation;
    define behavior for DEMO_RAP_INTERFACE_DRAFT alias Root
    use etag
    {
      use create;
      use update;
      use delete;

      use action Activate;
      use action Discard;
      use action Edit;
      use action Resume;
      use action Prepare;

      field(suppress) DataFieldRoot;

    }