I_OpeningBalanceTransCrcy
Opening Balance In Transaction Currency
I_OpeningBalanceTransCrcy is a Composite CDS View (Cube) that provides data about "Opening Balance In Transaction Currency" in SAP S/4HANA. It reads from 3 data sources (I_GLAccountInCompanyCode, I_BankAccountMainLinkage, P_Openingbalancetf) and exposes 15 fields with key fields BankAccountInternalID, CompanyCode, TransactionDate, Currency, GLAccount. It has 1 association to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountInCompanyCode | glaccount | left_outer |
| I_BankAccountMainLinkage | link | left_outer |
| P_Openingbalancetf | P_Openingbalancetf | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _Currency | $projection.BankAccountCurrency = _Currency.Currency left outer join I_GLAccountInCompanyCode as glaccount on balance.CompanyCode = glaccount.CompanyCode and balance.GLAccount = glaccount.GLAccount |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Opening Balance In Transaction Currency | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | IBALTRANSCRCY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropogatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BankAccountInternalID | balance | BankAccountInternalID | Technical ID |
| KEY | CompanyCode | balance | CompanyCode | Receiver Company Code |
| KEY | TransactionDate | balance | TransactionDate | Value Date |
| KEY | Currency | |||
| KEY | GLAccount | balance | GLAccount | General Ledger |
| KEY | ValidFrom | balance | ValidFrom | Vers.Valid From |
| KEY | ValidTo | balance | ValidTo | Vers.Valid To |
| AmountInTransactionCurrency | balance | AmountInTransactionCurrency | Pt Crcy Amt | |
| CompanyCodeCurrency | balance | CompanyCodeCurrency | Local Currency | |
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| HouseBank | ||||
| HouseBankAccount | ||||
| BankAccount | ||||
| Bank | ||||
| BankCountry |
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 I_OpeningBalanceTransCrcy.
-- 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: IBALTRANSCRCY
CREATE VIEW I_OpeningBalanceTransCrcy AS
SELECT
balance.BankAccountInternalID AS BankAccountInternalID,
balance.CompanyCode AS CompanyCode,
balance.TransactionDate AS TransactionDate,
coalesce(TransactionCurrency, BankAccountCurrency ) AS Currency,
balance.GLAccount AS GLAccount,
balance.ValidFrom AS ValidFrom,
balance.ValidTo AS ValidTo,
balance.AmountInTransactionCurrency AS AmountInTransactionCurrency,
balance.CompanyCodeCurrency AS CompanyCodeCurrency,
AmountInCompanyCodeCurrency,
cast( coalesce( link.HouseBank, '' ) as hbkid ) AS HouseBank,
cast( coalesce( link.HouseBankAccount, '' ) as hktid ) AS HouseBankAccount,
cast( coalesce( balance.BankAccount, '' ) as fclm_bam_acc_num ) AS BankAccount,
cast( coalesce( balance.Bank, '' ) as fclm_bam_bank_key ) AS Bank,
cast( coalesce( balance.BankCountry, '' ) as fclm_bam_bank_country_key ) AS BankCountry
FROM P_Openingbalancetf
LEFT OUTER JOIN I_BankAccountMainLinkage AS link ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_GLAccountInCompanyCode AS glaccount ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Currency AS _Currency ON BankAccountCurrency = _Currency.Currency left outer join I_GLAccountInCompanyCode as glaccount on balance.CompanyCode = glaccount.CompanyCode AND balance.GLAccount = glaccount.GLAccount -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA