I_PRODSPECCOMPOSITIONTYPEALL

CDS View

Common view of all Prod Spec Cmpstn Type

I_PRODSPECCOMPOSITIONTYPEALL is a CDS View in S/4HANA. Common view of all Prod Spec Cmpstn Type. 7 CDS views read from this table.

CDS Views using this table (7)

ViewTypeJoinVDMDescription
A_ProdSpecCompositionType view from COMPOSITE Composition Prod Spec Composition Type
A_ProdSpecCompositionTypeAll view from COMPOSITE Common view of all Prod Spec Cmpstn Type
A_ProdSpecListingCmpstnType view from COMPOSITE Listing Prod Spec Composition Type
A_ProdSpecQltatvCmpstnType view from COMPOSITE Qualitative Prod Spec Composition Type
A_ProdSpecQtytvCmpstnRefQty view from COMPOSITE Ref Quantity for Quantitative Cmpstn
A_ProdSpecQtytvCmpstnType view from COMPOSITE Quantitative Prod Spec Composition Type
P_SpecAPICustomDefinedAttrib view from COMPOSITE
@AbapCatalog.sqlViewName: 'IPRODSPECOMPTYPA'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@Metadata.ignorePropagatedAnnotations: true

@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.sizeCategory: #S

@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@VDM.viewType: #COMPOSITE
@EndUserText.label: 'Common view of all Prod Spec Cmpstn Type'

define view I_ProdSpecCompositionTypeAll
  as select from I_SpecCstmCmpstnDefinition
    inner join   I_SpecValAssgmtType on I_SpecCstmCmpstnDefinition.ProdSpecCmpstnHdrValAssgmtType = I_SpecValAssgmtType.SpecValAssgmtType

  association [0..*] to I_PrSpCompExcptnCodeByCmpstn   as _ProdSpecCompExceptionCode on $projection.ProdSpecCompositionType = _ProdSpecCompExceptionCode.ProdSpecCompositionType
  association [0..*] to I_ProdSpecCompCompTypeByCmpstn as _ProdSpecCompComponentType on $projection.ProdSpecCompositionType = _ProdSpecCompComponentType.ProdSpecCompositionType
  association [0..*] to I_ProdSpecCmpstnTypeSpecType   as _SpecificationType         on $projection.ProdSpecCompositionType = _SpecificationType.ProdSpecCompositionType

{
  key ProdSpecCompositionType,
      cast( case SpecValAssgmtCategory
       when 'B' then 'LISTING_COMPOSITION'
       when 'C' then 'COMPOSITION'
       when 'RMS_D' then 'QUAL_COMPOSITION'
       when 'RMS_N' then 'QUANT_COMPOSITION'
       end as /plmb/spc_composition_category ) as ProdSpecCompositionCategory,

      ProdSpecCmpstnSpecType,
      ProdSpecCmpstnGroupSpecType,

      @Consumption.hidden: true
      ProdSpecCmpstnHdrValAssgmtType,

      @Consumption.hidden: true
      ProdSpecCmpstnHdrRating,

      @Consumption.hidden: true
      ProdSpecCmpstnHdrValidityArea,

      _ProdSpecCompExceptionCode,
      _ProdSpecCompComponentType,
      _SpecificationType
}
where
     SpecValAssgmtCategory = 'B'
  or SpecValAssgmtCategory = 'C'
  or SpecValAssgmtCategory = 'RMS_D'
  or SpecValAssgmtCategory = 'RMS_N'