Symptom
In ABAP Development Tool, when trying to fetch data using a Custom CDS View which has a custom business object as a data source, the error "The use of Table YY1_XXX is not permitted" is obtained.
Environment
SAP S/4HANA Cloud Public Edition
Cause
Key user extensibility objects and developer extensibility objects are allocated to different technical layers defined by their respective API state. By default, key user extensibility objects can’t use developer extensibility objects and vice versa. However, some key user development objects can use developer extensibility objects and vice versa.
Resolution
Custom fields and data source extensions created with key user extensibility can be used by the below developer extensibility objects:
- ABAP Classes and Interfaces
- CDS View Entities
- CDS Custom Entities
This applies only in case the extended CDS entities are released for contract C1 with visibility "Use in Cloud Development".
Custom business object of key user extensibility can not be used in developer extensibility objects, usages of this type in the ABAP source code will result in a syntax error.
In key user extensibility source code and CDS view/query building, developer extensibility objects can be used in case these objects were released for contract C1 with visibility "Use in Key User Apps".
The following developer extensibility objects can be released to be used in Custom CDS Views, Custom Logic and Custom Fields applications:
- CDS View Entities
- CDS Custom Entities
- ABAP Classes and Interfaces
- ABAP Data Types, Structures, Table Types and Tables
For more information, an overview of the applicable use cases can be found in the Key User Extensibility | SAP Help Portal.
See Also
Keywords
Key user Extensibility, The use of Table YY1_XXX is not permitted, Custom Business Object, ABAP Development Tool, ADT, Source code, Custom CDS View, developer extensibility objects, Key user extensibility objects , KBA , BC-SRV-APS-EXT-REL , Extensibility: Release of APIs , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem