P_SpecSingleIdentifier
Specification on a Key Date
P_SpecSingleIdentifier is a Composite CDS View that provides data about "Specification on a Key Date" in SAP S/4HANA. It reads from 2 data sources (I_SpecIdentifierForKeyDate, I_SpecIdnListingDefinition) and exposes 6 fields with key field SpecificationInternalID. Part of development package VDM_PLMB_SPC_BAS.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SpecIdentifierForKeyDate | I_SpecIdentifierForKeyDate | from |
| I_SpecIdnListingDefinition | listingCust | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydate |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA