I_ProdSpecComponent

DDL: I_PRODSPECCOMPONENT SQL: IPRODSPECOMP Type: view COMPOSITE Package: VDM_PLMB_SPC_COMP_CUST_OP

Product Spec Composition Components

I_ProdSpecComponent is a Composite CDS View that provides data about "Product Spec Composition Components" in SAP S/4HANA. It reads from 1 data source (I_Specification) and exposes 12 fields with key field ProdSpecComponentInternalID. It has 4 associations to related views. Part of development package VDM_PLMB_SPC_COMP_CUST_OP.

Data Sources (1)

SourceAliasJoin Type
I_Specification spec inner

Associations (4)

CardinalityTargetAliasCondition
[1..*] I_Specification _Specification $projection.ProdSpecComponentInternalID = _Specification.SpecificationInternalID
[0..*] I_ProdSpecComponentDescription _ProdSpecComponentDescription $projection.ProdSpecComponentInternalID = _ProdSpecComponentDescription.ProdSpecComponentInternalID
[0..1] I_ProdSpecComponentBaseUoM _ProdSpecComponentBaseUoM $projection.ProdSpecComponentInternalID = _ProdSpecComponentBaseUoM.ProdSpecComponentInternalID
[0..1] I_SpecificationLastChange _SpecificationLastChange $projection.ProdSpecComponentInternalID = _SpecificationLastChange.SpecificationInternalID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IPRODSPECOMP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.sizeCategory #S view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Product Spec Composition Components view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY ProdSpecComponentInternalID
ProdSpecComponent
SpecificationType I_Specification SpecificationType
SpecificationIsDeleted
SpecificationLastChangeDate
_Specification _Specification
_ProdSpecComponentDescription _ProdSpecComponentDescription
_ProdSpecComponentBaseUoM _ProdSpecComponentBaseUoM
_SpecificationLastChange _SpecificationLastChange
_LogAccMObjectTypeActive I_Specification _LogAccMObjectTypeActive
_LogAccMObjSecureIDAssgmt I_Specification _LogAccMObjSecureIDAssgmt
_LogAccMObjectUserAuthzn I_Specification _LogAccMObjectUserAuthzn
@AbapCatalog.sqlViewName: 'IPRODSPECOMP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@Metadata.ignorePropagatedAnnotations: true

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

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

@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@VDM.viewType: #COMPOSITE
@EndUserText.label: 'Product Spec Composition Components'

define view I_ProdSpecComponent
  as select distinct from  I_ProdSpecCmpstnTypeSpecType as compositionSpecType
    inner join             I_Specification              as spec        on compositionSpecType.SpecificationType = spec.SpecificationType
    left outer to one join I_SpecificationLastChange    as lastchanged on spec.SpecificationInternalID = lastchanged.SpecificationInternalID

  association [1..*] to I_Specification                as _Specification                on $projection.ProdSpecComponentInternalID = _Specification.SpecificationInternalID
  association [0..*] to I_ProdSpecComponentDescription as _ProdSpecComponentDescription on $projection.ProdSpecComponentInternalID = _ProdSpecComponentDescription.ProdSpecComponentInternalID
  association [0..1] to I_ProdSpecComponentBaseUoM     as _ProdSpecComponentBaseUoM     on $projection.ProdSpecComponentInternalID = _ProdSpecComponentBaseUoM.ProdSpecComponentInternalID
  association [0..1] to I_SpecificationLastChange      as _SpecificationLastChange      on $projection.ProdSpecComponentInternalID = _SpecificationLastChange.SpecificationInternalID

{
  key cast(spec.SpecificationInternalID as /plmb/spc_component_int_id preserving type ) as ProdSpecComponentInternalID,
      cast(spec.Specification as /plmb/spc_component_id preserving type )               as ProdSpecComponent,
      spec.SpecificationType,

      cast(max(spec.SpecificationIsDeleted)  as esedelflg )                             as SpecificationIsDeleted,
      cast(lastchanged.SpecificationLastChangeDate as /plmb/spc_changed_on )            as SpecificationLastChangeDate,

      _Specification,
      _ProdSpecComponentDescription,
      _ProdSpecComponentBaseUoM,
      _SpecificationLastChange,
      spec._LogAccMObjectTypeActive,
      spec._LogAccMObjSecureIDAssgmt,
      spec._LogAccMObjectUserAuthzn
}
group by
  spec.SpecificationInternalID,
  spec.Specification,
  spec.SpecificationType,
  lastchanged.SpecificationLastChangeDate