I_ProdSpecCmpstn

DDL: I_PRODSPECCMPSTN SQL: IPRODSPECCMP Type: view COMPOSITE Package: VDM_PLMB_SPC_COMP_CUST_OP

Product Specification Compositon

I_ProdSpecCmpstn is a Composite CDS View that provides data about "Product Specification Compositon" in SAP S/4HANA. It reads from 1 data source (I_ProdSpecCmpstnHeader) and exposes 21 fields with key fields ProdSpecComponentItem, ProdSpecCompItemChangeState. It has 3 associations to related views. Part of development package VDM_PLMB_SPC_COMP_CUST_OP.

Data Sources (1)

SourceAliasJoin Type
I_ProdSpecCmpstnHeader header inner

Associations (3)

CardinalityTargetAliasCondition
[1..*] I_ProductSpecification _ProductSpecification _ProductSpecification.ProductSpecificationInternalID = $projection.ProductSpecificationInternalID
[1..1] I_ProdSpecNonHistoric _ProdSpecNonHistoric _ProdSpecNonHistoric.ProductSpecificationInternalID = $projection.ProductSpecificationInternalID
[1..*] I_ProdSpecCmpstnHeader _ProdSpecCmpstnHeader _ProdSpecCmpstnHeader.ProdSpecCmpstnHeader = $projection.ProdSpecCmpstnHeader

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IPRODSPECCMP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Product Specification Compositon view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY ProdSpecComponentItem
KEY ProdSpecCompItemChangeState
ProdSpecCmpstnHeader I_ProdSpecCmpstnHeader ProdSpecCmpstnHeader
ProductSpecificationInternalID I_ProdSpecCmpstnHeader ProductSpecificationInternalID
ProdSpecCompItemValdtyStrtDte
ProdSpecCompItemValdtyEndDte
ProdSpecCompItemIsDeleted
ProdSpecCompItemChangeNumber
ProdSpecCompComponentType
ProdSpecComponentInternalID
ProdSpecCompLowrLmtQtyOperator
ProdSpecCompLowerLimitQuantity
ProdSpecCompUprLmtQtyOperator
ProdSpecCompUpperLimitQuantity
ProdSpecCompQuantity
ProdSpecComponentUnit
ProdSpecComponentExceptionCode
_ProdSpecCmpstnHeader _ProdSpecCmpstnHeader
_ProductSpecification _ProductSpecification
_ProdSpecNonHistoric _ProdSpecNonHistoric
_ProdSpecificationLastChange I_ProdSpecCmpstnHeader _ProdSpecificationLastChange
@AbapCatalog.sqlViewName: 'IPRODSPECCMP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true

@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED

@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.viewType: #COMPOSITE
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API

@AccessControl.authorizationCheck: #CHECK

@EndUserText.label: 'Product Specification Compositon'
define view I_ProdSpecCmpstn
  as select distinct from I_SpecValAssgmtItem    as item
    inner join            I_ProdSpecCmpstnHeader as header on  header.ProdSpecCmpstnHeader           =  item.SpecValAssgmt
                                                           and header.ProdSpecCmpstnHdrValdtyStrtDte <= item.SpecValAssgmtItemValdtyEndDte
                                                           and header.ProdSpecCmpstnHdrValdtyEndDte  >= item.SpecValAssgmtItemValdtyStrtDte

  association [1..*] to I_ProductSpecification as _ProductSpecification on _ProductSpecification.ProductSpecificationInternalID = $projection.ProductSpecificationInternalID
  association [1..1] to I_ProdSpecNonHistoric  as _ProdSpecNonHistoric  on _ProdSpecNonHistoric.ProductSpecificationInternalID = $projection.ProductSpecificationInternalID
  association [1..*] to I_ProdSpecCmpstnHeader as _ProdSpecCmpstnHeader on _ProdSpecCmpstnHeader.ProdSpecCmpstnHeader = $projection.ProdSpecCmpstnHeader

{

  key         cast(item.SpecValAssgmtItem as /plmb/spc_comp_int_id preserving type )                       as ProdSpecComponentItem,
  key         cast(item.SpecValAssgmtItemChangeState as /plmb/spc_comp_chg_state preserving type )         as ProdSpecCompItemChangeState,

              header.ProdSpecCmpstnHeader,
              header.ProductSpecificationInternalID,

              cast(item.SpecValAssgmtItemValdtyStrtDte as /plmb/spc_comp_val_strt_dat preserving type )    as ProdSpecCompItemValdtyStrtDte, //necessary for join

              cast(item.SpecValAssgmtItemValdtyEndDte as /plmb/spc_comp_val_end_dat preserving type )      as ProdSpecCompItemValdtyEndDte,
              cast(item.SpecValAssgmtItemIsDeleted as /plmb/spc_comp_item_deleted preserving type )        as ProdSpecCompItemIsDeleted,
              cast(item.SpecValAssgmtItemChangeNumber as /plmb/spc_comp_item_chg_number  preserving type ) as ProdSpecCompItemChangeNumber,

              cast(item.CompSpecComponentType as /plmb/spc_comp_comp_type preserving type )                as ProdSpecCompComponentType,
              cast(item.ComponentSpecificationIntID as /plmb/spc_component_int_id preserving type )        as ProdSpecComponentInternalID,
              cast(item.CompSpecLowerLimitOperator as /plmb/spc_comp_precl preserving type)                as ProdSpecCompLowrLmtQtyOperator,
              cast(item.CompSpecLowerLimit as /plmb/spc_comp_compllow preserving type)                     as ProdSpecCompLowerLimitQuantity,
              cast(item.CompSpecUpperLimitOperator as /plmb/spc_comp_precu preserving type)                as ProdSpecCompUprLmtQtyOperator,
              cast(item.CompSpecUpperLimit as /plmb/spc_comp_complupp preserving type)                     as ProdSpecCompUpperLimitQuantity,
              cast(item.CompSpecQuantity as /plmb/spc_comp_quantity preserving type)                       as ProdSpecCompQuantity,
              cast(item.CompSpecUnit as /plmb/spc_comp_uom preserving type)                                as ProdSpecComponentUnit,
              cast(CompSpecExceptionCode  as /plmb/spc_comp_exception_code preserving type )               as ProdSpecComponentExceptionCode,

              //Associations

              _ProdSpecCmpstnHeader,
              _ProductSpecification,
              _ProdSpecNonHistoric,
              header._ProdSpecificationLastChange
}