ABAP - Keyword Documentation →  ABAP - Rules for ABAP Cloud →  Contract Rules for ABAP Released APIs →  C0 Contract Rules →  C0 Contract Rules for RAP Behavior Definitions → 
Mail Feedback

C0 Contract Rules for Consumers of RAP Behavior Definitions

The provider rules for objects with a C0 contract ensure that released objects are changed only in a very restricted way and help to avoid errors and interruptions after an SAP upgrade. Nevertheless, the rules do not prescribe full downward compatibility and leave some room for necessary enhancements to released APIs. Therefore, the users of released APIs still have to consider the allowed compatible changes and access the APIs in such a way that the following errors and interruptions are avoided:

When extending BDEFs, consumers must obey the following naming rules to avoid naming conflicts.

Naming Rules  

The following applies to extensions in ABAP for Cloud Development:

  1. If the extension has a namespace prefix, such as /PREFIX/, its elements must also have this prefix.
  2. If the name of the extension starts with Z or with Y, its element names must begin with ZZ or with YY. Additionally, if the element name begins with YY, this prefix YY must not be followed by A, M, S, or the digits 1 to 9.
  3. Otherwise, if the name of the extension does not start with Z or with Y, the element name must not begin with a namespace prefix, nor with ZZ or YY.
  4. If the behavior for an extension node is defined (extension entity behavior definition), the element names inside this entity must either be without prefix, or they are checked against the name of the extension according to the rules above.

The following applies to extensions in Standard ABAP:

The checks apply to the following elements:

Example Topics  

Example for a C0 released RAP BO which is extended from ABAP for Cloud Development.

Example for a C0 released projection BDEF which is extended from the language version ABAP for Cloud Development.