P_GetBudgetSemanticTag

DDL: P_GETBUDGETSEMANTICTAG SQL: PGETBDGTTAG Type: view COMPOSITE

P_GetBudgetSemanticTag is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (R_ProjectSemTagGLAccount) and exposes 6 fields with key fields ProjectInternalID, SemanticTag.

Data Sources (1)

SourceAliasJoin Type
R_ProjectSemTagGLAccount _FSVItem from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PGETBDGTTAG view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #COMPOSITE view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY ProjectInternalID _ParTag ProjectInternalID
KEY SemanticTag R_ProjectSemTagGLAccount SemanticTag
NodeValue R_ProjectSemTagGLAccount HierarchyNode
SemanticTagIsBudgetRelevant _ParTag SemanticTagIsBudgetRelevant
FinancialStatementVariant R_ProjectSemTagGLAccount GLAccountHierarchy
ProjectIsBudgetRelevant _ParTag ProjectIsBudgetRelevant
@AbapCatalog.sqlViewName: 'PGETBDGTTAG'
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #COMPOSITE
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass:  #MIXED
//@EndUserText.label: 'Fetches Budget Semantic Tag'

define view P_GetBudgetSemanticTag 
//CE2308: Begin of change: Inclusion of Global Hierarchy

//as select from I_FSItemBySemanticTag  as _FSVItem  //P_SemTagFAGL2HRRP

  as select from R_ProjectSemTagGLAccount  as _FSVItem  //P_SemTagFAGL2HRRP

//CE2308: End of change: Inclusion of Global Hierarchy

association to P_GetParSemanticTagForProj as _ParTag on $projection.SemanticTag = _ParTag.ParentSemanticTag
{
    key _ParTag.ProjectInternalID,
    key _FSVItem.SemanticTag as SemanticTag, 
    _FSVItem.HierarchyNode as NodeValue, 
    _ParTag.SemanticTagIsBudgetRelevant,    
    //CE2308: Begin of change: Inclusion of Global Hierarchy 

//    _FSVItem.FinancialStatementVariant,

    _FSVItem.GLAccountHierarchy as FinancialStatementVariant,
    //CE2308: End of change: Inclusion of Global Hierarchy 

    _ParTag.ProjectIsBudgetRelevant
    
    
}
where _ParTag.SemanticTagIsBudgetRelevant = 'X'

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_GETPARSEMANTICTAGFORPROJ",
"R_PROJECTSEMTAGGLACCOUNT"
],
"ASSOCIATED":
[
"P_GETPARSEMANTICTAGFORPROJ"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/