P_SpecAPICustomDefinedAttrib

DDL: P_SPECAPICUSTOMDEFINEDATTRIB SQL: PSPCAPICUSDA Type: view COMPOSITE

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)

SourceAliasJoin Type
I_ProdSpecCompositionTypeAll I_ProdSpecCompositionTypeAll from
I_SpecCstmPropertyDefinition I_SpecCstmPropertyDefinition union
I_SpecStdCompositionDefinition I_SpecStdCompositionDefinition union

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/