I_ProdSpecStdCmpstn

DDL: I_PRODSPECSTDCMPSTN SQL: IPRODSPCOMPS Type: view COMPOSITE

Product Specification Std. Composition

I_ProdSpecStdCmpstn is a Composite CDS View that provides data about "Product Specification Std. Composition" in SAP S/4HANA. It reads from 1 data source (I_ProdSpecStdCmpstnHeader) and exposes 20 fields with key fields ProdSpecComponentItem, ProdSpecCompItemChangeState. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProdSpecStdCmpstnHeader header inner

Associations (3)

CardinalityTargetAliasCondition
[1..*] I_ProductSpecification _ProductSpecification _ProductSpecification.ProductSpecificationInternalID = $projection.ProductSpecificationInternalID
[1..1] I_ProdSpecNonHistoric _ProdSpecNonHistoric _ProdSpecNonHistoric.ProductSpecificationInternalID = $projection.ProductSpecificationInternalID
[1..*] I_ProdSpecStdCmpstnHeader _ProdSpecStdCmpstnHeader _ProdSpecStdCmpstnHeader.ProdSpecCmpstnHeader = $projection.ProdSpecCmpstnHeader

Annotations (11)

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

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY ProdSpecComponentItem
KEY ProdSpecCompItemChangeState
ProdSpecCmpstnHeader I_ProdSpecStdCmpstnHeader ProdSpecCmpstnHeader
ProductSpecificationInternalID I_ProdSpecStdCmpstnHeader ProductSpecificationInternalID
ProdSpecCompItemValdtyStrtDte
ProdSpecCompItemValdtyEndDte
ProdSpecCompItemIsDeleted
ProdSpecCompItemChangeNumber
PureSubstanceComponentType
PureSubstanceInternalID
PureSubstLowrLmtQtyOperator
PureSubstLowerLimitQuantity
PureSubstUprLmtQtyOperator
PureSubstUpperLimitQuantity
PureSubstanceQuantity
PureSubstanceUnit
_ProdSpecStdCmpstnHeader _ProdSpecStdCmpstnHeader
_ProductSpecification _ProductSpecification
_ProdSpecNonHistoric _ProdSpecNonHistoric
_ProdSpecificationLastChange I_ProdSpecStdCmpstnHeader _ProdSpecificationLastChange
@AbapCatalog.sqlViewName: 'IPRODSPCOMPS'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true

@AccessControl.authorizationCheck: #CHECK

@ClientHandling.algorithm: #SESSION_VARIABLE

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

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

@EndUserText.label: 'Product Specification Std. Composition'
define view I_ProdSpecStdCmpstn
  as select distinct from I_SpecValAssgmtItem       as item
    inner join            I_ProdSpecStdCmpstnHeader 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_ProdSpecStdCmpstnHeader as _ProdSpecStdCmpstnHeader on _ProdSpecStdCmpstnHeader.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_pure_comp_type preserving type )                as PureSubstanceComponentType,
      cast(item.ComponentSpecificationIntID as /plmb/spc_pure_int_id preserving type )             as PureSubstanceInternalID,
      cast(item.CompSpecLowerLimitOperator as /plmb/spc_quant_precl preserving type)               as PureSubstLowrLmtQtyOperator,
      cast(item.CompSpecLowerLimit as /plmb/spc_quant_compllow preserving type)                    as PureSubstLowerLimitQuantity,
      cast(item.CompSpecUpperLimitOperator as /plmb/spc_quant_precu preserving type)               as PureSubstUprLmtQtyOperator,
      cast(item.CompSpecUpperLimit as /plmb/spc_quant_complupp preserving type)                    as PureSubstUpperLimitQuantity,
      cast(item.CompSpecQuantity as /plmb/spc_pure_quantity preserving type)                       as PureSubstanceQuantity,
      cast(item.CompSpecUnit as /plmb/spc_pure_uom preserving type)                                as PureSubstanceUnit,

      //Association

      _ProdSpecStdCmpstnHeader,
      _ProductSpecification,
      _ProdSpecNonHistoric,
      header._ProdSpecificationLastChange
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRODSPECSTDCMPSTNHEADER",
"I_SPECVALASSGMTITEM"
],
"ASSOCIATED":
[
"I_PRODSPECIFICATIONLASTCHANGE",
"I_PRODSPECNONHISTORIC",
"I_PRODSPECSTDCMPSTNHEADER",
"I_PRODUCTSPECIFICATION"
],
"BASE":
[
"I_PRODSPECSTDCMPSTNHEADER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/