I_SpecificationForKeyDate

DDL: I_SPECIFICATIONFORKEYDATE SQL: ISPECFORKDATE Type: view COMPOSITE

Specification on a Key Date

I_SpecificationForKeyDate is a Composite CDS View that provides data about "Specification on a Key Date" in SAP S/4HANA. It reads from 1 data source (I_Specification) and exposes 32 fields with key field SpecificationInternalID. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Specification spec from

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_SpecIdentifierForKeyDate _SpecIdentifierForKeyDate $projection.SpecificationInternalID = _SpecIdentifierForKeyDate.SpecificationInternalID
[0..*] I_SpecAssignedMatlForKeyDate _SpecAssignedMatlForKeyDate $projection.SpecificationInternalID = _SpecAssignedMatlForKeyDate.SpecificationInternalID
[0..*] I_SpecValAssgmtInstanceWthComp _SpecValAssgmtInstanceWthComp $projection.SpecificationInternalID = _SpecValAssgmtInstanceWthComp.SpecificationInternalID
[0..*] I_SpecAssignedStatus _SpecAssignedStatus $projection.SpecificationInternalID = _SpecAssignedStatus.SpecificationInternalID

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName ISPECFORKDATE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #MASTER view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Specification on a Key Date view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY SpecificationInternalID SpecificationInternalID
SpecificationChangeState SpecificationChangeState
Specification Specification
SpecificationValidityStartDate SpecificationValidityStartDate
SpecificationValidityEndDate SpecificationValidityEndDate
SpecificationChangeNumber SpecificationChangeNumber
SpecificationIsDeleted SpecificationIsDeleted
SpecificationCreationDate SpecificationCreationDate
SpecificationCreatedByUser SpecificationCreatedByUser
SpecificationLastChangeDate SpecificationLastChangeDate
SpecificationLastChangedByUser SpecificationLastChangedByUser
SpecificationType SpecificationType
SpecificationSubstanceNatr SpecificationSubstanceNatr
SpecificationAuthznGroup SpecificationAuthznGroup
SpecificationNote SpecificationNote
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_SpecificationAuthGroup _SpecificationAuthGroup
_SpecificationType _SpecificationType
_SubstanceNature _SubstanceNature
_AssignedHeaderStatus _AssignedHeaderStatus
_SpecIdentifierForKeyDate _SpecIdentifierForKeyDate
_ChangeMaster _ChangeMaster
_SpecAssignedMatlForKeyDate _SpecAssignedMatlForKeyDate
_SpecValAssgmtInstanceWthComp _SpecValAssgmtInstanceWthComp
_SpecAssignedMaterial _SpecAssignedMaterial
_DocumentInfoRecordObjectLink _DocumentInfoRecordObjectLink
_RecipeFormulaItem _RecipeFormulaItem
_SpecAssignedStatus _SpecAssignedStatus
_LogAccMObjectTypeActive _LogAccMObjectTypeActive
_LogAccMObjectUserAuthzn _LogAccMObjectUserAuthzn
_LogAccMObjSecureIDAssgmt _LogAccMObjSecureIDAssgmt
@AbapCatalog.preserveKey: true
@AbapCatalog.sqlViewName: 'ISPECFORKDATE'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK

@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.dataClass: #MASTER

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



@EndUserText.label: 'Specification on a Key Date'
define view I_SpecificationForKeyDate
  with parameters
    @Environment.systemField: #SYSTEM_DATE
    P_KeyDate : sydate
  as select from I_Specification as spec
  association [0..*] to I_SpecIdentifierForKeyDate     as _SpecIdentifierForKeyDate     on $projection.SpecificationInternalID = _SpecIdentifierForKeyDate.SpecificationInternalID
  association [0..*] to I_SpecAssignedMatlForKeyDate   as _SpecAssignedMatlForKeyDate   on $projection.SpecificationInternalID = _SpecAssignedMatlForKeyDate.SpecificationInternalID
  association [0..*] to I_SpecValAssgmtInstanceWthComp as _SpecValAssgmtInstanceWthComp on $projection.SpecificationInternalID = _SpecValAssgmtInstanceWthComp.SpecificationInternalID
  association [0..*] to I_SpecAssignedStatus           as _SpecAssignedStatus           on $projection.SpecificationInternalID = _SpecAssignedStatus.SpecificationInternalID
{
  key SpecificationInternalID,
      SpecificationChangeState,
      Specification,
      SpecificationValidityStartDate,
      SpecificationValidityEndDate,
      SpecificationChangeNumber,
      SpecificationIsDeleted,
      SpecificationCreationDate,
      SpecificationCreatedByUser,
      SpecificationLastChangeDate,
      SpecificationLastChangedByUser,
      SpecificationType,
      SpecificationSubstanceNatr,
      SpecificationAuthznGroup,
      SpecificationNote,

      /* Associations */
      _CreatedByUser,
      _LastChangedByUser,
      _SpecificationAuthGroup,
      _SpecificationType,
      _SubstanceNature,
      _AssignedHeaderStatus,
      _SpecIdentifierForKeyDate,
      _ChangeMaster,
      _SpecAssignedMatlForKeyDate,
      _SpecValAssgmtInstanceWthComp,
      _SpecAssignedMaterial,
      _DocumentInfoRecordObjectLink,
      _RecipeFormulaItem,
      _SpecAssignedStatus,

      _LogAccMObjectTypeActive,
      _LogAccMObjectUserAuthzn,
      _LogAccMObjSecureIDAssgmt
}
where
      SpecificationValidityStartDate <= $parameters.P_KeyDate
  and SpecificationValidityEndDate   >= $parameters.P_KeyDate
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SPECIFICATION"
],
"ASSOCIATED":
[
"I_CHANGEMASTER",
"I_DOCUMENTINFORECORDOBJECTLINK",
"I_LOGACCMOBJECTTYPEACTIVE",
"I_LOGACCMOBJECTUSERAUTHZN",
"I_LOGACCMOBJSECUREIDASSGMT",
"I_RECIPEFORMULAITEM",
"I_SPECASSIGNEDHEADERSTATUS",
"I_SPECASSIGNEDMATERIAL",
"I_SPECASSIGNEDMATLFORKEYDATE",
"I_SPECASSIGNEDSTATUS",
"I_SPECAUTHORIZATIONGROUP",
"I_SPECIDENTIFIERFORKEYDATE",
"I_SPECSUBSTANCENATURE",
"I_SPECTYPE",
"I_SPECVALASSGMTINSTANCEWTHCOMP",
"I_USER"
],
"BASE":
[
"I_SPECIFICATION"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/