AS ABAP Release 758, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - Rules for ABAP Cloud → Contract Rules for ABAP Released APIs → C0 Contract Rules → C0 Contract Rules for DDIC Objects →Example: C0 Released DDIC Structure, Design and Consumption
This topic provides an example for the design of a C0 released DDIC structure. It also shows an example for an extension to this released API from the restricted ABAP language version ABAP for Cloud Development.
DDIC structure as a C0 released API
The following DDIC structure DEMO_RELEASED API defines all necessary extensibility annotations and can be released as a stable API under the C0 contract.
Note: This DDIC structure serves merely demonstration purposes. It meets all the requirements for C0 release. However, it is not released under the C0 contract because it is not intended to be used as an API.
Extending a C0 released API
The following append structure DEMO_STRUCTURE_EXTEND extends the DDIC structure DEMO_RELEASED_API displayed above. It complies with the naming rules, using a namespace prefix and the mandatory field suffix EMO.
Note: The prefix ii is representative. It is meant as a reminder to use the correct namespace prefix. In customer systems, the namespace prefix yy or zz must be used.
The class CL_DEMO_DDIC_RELEASED_API provides type information of the extended DDIC structure. It also includes the extension fields.