I_SpecValAssgmtWithHeader

DDL: I_SPECVALASSGMTWITHHEADER SQL: ISPECVAWHDR Type: view COMPOSITE Package: VDM_PLMB_SPC_VA

Specification Value Assignment Instance with Header

I_SpecValAssgmtWithHeader is a Composite CDS View that provides data about "Specification Value Assignment Instance with Header" in SAP S/4HANA. It reads from 2 data sources (P_SpecValAssgmtInstanceNormal, I_SpecValAssgmtUsage) and exposes 31 fields with key fields SpecValAssgmtHdr, SpecValAssgmt, SpecValAssgmtUsageInternalID. It has 3 associations to related views. Part of development package VDM_PLMB_SPC_VA.

Data Sources (2)

SourceAliasJoin Type
P_SpecValAssgmtInstanceNormal P_SpecValAssgmtInstanceNormal from
I_SpecValAssgmtUsage usg left_outer

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_SpecRating _Rating $projection.SpecificationRating = _Rating.SpecificationRating
[0..1] I_SpecValidityArea _ValidityArea $projection.SpecificationValidityArea = _ValidityArea.SpecificationValidityArea
[0..1] I_SpecificationForKeyDate _SpecificationForKeyDate $projection.SpecificationInternalID = _SpecificationForKeyDate.SpecificationInternalID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ISPECVAWHDR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Specification Value Assignment Instance with Header view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY SpecValAssgmtHdr SpecValAssgmtHdr
KEY SpecValAssgmt SpecValAssgmt
KEY SpecValAssgmtUsageInternalID I_SpecValAssgmtUsage SpecValAssgmtUsageInternalID
SpecificationInternalID header SpecificationInternalID
SpecValAssgmtType SpecValAssgmtType
SpecValAssgmtHdrIsDeleted SpecValAssgmtHdrIsDeleted
SpecValAssgmtChangeState SpecValAssgmtChangeState
SpecValAssgmtValidityStartDate SpecValAssgmtValidityStartDate
SpecValAssgmtValidityEndDate SpecValAssgmtValidityEndDate
SpecValAssgmtChangeNumber SpecValAssgmtChangeNumber
SpecValAssgmtCreationDate SpecValAssgmtCreationDate
SpecValAssgmtCreatedByUser SpecValAssgmtCreatedByUser
SpecValAssgmtLastChangeDate SpecValAssgmtLastChangeDate
SpecValAssgmtLastChangedByUser SpecValAssgmtLastChangedByUser
SpecValAssgmtSortSequence SpecValAssgmtSortSequence
SpecValAssgmtUnitRefDimension SpecValAssgmtUnitRefDimension
SpecValAssgmtIsInhtncSource SpecValAssgmtIsInhtncSource
InhtdSpecValAssgmtIsTmpChgd InhtdSpecValAssgmtIsTmpChgd
InhtdSpecValAssgmtIsPermChgd InhtdSpecValAssgmtIsPermChgd
SpecInheritanceTemplate SpecInheritanceTemplate
SpecValAssgmtInheritanceParent SpecValAssgmtInheritanceParent
SpecValAssgmtInheritanceRoot SpecValAssgmtInheritanceRoot
SpecValAssgmtRootSpecIntID SpecValAssgmtRootSpecIntID
SpecValAssgmtIsDeleted SpecValAssgmtIsDeleted
SpecificationRating I_SpecValAssgmtUsage SpecificationRating
SpecificationValidityArea I_SpecValAssgmtUsage SpecificationValidityArea
SpecValAssgmtUsageIsExcluded I_SpecValAssgmtUsage SpecValAssgmtUsageIsExcluded
SpecValAssgmtUsageIsActive I_SpecValAssgmtUsage SpecValAssgmtUsageIsActive
SpecValAssgmtUsageIsRelevant I_SpecValAssgmtUsage SpecValAssgmtUsageIsRelevant
_ValueAssignmentType _ValueAssignmentType
_SpecificationForKeyDate _SpecificationForKeyDate
@AbapCatalog.sqlViewName: 'ISPECVAWHDR'
@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #CHECK

@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.dataClass: #TRANSACTIONAL

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

@EndUserText.label: 'Specification Value Assignment Instance with Header'
define view I_SpecValAssgmtWithHeader
  with parameters
    @Environment.systemField: #SYSTEM_DATE
    P_KeyDate : sydate
  as select from    P_SpecValAssgmtInstanceNormal( P_KeyDate : $parameters.P_KeyDate ) as header
    left outer join I_SpecValAssgmtUsage                                               as usg on  header.SpecValAssgmtRootSpecIntID   = usg.SpecificationInternalID
                                                                                              and header.SpecValAssgmtInheritanceRoot = usg.MasterTableElementInternalID
                                                                                              and usg.SpecValAssgmtUsgeValdtyStrtDte  <= $parameters.P_KeyDate
                                                                                              and usg.SpecValAssgmtUsgeValdtyEndDte   >= $parameters.P_KeyDate
                                                                                              and usg.SpecValAssgmtUsageIsDeleted != 'X'

  association [0..1] to I_SpecRating              as _Rating                  on $projection.SpecificationRating = _Rating.SpecificationRating
  association [0..1] to I_SpecValidityArea        as _ValidityArea            on $projection.SpecificationValidityArea = _ValidityArea.SpecificationValidityArea
  association [0..1] to I_SpecificationForKeyDate as _SpecificationForKeyDate on $projection.SpecificationInternalID = _SpecificationForKeyDate.SpecificationInternalID
{
      //header

  key SpecValAssgmtHdr,
  key SpecValAssgmt,
  key usg.SpecValAssgmtUsageInternalID,
      header.SpecificationInternalID,
      SpecValAssgmtType,
      SpecValAssgmtHdrIsDeleted,
      SpecValAssgmtChangeState,
      SpecValAssgmtValidityStartDate,
      SpecValAssgmtValidityEndDate,
      SpecValAssgmtChangeNumber,
      SpecValAssgmtCreationDate,
      SpecValAssgmtCreatedByUser,
      SpecValAssgmtLastChangeDate,
      SpecValAssgmtLastChangedByUser,
      SpecValAssgmtSortSequence,
      SpecValAssgmtUnitRefDimension,
      SpecValAssgmtIsInhtncSource,
      InhtdSpecValAssgmtIsTmpChgd,
      InhtdSpecValAssgmtIsPermChgd,
      SpecInheritanceTemplate,
      SpecValAssgmtInheritanceParent,
      SpecValAssgmtInheritanceRoot,
      SpecValAssgmtRootSpecIntID,
      SpecValAssgmtIsDeleted,

      usg.SpecificationRating,
      usg.SpecificationValidityArea,
      usg.SpecValAssgmtUsageIsExcluded,
      usg.SpecValAssgmtUsageIsActive,
      usg.SpecValAssgmtUsageIsRelevant,

      /* Associations */
      //header

      _ValueAssignmentType,
      _SpecificationForKeyDate
}