P_SpecSingleIdentifier

DDL: P_SPECSINGLEIDENTIFIER SQL: PSPECSINGLEID Type: view COMPOSITE

P_SpecSingleIdentifier is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_SpecIdentifierForKeyDate, I_SpecIdnListingDefinition) and exposes 6 fields with key field SpecificationInternalID.

Data Sources (2)

SourceAliasJoin Type
I_SpecIdentifierForKeyDate I_SpecIdentifierForKeyDate from
I_SpecIdnListingDefinition listingCust inner

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PSPECSINGLEID view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.lifecycle.contract.type #NONE view
VDM.viewType #COMPOSITE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY SpecificationInternalID idn SpecificationInternalID
SpecificationIdnListingPos I_SpecIdnListingDefinition SpecificationIdnListingPos
SpecIdfgDescCategory idn SpecIdfgDescCategory
SpecIdfgDescType idn SpecIdfgDescType
SpecIdfgDescLanguage idn SpecIdfgDescLanguage
FirstIdentifier
@AbapCatalog.sqlViewName: 'PSPECSINGLEID'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED

@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.private: true
@VDM.lifecycle.contract.type: #NONE
@VDM.viewType: #COMPOSITE

define view P_SpecSingleIdentifier
  with parameters
    @Environment.systemField: #SYSTEM_DATE
    P_KeyDate : sydate
  as select from I_SpecIdentifierForKeyDate( P_KeyDate: $parameters.P_KeyDate ) as idn
    inner join   I_SpecIdnListingDefinition                                     as listingCust on  listingCust.SpecificationIdnListing     = 'D_DEFAULT'
                                                                                               and listingCust.SpecificationIdnListingPrio = '0001'
                                                                                               and listingCust.SpecIdfgDescCategory        = idn.SpecIdfgDescCategory
                                                                                               and listingCust.SpecIdfgDescType            = idn.SpecIdfgDescType
{
  key idn.SpecificationInternalID,
      listingCust.SpecificationIdnListingPos,
      idn.SpecIdfgDescCategory,
      idn.SpecIdfgDescType,
      idn.SpecIdfgDescLanguage,
      min(idn.SpecIdfgDescInternalID)  as FirstIdentifier
}
where
  SpecIdfgDescIsDeleted != 'X'
group by
  SpecificationInternalID,
  listingCust.SpecificationIdnListingPos,
  idn.SpecIdfgDescCategory,
  idn.SpecIdfgDescType,
  idn.SpecIdfgDescLanguage
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SPECIDENTIFIERFORKEYDATE",
"I_SPECIDNLISTINGDEFINITION"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/