P_SpecAPICustomDefinedAttrib
P_SpecAPICustomDefinedAttrib is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_ProdSpecCompositionTypeAll, I_SpecCstmPropertyDefinition, I_SpecStdCompositionDefinition) and exposes 23 fields with key fields ProdSpecCompositionType, IsCustomComposition, IsProperty, IsCustomComposition, IsProperty.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_ProdSpecCompositionTypeAll | I_ProdSpecCompositionTypeAll | from |
| I_SpecCstmPropertyDefinition | I_SpecCstmPropertyDefinition | union |
| I_SpecStdCompositionDefinition | I_SpecStdCompositionDefinition | union |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSPCAPICUSDA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| VDM.lifecycle.contract.type | #NONE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProdSpecCompositionType | ProdSpecCompositionType | ||
| KEY | IsCustomComposition | |||
| KEY | IsProperty | |||
| ProdSpecCompositionCategory | ProdSpecCompositionCategory | |||
| ProdSpecCmpstnHdrValAssgmtType | ProdSpecCmpstnHdrValAssgmtType | |||
| ProdSpecCmpstnHdrRating | ProdSpecCmpstnHdrRating | |||
| ProdSpecCmpstnHdrValidityArea | ProdSpecCmpstnHdrValidityArea | |||
| ProdSpecCmpstnSpecType | ProdSpecCmpstnSpecType | |||
| KEY | IsCustomComposition | |||
| KEY | IsProperty | |||
| ProdSpecCompositionCategory | ||||
| ProdSpecCmpstnHdrValAssgmtType | ProdSpecCmpstnHdrValAssgmtType | |||
| ProdSpecCmpstnHdrRating | ProdSpecCmpstnHdrRating | |||
| ProdSpecCmpstnHdrValidityArea | ProdSpecCmpstnHdrValidityArea | |||
| ProdSpecCmpstnSpecType | ProdSpecCmpstnSpecType | |||
| KEY | IsCustomComposition | |||
| KEY | IsProperty | |||
| ProdSpecCompositionCategory | ||||
| ProdSpecCmpstnHdrValAssgmtType | ProdSpecPrptyDefValAssgmtType | |||
| ProdSpecCmpstnHdrRating | ProdSpecPrptyDefRating | |||
| ProdSpecCmpstnHdrValidityArea | ProdSpecPrptyDefValidityArea | |||
| ProdSpecCmpstnSpecType | ||||
| ProdSpecCmpstnGroupSpecType |
@AbapCatalog.sqlViewName: 'PSPCAPICUSDA'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #S
@VDM.lifecycle.contract.type: #NONE
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_SpecAPICustomDefinedAttrib
as select from I_ProdSpecCompositionTypeAll //custom composition/properties 'C'
{
key ProdSpecCompositionType,
key cast('X' as char1 preserving type) as IsCustomComposition,
key cast(' ' as char1 preserving type) as IsProperty,
//key cast('C' as char1 preserving type) as ProdSpecAPIAttributeDefTyp,
ProdSpecCompositionCategory,
ProdSpecCmpstnHdrValAssgmtType,
ProdSpecCmpstnHdrRating,
ProdSpecCmpstnHdrValidityArea,
ProdSpecCmpstnSpecType,
ProdSpecCmpstnGroupSpecType
}
union select from I_SpecStdCompositionDefinition //standard compositions/properties ''
{
key ProdSpecCompositionType,
key cast(' ' as char1 preserving type) as IsCustomComposition,
key cast(' ' as char1 preserving type) as IsProperty,
//key cast('' as char1 preserving type ) as ProdSpecAPIAttributeDefTyp,
' ' as ProdSpecCompositionCategory,
ProdSpecCmpstnHdrValAssgmtType,
ProdSpecCmpstnHdrRating,
ProdSpecCmpstnHdrValidityArea,
ProdSpecCmpstnSpecType,
ProdSpecCmpstnGroupSpecType
}
union select from I_SpecCstmPropertyDefinition //property "composition" 'P'
{
key ProdSpecPrptyDefID as ProdSpecCompositionType,
key cast(' ' as char1 preserving type) as IsCustomComposition,
key cast('X' as char1 preserving type) as IsProperty,
//key cast('P' as char1 preserving type) as ProdSpecAPIAttributeDefTyp,
' ' as ProdSpecCompositionCategory,
ProdSpecPrptyDefValAssgmtType as ProdSpecCmpstnHdrValAssgmtType,
ProdSpecPrptyDefRating as ProdSpecCmpstnHdrRating,
ProdSpecPrptyDefValidityArea as ProdSpecCmpstnHdrValidityArea,
' ' as ProdSpecCmpstnSpecType,
' ' as ProdSpecCmpstnGroupSpecType
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRODSPECCOMPOSITIONTYPEALL",
"I_SPECCSTMPROPERTYDEFINITION",
"I_SPECSTDCOMPOSITIONDEFINITION"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA