P_GetParSemanticTagForProj
P_GetParSemanticTagForProj is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_AvailyCtrlProfileSemanticTag, I_ProjectBasicData) and exposes 2 fields with key field ProjectInternalID. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_AvailyCtrlProfileSemanticTag | _ParentTag | left_outer |
| I_ProjectBasicData | _ProjBasicData | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PPM_ProjectSummaryTask | _ProjectSummary | _ProjectSummary.ProjectInternalID = _ProjBasicData.ProjectInternalID |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PGTSEMTAFRPAR | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view |
Fields (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProjectInternalID | ProjectInternalID | ||
| AvailabilityControlProfile | I_ProjectBasicData | AvailabilityControlProfile |
@AbapCatalog.sqlViewName: 'PGTSEMTAFRPAR'
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #M
define view P_GetParSemanticTagForProj
as select from I_ProjectBasicData as _ProjBasicData
left outer join I_AvailyCtrlProfileSemanticTag as _ParentTag on _ParentTag.AvailabilityControlProfile = _ProjBasicData.AvailabilityControlProfile
association [0..1] to I_PPM_ProjectSummaryTask as _ProjectSummary on _ProjectSummary.ProjectInternalID = _ProjBasicData.ProjectInternalID
{
key ProjectInternalID,
_ProjBasicData.AvailabilityControlProfile,
case when _ProjBasicData.AvailabilityControlProfile is not initial
then _ParentTag.SemanticTag
else 'ACT_COST'
end as ParentSemanticTag,
case when _ProjBasicData.AvailabilityControlProfile is not initial and _ParentTag.SemanticTag <> 'ACT_COST'
then 'X'
else ''
end as SemanticTagIsBudgetRelevant,
case when _ProjBasicData.AvailabilityControlProfile is not initial and _ParentTag.SemanticTag <> 'ACT_COST'
then 'X'
else ''
end as ProjectIsBudgetRelevant
}
where _ProjBasicData.ProjectProfileCode <> 'YP01'
and _ProjectSummary.ProjectCategory = '6'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_AVAILYCTRLPROFILESEMANTICTAG",
"I_PPM_PROJECTSUMMARYTASK",
"I_PROJECTBASICDATA"
],
"ASSOCIATED":
[
"I_PPM_PROJECTSUMMARYTASK"
],
"BASE":
[],
"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