I_SpecValAssgmtWithHeader
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.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_SpecValAssgmtInstanceNormal | P_SpecValAssgmtInstanceNormal | from |
| I_SpecValAssgmtUsage | usg | left_outer |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydate |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SPECVALASSGMTUSAGE",
"P_SPECVALASSGMTINSTANCENORMAL"
],
"ASSOCIATED":
[
"I_SPECIFICATIONFORKEYDATE",
"I_SPECRATING",
"I_SPECVALASSGMTTYPE",
"I_SPECVALIDITYAREA"
],
"BASE":
[
"P_SPECVALASSGMTINSTANCENORMAL"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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