P_GLAccountTypeVH

DDL: P_GLACCOUNTTYPEVH SQL: PGLACCTPVH Type: view CONSUMPTION

P_GLAccountTypeVH is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (I_CompanyCode, I_GLAccountInCompanyCode, I_GLAcctWithGrpChartOfAccounts) and exposes 8 fields with key fields CompanyCode, GLAccount, GLAccountExternal, ChartOfAccounts. It has 1 association to related views.

Data Sources (3)

SourceAliasJoin Type
I_CompanyCode I_CompanyCode inner
I_GLAccountInCompanyCode I_GLAccountInCompanyCode from
I_GLAcctWithGrpChartOfAccounts I_GLAcctWithGrpChartOfAccounts inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_GLAccountTextRawData _GLAcctTextTP $projection.ChartOfAccounts = _GLAcctTextTP.ChartOfAccounts and $projection.GLAccount = _GLAcctTextTP.GLAccount and _GLAcctTextTP.Language = $session.system_language

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PGLACCTPVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #CONSUMPTION view
VDM.private true view
Search.searchable true view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_CompanyCode CompanyCode Receiver Company Code
KEY GLAccount I_GLAccountInCompanyCode GLAccount General Ledger
KEY GLAccountExternal I_GLAcctWithGrpChartOfAccounts GLAccountExternal G/L Acct External ID
KEY ChartOfAccounts I_GLAcctWithGrpChartOfAccounts ChartOfAccounts Node Class
AlternativeGLAccount I_GLAccountInCompanyCode AlternativeGLAccount Group Account
GLAccountType I_GLAcctWithGrpChartOfAccounts GLAccountType G/L Account Type
GLAccountName _GLAcctTextTP GLAccountName Short Text
GLAccountLongName _GLAcctTextTP GLAccountLongName Long Text

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_GLAccountTypeVH.
-- 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: PGLACCTPVH

CREATE VIEW P_GLAccountTypeVH AS
SELECT
  I_CompanyCode.CompanyCode AS CompanyCode,
  I_GLAccountInCompanyCode.GLAccount AS GLAccount,
  I_GLAcctWithGrpChartOfAccounts.GLAccountExternal AS GLAccountExternal,
  I_GLAcctWithGrpChartOfAccounts.ChartOfAccounts AS ChartOfAccounts,
  I_GLAccountInCompanyCode.AlternativeGLAccount AS AlternativeGLAccount,
  I_GLAcctWithGrpChartOfAccounts.GLAccountType AS GLAccountType,
  _GLAcctTextTP.GLAccountName AS GLAccountName,
  _GLAcctTextTP.GLAccountLongName AS GLAccountLongName
FROM I_GLAccountInCompanyCode
INNER JOIN I_CompanyCode ON /* join condition not captured in parsed metadata */
INNER JOIN I_GLAcctWithGrpChartOfAccounts ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_GLAccountTextRawData AS _GLAcctTextTP ON ChartOfAccounts = _GLAcctTextTP.ChartOfAccounts AND GLAccount = _GLAcctTextTP.GLAccount AND _GLAcctTextTP.Language = $session.system_language  -- association [0..1]
;