I_TrsyAccountingItem
Treasury Accounting Item
I_TrsyAccountingItem is a Composite CDS View that provides data about "Treasury Accounting Item" in SAP S/4HANA. It reads from 3 data sources (I_TrsyAccountingItemCredit, I_TreasuryPositionIdentifier, I_TrsyAcctItemPositionContext) and exposes 34 fields.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_TrsyAccountingItemCredit | credit | inner |
| I_TreasuryPositionIdentifier | diff | inner |
| I_TrsyAcctItemPositionContext | I_TrsyAcctItemPositionContext | inner |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | ITRSYACCTITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Treasury Accounting Item | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| TreasuryBusinessTransaction | debit | TreasuryBusinessTransaction | ||
| TreasuryValuationArea | debit | TreasuryValuationArea | Valuation Area | |
| TreasuryTransactionFlow | debit | TreasuryTransactionFlow | ||
| DebitGLAccount | debit | DebitGLAccount | G/L Account | |
| DebitCustomer | debit | DebitCustomer | ||
| AccountingDocument | debit | AccountingDocument | Journal Entry | |
| FiscalYear | debit | FiscalYear | G/L Fiscal Year | |
| PostingDate | debit | PostingDate | Posting Date for GR | |
| PostingFiscalPeriod | debit | PostingFiscalPeriod | Period | |
| TreasuryGLAccountAssignmentRef | debit | TreasuryGLAccountAssignmentRef | Acct Assignment Ref. | |
| ReferenceDocument | debit | ReferenceDocument | Reference Document | |
| ReferenceDocumentContext | debit | ReferenceDocumentContext | Reference Document Context | |
| ReverseDocumentFiscalYear | debit | ReverseDocumentFiscalYear | Year | |
| ReverseDocumentPostingDate | debit | ReverseDocumentPostingDate | ||
| ReverseDocumentFiscalPeriod | debit | ReverseDocumentFiscalPeriod | ||
| ReverseDocument | ||||
| ReversalReferenceDocument | debit | ReversalReferenceDocument | Reversal Reference Document | |
| ReversalReferenceDocumentCntxt | debit | ReversalReferenceDocumentCntxt | Reversal Reference Document Context | |
| CreditGLAccount | I_TrsyAccountingItemCredit | CreditGLAccount | ||
| CreditCustomer | I_TrsyAccountingItemCredit | CreditCustomer | ||
| Fund | I_TreasuryPositionIdentifier | Fund | Sender Fund | |
| GrantID | I_TreasuryPositionIdentifier | GrantID | Sender Grant | |
| WBSElementInternalID | I_TreasuryPositionIdentifier | WBSElementInternalID | WBS Internal ID | |
| ProfitCenter | I_TreasuryPositionIdentifier | ProfitCenter | Profit Center | |
| CostCenter | I_TreasuryPositionIdentifier | CostCenter | Cost Center | |
| FunctionalArea | I_TreasuryPositionIdentifier | FunctionalArea | Sendr Fctl Area | |
| TrsyPosCustomDiffntnTerm1 | I_TreasuryPositionIdentifier | TrsyPosCustomDiffntnTerm1 | ||
| TrsyPosCustomDiffntnTerm2 | I_TreasuryPositionIdentifier | TrsyPosCustomDiffntnTerm2 | ||
| TrsyPosCustomDiffntnTerm3 | I_TreasuryPositionIdentifier | TrsyPosCustomDiffntnTerm3 | ||
| TrsyPosCustomDiffntnTerm4 | I_TreasuryPositionIdentifier | TrsyPosCustomDiffntnTerm4 | ||
| TrsyPosCustomDiffntnTerm5 | I_TreasuryPositionIdentifier | TrsyPosCustomDiffntnTerm5 | ||
| TreasuryValuationClass | I_TreasuryPositionIdentifier | TreasuryValuationClass | ||
| DifferentiationPortfolio | I_TreasuryPositionIdentifier | DifferentiationPortfolio | ||
| CompanyCode | I_TreasuryPositionIdentifier | CompanyCode | Receiver Company Code |
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_TrsyAccountingItem.
-- 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: ITRSYACCTITEM
CREATE VIEW I_TrsyAccountingItem AS
SELECT
debit.TreasuryBusinessTransaction AS TreasuryBusinessTransaction,
debit.TreasuryValuationArea AS TreasuryValuationArea,
debit.TreasuryTransactionFlow AS TreasuryTransactionFlow,
debit.DebitGLAccount AS DebitGLAccount,
debit.DebitCustomer AS DebitCustomer,
debit.AccountingDocument AS AccountingDocument,
debit.FiscalYear AS FiscalYear,
debit.PostingDate AS PostingDate,
debit.PostingFiscalPeriod AS PostingFiscalPeriod,
debit.TreasuryGLAccountAssignmentRef AS TreasuryGLAccountAssignmentRef,
debit.ReferenceDocument AS ReferenceDocument,
debit.ReferenceDocumentContext AS ReferenceDocumentContext,
debit.ReverseDocumentFiscalYear AS ReverseDocumentFiscalYear,
debit.ReverseDocumentPostingDate AS ReverseDocumentPostingDate,
debit.ReverseDocumentFiscalPeriod AS ReverseDocumentFiscalPeriod,
cast( debit.ReverseDocument as stblg preserving type ) AS ReverseDocument,
debit.ReversalReferenceDocument AS ReversalReferenceDocument,
debit.ReversalReferenceDocumentCntxt AS ReversalReferenceDocumentCntxt,
credit.CreditGLAccount AS CreditGLAccount,
credit.CreditCustomer AS CreditCustomer,
diff.Fund AS Fund,
diff.GrantID AS GrantID,
diff.WBSElementInternalID AS WBSElementInternalID,
diff.ProfitCenter AS ProfitCenter,
diff.CostCenter AS CostCenter,
diff.FunctionalArea AS FunctionalArea,
diff.TrsyPosCustomDiffntnTerm1 AS TrsyPosCustomDiffntnTerm1,
diff.TrsyPosCustomDiffntnTerm2 AS TrsyPosCustomDiffntnTerm2,
diff.TrsyPosCustomDiffntnTerm3 AS TrsyPosCustomDiffntnTerm3,
diff.TrsyPosCustomDiffntnTerm4 AS TrsyPosCustomDiffntnTerm4,
diff.TrsyPosCustomDiffntnTerm5 AS TrsyPosCustomDiffntnTerm5,
diff.TreasuryValuationClass AS TreasuryValuationClass,
diff.DifferentiationPortfolio AS DifferentiationPortfolio,
diff.CompanyCode AS CompanyCode
INNER JOIN I_TrsyAccountingItemCredit AS credit ON /* join condition not captured in parsed metadata */
INNER JOIN I_TrsyAcctItemPositionContext ON /* join condition not captured in parsed metadata */
INNER JOIN I_TreasuryPositionIdentifier AS diff ON /* join condition not captured in parsed metadata */
;
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