C_GLAccountBalance_F0707A

DDL: C_GLACCOUNTBALANCE_F0707A Type: view_entity CONSUMPTION Package: FINS_FIS_FICO_APPS

GL Balances

C_GLAccountBalance_F0707A is a Consumption CDS View that provides data about "GL Balances" in SAP S/4HANA. It reads from 1 data source (P_GLAccountBalance_F0707A) and exposes 128 fields with key fields SourceLedger, Ledger, CompanyCode, FiscalYear, AccountingDocument. It has 13 associations to related views. It is exposed through 1 OData service (UI_GLACCOUNT_DISPLAYBALANCES). Part of development package FINS_FIS_FICO_APPS.

Data Sources (1)

SourceAliasJoin Type
P_GLAccountBalance_F0707A P_GLAccountBalance_F0707A from

Associations (13)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts $projection.ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts and $projection.GLAccount = _GLAccountInChartOfAccounts.GLAccount
[0..1] I_ControllingArea _ControllingAreaText $projection.ControllingArea = _ControllingAreaText.ControllingArea
[0..1] I_CompanyCode _CompanyCodeText $projection.CompanyCode = _CompanyCodeText.CompanyCode
[0..*] I_LedgerText _LedgerText $projection.Ledger = _LedgerText.Ledger
[0..*] I_GLAccountText _GLAccountText $projection.ChartOfAccounts = _GLAccountText.ChartOfAccounts and $projection.GLAccount = _GLAccountText.GLAccount
[0..*] I_GLAccountText _GLAcctInChartOfAccountsText $projection.ChartOfAccounts = _GLAcctInChartOfAccountsText.ChartOfAccounts and $projection.GLAccount = _GLAcctInChartOfAccountsText.GLAccount
[0..*] I_SegmentText _SegmentText $projection.Segment = _SegmentText.Segment
[0..*] I_ProfitCenterText _ProfitCenterText $projection.ControllingArea = _ProfitCenterText.ControllingArea and $projection.ProfitCenter = _ProfitCenterText.ProfitCenter
[0..*] I_CostCenterText _CostCenterText $projection.ControllingArea = _CostCenterText.ControllingArea and $projection.CostCenter = _CostCenterText.CostCenter
[0..*] I_BusinessAreaText _BusinessAreaText $projection.BusinessArea = _BusinessAreaText.BusinessArea
[0..*] I_FunctionalAreaText _FunctionalAreaText $projection.FunctionalArea = _FunctionalAreaText.FunctionalArea

Annotations (13)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label GL Balances view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.modelingPattern #NONE view
VDM.viewType #CONSUMPTION view
Analytics.technicalName CFIGLBAL view
ObjectModel.query.implementedBy ABAP:CL_FIS_GLBALANCE_F0707A view
UI.textArrangement #TEXT_LAST view
AccessControl.auditFilter #ENABLED view

OData Services (1)

ServiceBindingVersionContractRelease
UI_GLACCOUNT_DISPLAYBALANCES UI_GLACCOUNT_BALANCES V2 C1 NOT_RELEASED

Fields (128)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger SourceLedger Source Ledger
KEY Ledger Ledger 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
GLRecordType GLRecordType Record Type
CompanyCodeName
FiscalYearVariant FiscalYearVariant FY Variant
LedgerFiscalYear LedgerFiscalYear
FiscalYearPeriod FiscalYearPeriod Period/Year
FiscalPeriod FiscalPeriod Tax period
ChartOfAccounts ChartOfAccounts Node Class
GLAccount GLAccount General Ledger
GLAccountLongName
ControllingArea ControllingArea Controlling Area
ControllingAreaName
ProfitCenter ProfitCenter Profit Center
Segment Segment Segment number
FunctionalArea FunctionalArea Sendr Fctl Area
BusinessArea BusinessArea Business Area
DebitCreditCode DebitCreditCode Single-Character Flag
FinancialAccountType FinancialAccountType Fin. Account Type
Supplier Supplier Supplier
Customer Customer Sold-to Party
AccountingDocumentType AccountingDocumentType Journal Entry Type
CostCenter CostCenter Cost Center
SalesDocument SalesDocument SD Document
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision OrganizationDivision Org. Division
Plant Plant Valuation Area
ValuationArea ValuationArea Valuation Area
MasterFixedAsset MasterFixedAsset Fixed Asset
FixedAsset FixedAsset Sub-number
OrderID OrderID Order ID
CompanyCodeCurrency CompanyCodeCurrency Local Currency
DebitAmountInCoCodeCrcy DebitAmountInCoCodeCrcy Debit Amount in Company Code Currency
CreditAmountInCoCodeCrcy CreditAmountInCoCodeCrcy Credit Amount in Company Code Currency
BalAmtInCompanyCodeCrcy BalAmtInCompanyCodeCrcy Balance Amount
EndingBalanceAmtInCoCodeCrcy EndingBalanceAmtInCoCodeCrcy
GlobalCurrency GlobalCurrency GM Billing Element: Global Currency
DebitAmountInGlobalCrcy DebitAmountInGlobalCrcy
CreditAmountInGlobalCrcy CreditAmountInGlobalCrcy
BalanceAmountInGlobalCrcy BalanceAmountInGlobalCrcy
EndingBalanceAmtInGlobalCrcy EndingBalanceAmtInGlobalCrcy
FunctionalCurrency FunctionalCurrency Functional Currency
DebitAmountInFunctionalCrcy DebitAmountInFunctionalCrcy Debit Amount in Functional Currency
CreditAmountInFunctionalCrcy CreditAmountInFunctionalCrcy Credit Amount in Functional Currency
BalanceAmountInFunctionalCrcy BalanceAmountInFunctionalCrcy
EndingBalanceAmtInFuncnlCrcy EndingBalanceAmtInFuncnlCrcy
FreeDefinedCurrency1 FreeDefinedCurrency1 Freely Defined Currency 1
DebitAmountInFreeDfndCrcy1 DebitAmountInFreeDfndCrcy1
CreditAmountInFreeDfndCrcy1 CreditAmountInFreeDfndCrcy1
BalanceAmountInFreeDfndCrcy1 BalanceAmountInFreeDfndCrcy1
EndingBalAmtInFreeDfndCrcy1 EndingBalAmtInFreeDfndCrcy1
FreeDefinedCurrency2 FreeDefinedCurrency2 Freely Defined Currency 2
DebitAmountInFreeDfndCrcy2 DebitAmountInFreeDfndCrcy2
CreditAmountInFreeDfndCrcy2 CreditAmountInFreeDfndCrcy2
BalanceAmountInFreeDfndCrcy2 BalanceAmountInFreeDfndCrcy2
EndingBalAmtInFreeDfndCrcy2 EndingBalAmtInFreeDfndCrcy2
FreeDefinedCurrency3 FreeDefinedCurrency3 Freely Defined Currency 3
DebitAmountInFreeDfndCrcy3 DebitAmountInFreeDfndCrcy3
CreditAmountInFreeDfndCrcy3 CreditAmountInFreeDfndCrcy3
BalanceAmountInFreeDfndCrcy3 BalanceAmountInFreeDfndCrcy3
EndingBalAmtInFreeDfndCrcy3 EndingBalAmtInFreeDfndCrcy3
FreeDefinedCurrency4 FreeDefinedCurrency4 Freely Defined Currency 4
DebitAmountInFreeDfndCrcy4 DebitAmountInFreeDfndCrcy4
CreditAmountInFreeDfndCrcy4 CreditAmountInFreeDfndCrcy4
BalanceAmountInFreeDfndCrcy4 BalanceAmountInFreeDfndCrcy4
EndingBalAmtInFreeDfndCrcy4 EndingBalAmtInFreeDfndCrcy4
FreeDefinedCurrency5 FreeDefinedCurrency5 Freely Defined Currency 5
DebitAmountInFreeDfndCrcy5 DebitAmountInFreeDfndCrcy5
CreditAmountInFreeDfndCrcy5 CreditAmountInFreeDfndCrcy5
BalanceAmountInFreeDfndCrcy5 BalanceAmountInFreeDfndCrcy5
EndingBalAmtInFreeDfndCrcy5 EndingBalAmtInFreeDfndCrcy5
FreeDefinedCurrency6 FreeDefinedCurrency6 Freely Defined Currency 6
DebitAmountInFreeDfndCrcy6 DebitAmountInFreeDfndCrcy6
CreditAmountInFreeDfndCrcy6 CreditAmountInFreeDfndCrcy6
BalanceAmountInFreeDfndCrcy6 BalanceAmountInFreeDfndCrcy6
EndingBalAmtInFreeDfndCrcy6 EndingBalAmtInFreeDfndCrcy6
FreeDefinedCurrency7 FreeDefinedCurrency7 Freely Defined Currency 7
DebitAmountInFreeDfndCrcy7 DebitAmountInFreeDfndCrcy7
CreditAmountInFreeDfndCrcy7 CreditAmountInFreeDfndCrcy7
BalanceAmountInFreeDfndCrcy7 BalanceAmountInFreeDfndCrcy7
EndingBalAmtInFreeDfndCrcy7 EndingBalAmtInFreeDfndCrcy7
FreeDefinedCurrency8 FreeDefinedCurrency8 Freely Defined Currency 8
DebitAmountInFreeDfndCrcy8 DebitAmountInFreeDfndCrcy8
CreditAmountInFreeDfndCrcy8 CreditAmountInFreeDfndCrcy8
BalanceAmountInFreeDfndCrcy8 BalanceAmountInFreeDfndCrcy8
EndingBalAmtInFreeDfndCrcy8 EndingBalAmtInFreeDfndCrcy8
IsNotPostedTo IsNotPostedTo
_Ledger _Ledger
_SourceLedger _SourceLedger
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_LedgerFiscalYearForVariant _LedgerFiscalYearForVariant
_FiscalYearVariant _FiscalYearVariant
_JournalEntry _JournalEntry
_Segment _Segment
_ProfitCenter _ProfitCenter
_CostCenter _CostCenter
_BusinessArea _BusinessArea
_FunctionalArea _FunctionalArea
_GLAccountInCompanyCode _GLAccountInCompanyCode
_ChartOfAccounts _ChartOfAccounts
_DebitCreditCode _DebitCreditCode
_CompanyCodeCurrency _CompanyCodeCurrency
_GlobalCurrency _GlobalCurrency
_FunctionalCurrency _FunctionalCurrency
_FreeDefinedCurrency1 _FreeDefinedCurrency1
_FreeDefinedCurrency2 _FreeDefinedCurrency2
_FreeDefinedCurrency3 _FreeDefinedCurrency3
_FreeDefinedCurrency4 _FreeDefinedCurrency4
_FreeDefinedCurrency5 _FreeDefinedCurrency5
_FreeDefinedCurrency6 _FreeDefinedCurrency6
_FreeDefinedCurrency7 _FreeDefinedCurrency7
_FreeDefinedCurrency8 _FreeDefinedCurrency8
_ControllingAreaText _ControllingAreaText
_CompanyCodeText _CompanyCodeText
_LedgerText _LedgerText
_GLAccountText _GLAccountText
_GLAcctInChartOfAccountsText _GLAcctInChartOfAccountsText
_SegmentText _SegmentText
_ProfitCenterText _ProfitCenterText
_CostCenterText _CostCenterText
_BusinessAreaText _BusinessAreaText
_FunctionalAreaText _FunctionalAreaText

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 C_GLAccountBalance_F0707A.
-- 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.

CREATE VIEW C_GLAccountBalance_F0707A AS
SELECT
  SourceLedger,
  Ledger,
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  GLRecordType,
  cast( _CompanyCode.CompanyCodeName as fis_butxt preserving type ) AS CompanyCodeName,
  FiscalYearVariant,
  LedgerFiscalYear,
  FiscalYearPeriod,
  FiscalPeriod,
  ChartOfAccounts,
  GLAccount,
  cast( _GLAccountInChartOfAccounts._Text[1: Language = $session.system_language].GLAccountLongName as fis_txt50_skat preserving type ) AS GLAccountLongName,
  ControllingArea,
  cast( _ControllingArea.ControllingAreaName as fis_kokrs_name preserving type ) AS ControllingAreaName,
  ProfitCenter,
  Segment,
  FunctionalArea,
  BusinessArea,
  DebitCreditCode,
  FinancialAccountType,
  Supplier,
  Customer,
  AccountingDocumentType,
  CostCenter,
  SalesDocument,
  SalesOrganization,
  DistributionChannel,
  OrganizationDivision,
  Plant,
  ValuationArea,
  MasterFixedAsset,
  FixedAsset,
  OrderID,
  CompanyCodeCurrency,
  DebitAmountInCoCodeCrcy,
  CreditAmountInCoCodeCrcy,
  BalAmtInCompanyCodeCrcy,
  EndingBalanceAmtInCoCodeCrcy,
  GlobalCurrency,
  DebitAmountInGlobalCrcy,
  CreditAmountInGlobalCrcy,
  BalanceAmountInGlobalCrcy,
  EndingBalanceAmtInGlobalCrcy,
  FunctionalCurrency,
  DebitAmountInFunctionalCrcy,
  CreditAmountInFunctionalCrcy,
  BalanceAmountInFunctionalCrcy,
  EndingBalanceAmtInFuncnlCrcy,
  FreeDefinedCurrency1,
  DebitAmountInFreeDfndCrcy1,
  CreditAmountInFreeDfndCrcy1,
  BalanceAmountInFreeDfndCrcy1,
  EndingBalAmtInFreeDfndCrcy1,
  FreeDefinedCurrency2,
  DebitAmountInFreeDfndCrcy2,
  CreditAmountInFreeDfndCrcy2,
  BalanceAmountInFreeDfndCrcy2,
  EndingBalAmtInFreeDfndCrcy2,
  FreeDefinedCurrency3,
  DebitAmountInFreeDfndCrcy3,
  CreditAmountInFreeDfndCrcy3,
  BalanceAmountInFreeDfndCrcy3,
  EndingBalAmtInFreeDfndCrcy3,
  FreeDefinedCurrency4,
  DebitAmountInFreeDfndCrcy4,
  CreditAmountInFreeDfndCrcy4,
  BalanceAmountInFreeDfndCrcy4,
  EndingBalAmtInFreeDfndCrcy4,
  FreeDefinedCurrency5,
  DebitAmountInFreeDfndCrcy5,
  CreditAmountInFreeDfndCrcy5,
  BalanceAmountInFreeDfndCrcy5,
  EndingBalAmtInFreeDfndCrcy5,
  FreeDefinedCurrency6,
  DebitAmountInFreeDfndCrcy6,
  CreditAmountInFreeDfndCrcy6,
  BalanceAmountInFreeDfndCrcy6,
  EndingBalAmtInFreeDfndCrcy6,
  FreeDefinedCurrency7,
  DebitAmountInFreeDfndCrcy7,
  CreditAmountInFreeDfndCrcy7,
  BalanceAmountInFreeDfndCrcy7,
  EndingBalAmtInFreeDfndCrcy7,
  FreeDefinedCurrency8,
  DebitAmountInFreeDfndCrcy8,
  CreditAmountInFreeDfndCrcy8,
  BalanceAmountInFreeDfndCrcy8,
  EndingBalAmtInFreeDfndCrcy8,
  IsNotPostedTo
FROM P_GLAccountBalance_F0707A
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts ON ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts AND GLAccount = _GLAccountInChartOfAccounts.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingAreaText ON ControllingArea = _ControllingAreaText.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCodeText ON CompanyCode = _CompanyCodeText.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_LedgerText AS _LedgerText ON Ledger = _LedgerText.Ledger  -- association [0..*]
LEFT OUTER JOIN I_GLAccountText AS _GLAccountText ON ChartOfAccounts = _GLAccountText.ChartOfAccounts AND GLAccount = _GLAccountText.GLAccount  -- association [0..*]
LEFT OUTER JOIN I_GLAccountText AS _GLAcctInChartOfAccountsText ON ChartOfAccounts = _GLAcctInChartOfAccountsText.ChartOfAccounts AND GLAccount = _GLAcctInChartOfAccountsText.GLAccount  -- association [0..*]
LEFT OUTER JOIN I_SegmentText AS _SegmentText ON Segment = _SegmentText.Segment  -- association [0..*]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON ControllingArea = _ProfitCenterText.ControllingArea AND ProfitCenter = _ProfitCenterText.ProfitCenter  -- association [0..*]
LEFT OUTER JOIN I_CostCenterText AS _CostCenterText ON ControllingArea = _CostCenterText.ControllingArea AND CostCenter = _CostCenterText.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_BusinessAreaText AS _BusinessAreaText ON BusinessArea = _BusinessAreaText.BusinessArea  -- association [0..*]
LEFT OUTER JOIN I_FunctionalAreaText AS _FunctionalAreaText ON FunctionalArea = _FunctionalAreaText.FunctionalArea  -- association [0..*]
;