P_BG_SAFTBalanceBase

DDL: P_BG_SAFTBALANCEBASE Type: view_entity CONSUMPTION Package: GLO_FIN_IS_SAFT_BG

BG SAFT acdoca for balances

P_BG_SAFTBalanceBase is a Consumption CDS View that provides data about "BG SAFT acdoca for balances" in SAP S/4HANA. It reads from 1 data source (I_GLAccountYearToDateBalanceC) and exposes 20 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. Part of development package GLO_FIN_IS_SAFT_BG.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountYearToDateBalanceC I_GLAccountYearToDateBalanceC from

Parameters (1)

NameTypeDefault
P_AlternativeGLAccountIsUsed saft_bg_alt_gl_account_flag

Annotations (7)

NameValueLevelField
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger SourceLedger Source Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
KEY Ledger Ledger Ledger
AccountingDocumentCategory AccountingDocumentCategory Journal Entry Category
AccountingDocumentItem AccountingDocumentItem Posting View Item
FinancialAccountType FinancialAccountType Fin. Account Type
Customer Customer Sold-to Party
Supplier Supplier Supplier
DebitCreditCode DebitCreditCode Single-Character Flag
ChartOfAccounts ChartOfAccounts Node Class
GLAccount GLAccount General Ledger
GLAccountType GLAccountType G/L Account Type
CountryChartOfAccounts _CompanyCode CountryChartOfAccounts Chart of Accts
AlternativeGLAccount _GLAccountInCompanyCode AlternativeGLAccount Group Account
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
ReportingCurrency

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_BG_SAFTBalanceBase.
-- 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.
-- Parameters: P_AlternativeGLAccountIsUsed : saft_bg_alt_gl_account_flag

CREATE VIEW P_BG_SAFTBalanceBase AS
SELECT
  SourceLedger,
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  Ledger,
  AccountingDocumentCategory,
  AccountingDocumentItem,
  FinancialAccountType,
  Customer,
  Supplier,
  DebitCreditCode,
  ChartOfAccounts,
  GLAccount,
  GLAccountType,
  _CompanyCode.CountryChartOfAccounts AS CountryChartOfAccounts,
  _GLAccountInCompanyCode.AlternativeGLAccount AS AlternativeGLAccount,
  PostingDate,
  DocumentDate,
  cast ('EUR' as fis_hwaer ) AS ReportingCurrency
FROM I_GLAccountYearToDateBalanceC
;