P_FINS_GL_OPENITEM_AMOUNT

DDL: P_FINS_GL_OPENITEM_AMOUNT SQL: PFINSGLOIAMT Type: view BASIC

P_FINS_GL_OPENITEM_AMOUNT is a Basic CDS View in SAP S/4HANA. It reads from 7 data sources and exposes 16 fields with key fields CompanyCode, GLAccount, FiscalYear, AccountingDocumentNumber, ItemNumber.

Data Sources (7)

SourceAliasJoin Type
acdoca acdoca from
bkpf bkpf inner
P_FINS_REPRESENTIVE_LEDGER ledger inner
ska1 ska1 inner
skat skat inner
skb1 skb1 inner
t001 t001 inner

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PFINSGLOIAMT view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.compiler.compareFilter true view
VDM.private true view
VDM.viewType #BASIC view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode rbukrs Company Code
KEY GLAccount racct GL Account From
KEY FiscalYear acdoca gjahr Settlement Year
KEY AccountingDocumentNumber acdoca belnr SD Document
KEY ItemNumber awitem Ref. Doc. Line Item
PostingDate bkpf budat Posting Date
LedgerGroup bkpf ldgrp Target Ledger Group
GLAccountName skat txt50 Status Name
GLAccountType ska1 glaccount_type G/L Account Type
CompanyCodeCurrency t001 waers Transaction Currency
CompanyCodeName t001 butxt Posting Text
BalanceAmountInCompanyCodeCrcy acdoca hsl Local Crcy Amt
GLAccountAuthorizationGroup begru AuthorizGroup
AlternativeGLAccount altkt Group Account Number
AlternativeGLAccountName alttxt txt50 Status Name
ChartOfAccounts t001 ktopl G/L Chart of Accounts

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_FINS_GL_OPENITEM_AMOUNT.
-- 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: PFINSGLOIAMT

CREATE VIEW P_FINS_GL_OPENITEM_AMOUNT AS
SELECT
  rbukrs AS CompanyCode,
  racct AS GLAccount,
  acdoca.gjahr AS FiscalYear,
  acdoca.belnr AS AccountingDocumentNumber,
  awitem AS ItemNumber,
  bkpf.budat AS PostingDate,
  bkpf.ldgrp AS LedgerGroup,
  skat.txt50 AS GLAccountName,
  ska1.glaccount_type AS GLAccountType,
  t001.waers AS CompanyCodeCurrency,
  t001.butxt AS CompanyCodeName,
  acdoca.hsl AS BalanceAmountInCompanyCodeCrcy,
  begru AS GLAccountAuthorizationGroup,
  altkt AS AlternativeGLAccount,
  alttxt.txt50 AS AlternativeGLAccountName,
  t001.ktopl AS ChartOfAccounts
FROM acdoca
INNER JOIN bkpf ON /* join condition not captured in parsed metadata */
INNER JOIN P_FINS_REPRESENTIVE_LEDGER AS ledger ON /* join condition not captured in parsed metadata */
INNER JOIN t001 ON /* join condition not captured in parsed metadata */
INNER JOIN skb1 ON /* join condition not captured in parsed metadata */
INNER JOIN skat ON /* join condition not captured in parsed metadata */
INNER JOIN ska1 ON /* join condition not captured in parsed metadata */
;