P_CN_CADEGLAccountFSVItem2

DDL: P_CN_CADEGLACCOUNTFSVITEM2 SQL: PCADEGLACTFSVIT2 Type: view COMPOSITE

P_CN_CADEGLAccountFSVItem2 is a Composite CDS View in SAP S/4HANA. It reads from 7 data sources and exposes 18 fields with key fields CompanyCode, FinancialStatementVariant, ChartOfAccounts, FinancialStatementItem.

Data Sources (7)

SourceAliasJoin Type
I_CN_CADEFinancialStatementItm FinancialStatementItem from
I_FinancialStatementItemText FinancialStatementItemText left_outer
I_FinancialStatementVersion FinancialStatementVersion inner
P_CN_CADEFSVITMWPrefix2 FinStmntItemWPrefix inner
I_GLAccountInCompanyCode GLAccountInCompanyCode left_outer
P_CN_CADEGLAcctWDesc2 P_CN_CADEGLAcctWDesc2 left_outer
P_CN_CADEGLAcctWDesc2 P_CN_CADEGLAcctWDesc2 left_outer

Parameters (3)

NameTypeDefault
P_CompanyCode bukrs
P_FinancialStatementVariant versn_011
P_Language sylangu

Annotations (10)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PCADEGLACTFSVIT2 view
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode
KEY FinancialStatementVariant I_CN_CADEFinancialStatementItm FinancialStatementVariant Version
KEY ChartOfAccounts I_FinancialStatementVersion ChartOfAccounts Node Class
KEY FinancialStatementItem I_CN_CADEFinancialStatementItm FinancialStatementItem FS Item
GLAccount I_GLAccountInCompanyCode GLAccount General Ledger
GLAccountName GLAccount GLAccountName Short Text
GLAccountGroup GLAccount GLAccountGroup Account Group
GLAccountGroupName GLAccount GLAccountGroupName
AlternativeGLAccount I_GLAccountInCompanyCode AlternativeGLAccount Group Account
AlternativeGLAccountName GLAccountWDesc2 GLAccountName Short Text
AlternativeGLAccountGroup GLAccountWDesc2 GLAccountGroup Account Group
AlternativeGLAccountGroupName GLAccountWDesc2 GLAccountGroupName
FSVItemWithPrefix P_CN_CADEFSVITMWPrefix2 FSVItemWithPrefix
FinStatementItemDescription I_FinancialStatementItemText FinStatementItemDescription Text
FSVItemGLAccountType
CN_CADEAccountTypeIndicator
SignIsInverted I_CN_CADEFinancialStatementItm SignIsInverted Type of SIGN component in row type of a Ranges type
GLAccountHierarchy

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_CN_CADEGLAccountFSVItem2.
-- 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: PCADEGLACTFSVIT2
-- Parameters: P_CompanyCode : bukrs, P_FinancialStatementVariant : versn_011, P_Language : sylangu

CREATE VIEW P_CN_CADEGLAccountFSVItem2 AS
SELECT
  :P_CompanyCode AS CompanyCode,
  FinancialStatementItem.FinancialStatementVariant AS FinancialStatementVariant,
  FinancialStatementVersion.ChartOfAccounts AS ChartOfAccounts,
  FinancialStatementItem.FinancialStatementItem AS FinancialStatementItem,
  GLAccountInCompanyCode.GLAccount AS GLAccount,
  GLAccount.GLAccountName AS GLAccountName,
  GLAccount.GLAccountGroup AS GLAccountGroup,
  GLAccount.GLAccountGroupName AS GLAccountGroupName,
  GLAccountInCompanyCode.AlternativeGLAccount AS AlternativeGLAccount,
  GLAccountWDesc2.GLAccountName AS AlternativeGLAccountName,
  GLAccountWDesc2.GLAccountGroup AS AlternativeGLAccountGroup,
  GLAccountWDesc2.GLAccountGroupName AS AlternativeGLAccountGroupName,
  FinStmntItemWPrefix.FSVItemWithPrefix AS FSVItemWithPrefix,
  FinancialStatementItemText.FinStatementItemDescription AS FinStatementItemDescription,
  replace(left(FinStatementItemDescription,5),'#','') AS FSVItemGLAccountType,
  left(ltrim(FinStatementItemDescription,' '),1) AS CN_CADEAccountTypeIndicator,
  FinancialStatementItem.SignIsInverted AS SignIsInverted,
  cast(FinancialStatementItem.FinStatementHierarchyLevelVal as abap.int1) - cast(1 as abap.int1) AS GLAccountHierarchy
FROM I_CN_CADEFinancialStatementItm AS FinancialStatementItem
INNER JOIN I_FinancialStatementVersion AS FinancialStatementVersion ON /* join condition not captured in parsed metadata */
INNER JOIN P_CN_CADEFSVITMWPrefix2 AS FinStmntItemWPrefix ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FinancialStatementItemText AS FinancialStatementItemText ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_GLAccountInCompanyCode AS GLAccountInCompanyCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_CN_CADEGLAcctWDesc2 ON /* join condition not captured in parsed metadata */
;