P_GetAllChildSemanticTag
Fetches all the child semantic tag for Act Cost & Budget
P_GetAllChildSemanticTag is a Composite CDS View that provides data about "Fetches all the child semantic tag for Act Cost & Budget" in SAP S/4HANA. It reads from 2 data sources (I_SemanticTag, R_ProjectSemTagGLAccount) and exposes 6 fields with key fields ProjectInternalID, SemanticTag, FinancialStatementVariant. Part of development package ODATA_PS_COS_PROJBDGT_DET.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SemanticTag | _ChildTag | inner |
| R_ProjectSemTagGLAccount | _Semtag | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PGETALCHLDTAG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProjectInternalID | _ParTag | ProjectInternalID | |
| KEY | SemanticTag | R_ProjectSemTagGLAccount | SemanticTag | |
| KEY | FinancialStatementVariant | R_ProjectSemTagGLAccount | GLAccountHierarchy | |
| HierarchyNode | HierarchyNode | |||
| SemanticTagIsBudgetRelevant | ||||
| ProjectIsBudgetRelevant | _ParTag | ProjectIsBudgetRelevant |
@AbapCatalog.sqlViewName: 'PGETALCHLDTAG'
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #COMPOSITE
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass: #MIXED
@VDM.private: true
//@EndUserText.label: 'Fetches all the child semantic tag for Act Cost'
define view P_GetAllChildSemanticTag
//CE2308: Begin of change: Inclusion of Global Hierarchy
//as select from I_FSItemBySemanticTag as _Semtag //P_SemTagFAGL2HRRP
as select from R_ProjectSemTagGLAccount as _Semtag
//CE2308: End of change: Inclusion of Global Hierarchy
inner join I_SemanticTag as _ChildTag on _Semtag.SemanticTag = _ChildTag.SemanticTag
association to P_GetParSemanticTagForProj as _ParTag on _ChildTag.ParentSemanticTag = _ParTag.ParentSemanticTag
{
key _ParTag.ProjectInternalID,
key _Semtag.SemanticTag,
//CE2308: Begin of change: Inclusion of Global Hierarchy
//key _Semtag.FinancialStatementVariant,
key _Semtag.GLAccountHierarchy as FinancialStatementVariant,
//CE2308: End of change: Inclusion of Global Hierarchy
HierarchyNode,
'' as SemanticTagIsBudgetRelevant,
_ParTag.ProjectIsBudgetRelevant
}
where _Semtag.SemanticTag <> 'ACT_COST'
and _ChildTag.ParentSemanticTag = 'ACT_COST'
//and _Semtag.FinancialStatementVariant = 'INT'
and _ParTag.SemanticTagIsBudgetRelevant is initial
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