SAP C0 DEMO DDIC
Get Example source ABAP code based on a different SAP table
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
The following DDIC structure
ABAP_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.
@AbapCatalog.enhancement.category : #EXTENSIBLE_ANY
@AbapCatalog.enhancement.fieldSuffix : 'EMO'
@AbapCatalog.enhancement.quotaMaximumFields : 250
@AbapCatalog.enhancement.quotaMaximumBytes : 2500
@AbapCatalog.enhancement.quotaShareCustomer : 50
@AbapCatalog.enhancement.quotaSharePartner : 50
define structure demo_released_api {
product_title : abap.char(30);
@Semantics.amount.currencyCode : 'demo_released_api.currency'
amount : abap.curr(7,2);
currency : abap.cuky;
@AbapCatalog.anonymizedWhenDelivered : true
created_by : char12 not null;
created_on : abap.dats not null;
created_at : abap.tims not null;
@AbapCatalog.anonymizedWhenDelivered : true
last_changed_by : char12 not null;
last_changed_on : abap.dats not null;
last_changed_at : abap.tims not null;
}>
The following
ABAP_NOTE The prefix
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
extend type demo_released_api with demo_structure_extend {
@Semantics.quantity.unitOfMeasure : 'demo_structure_extend.ii_unit_emo
ii_quantity_emo : abap.quan(15,3);
ii_unit_emo : abap.unit(3);
} >
The class