P_SemTagGLAccountRange

DDL: P_SEMTAGGLACCOUNTRANGE SQL: PFISEMTAGGLACRG Type: view BASIC Package: FINS_FI_SEM_TAG

G/L Accounts for Semantic Tag

P_SemTagGLAccountRange is a Basic CDS View that provides data about "G/L Accounts for Semantic Tag" in SAP S/4HANA. It reads from 1 data source (hrrp_semtag_n) and exposes 13 fields. It has 6 associations to related views. Part of development package FINS_FI_SEM_TAG.

Data Sources (1)

SourceAliasJoin Type
hrrp_semtag_n hrrp_semtag_n from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_GLAccountHierarchy _Directory $projection.GLAccountHierarchy = _Directory.GLAccountHierarchy and $projection.ValidityEndDate = _Directory.ValidityEndDate
[0..*] I_GLAccountHierarchy _Hierarchy $projection.GLAccountHierarchy = _Hierarchy.GLAccountHierarchy
[0..*] I_GLAccountHierarchyNode _GLAccountHierarchyNode $projection.GLAccountHierarchy = _GLAccountHierarchyNode.GLAccountHierarchy and $projection.HierarchyNode = _GLAccountHierarchyNode.HierarchyNode
[0..1] I_SemanticTag _SemanticTag $projection.SemanticTag = _SemanticTag.SemanticTag
[0..1] I_ChartOfAccounts _ChartOfAccounts $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts
[0..1] I_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts $projection.ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts and $projection.GLAccount = _GLAccountInChartOfAccounts.GLAccount

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PFISEMTAGGLACRG view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (13)

KeyFieldSource TableSource FieldDescription
GLAccountHierarchy
HierarchyNode hrrp_semtag_n hrynode Node
SemanticTag hrrp_semtag_n fins_sem_tag Semantic Tag
ValidityEndDate hrrp_semtag_n hryvalto Valid To
ValidityStartDate hrrp_semtag_n hryvalfrom Valid From
ChartOfAccounts
GLAccount
FunctionalAreaIsUsed _Directory FunctionalAreaIsUsed
_Hierarchy _Hierarchy
_GLAccountHierarchyNode _GLAccountHierarchyNode
_SemanticTag _SemanticTag
_ChartOfAccounts _ChartOfAccounts
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_SemTagGLAccountRange.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PFISEMTAGGLACRG

CREATE VIEW P_SemTagGLAccountRange AS
SELECT
  cast (hrrp_semtag_n.hryid_42 as fins_sem_tag_hryid preserving type ) AS GLAccountHierarchy,
  hrrp_semtag_n.hrynode AS HierarchyNode,
  hrrp_semtag_n.fins_sem_tag AS SemanticTag,
  hrrp_semtag_n.hryvalto AS ValidityEndDate,
  hrrp_semtag_n.hryvalfrom AS ValidityStartDate,
  cast(hrrp_semtag_n.ktopl as fis_ktopl preserving type ) AS ChartOfAccounts,
  cast(hrrp_semtag_n.saknr as fis_racct preserving type ) AS GLAccount,
  _Directory.FunctionalAreaIsUsed AS FunctionalAreaIsUsed
FROM hrrp_semtag_n
LEFT OUTER JOIN I_GLAccountHierarchy AS _Directory ON GLAccountHierarchy = _Directory.GLAccountHierarchy AND ValidityEndDate = _Directory.ValidityEndDate  -- association [0..1]
LEFT OUTER JOIN I_GLAccountHierarchy AS _Hierarchy ON GLAccountHierarchy = _Hierarchy.GLAccountHierarchy  -- association [0..*]
LEFT OUTER JOIN I_GLAccountHierarchyNode AS _GLAccountHierarchyNode ON GLAccountHierarchy = _GLAccountHierarchyNode.GLAccountHierarchy AND HierarchyNode = _GLAccountHierarchyNode.HierarchyNode  -- association [0..*]
LEFT OUTER JOIN I_SemanticTag AS _SemanticTag ON SemanticTag = _SemanticTag.SemanticTag  -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts ON ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts AND GLAccount = _GLAccountInChartOfAccounts.GLAccount  -- association [0..1]
;