I_TrsyAccountingItemBase

DDL: I_TRSYACCOUNTINGITEMBASE SQL: ITRSYACCTITEMB Type: view BASIC

Treasury Accounting Item Base

I_TrsyAccountingItemBase is a Basic CDS View that provides data about "Treasury Accounting Item Base" in SAP S/4HANA. It reads from 1 data source (tract_accitem) and exposes 64 fields with key fields TrsyAccountingDocumentUUID, AccountingDocumentItemRef. It has 20 associations to related views.

Data Sources (1)

SourceAliasJoin Type
tract_accitem accitem from

Associations (20)

CardinalityTargetAliasCondition
[0..1] I_TrsyAccountingItemDocument _TrsyAcctItemDocument accitem.document_guid = _TrsyAcctItemDocument.TrsyAcctItemDocumentDocUUID
[0..1] I_TrsyAcctItemPositionContext _TrsyAcctItemPosContext accitem.pc_guid = _TrsyAcctItemPosContext.TrsyPositionContextUUID
[0..1] I_Treasuryupdatetype _TreasuryUpdateType $projection.TreasuryUpdateType = _TreasuryUpdateType.TreasuryUpdateType
[0..1] I_TreasuryGLAccountAssignRef _TreasuryGLAccountAssignRef $projection.TreasuryGLAccountAssignmentRef = _TreasuryGLAccountAssignRef.TreasuryGLAccountAssignmentRef
[0..1] I_Treasuryglaccountsymbol _TreasuryGLAccountSymbol $projection.TreasuryGLAccountSymbol = _TreasuryGLAccountSymbol.TreasuryGLAccountSymbol
[0..1] I_TreasuryPostingCategory _TreasuryPostingCategory accitem.posting_cat = _TreasuryPostingCategory.TreasuryPostingCategory
[0..1] I_Partnercompany _PartnerCompany $projection.PartnerCompany = _PartnerCompany.PartnerCompany and _PartnerCompany.Language = $session.system_language
[0..1] I_Paymentmethodsupplement _Paymentmethodsupplement $projection.PaymentMethodSupplement = _Paymentmethodsupplement.PaymentMethodSupplement
[0..1] I_PAYERPAYEE _PayerPayee $projection.PayerPayee = _PayerPayee.PayerPayee
[0..1] I_PostingKeyWithSpecialGLCode _PostingKeyWithSpecialGLCode $projection.PostingKey = _PostingKeyWithSpecialGLCode.PostingKey and $projection.SpecialGLCode = _PostingKeyWithSpecialGLCode.SpecialGLCode
[0..1] I_AccountingDocumentType _AccountingDocumentType $projection.JournalEntryType = _AccountingDocumentType.AccountingDocumentType
[0..1] I_PaymentMethod _PaymentMethod $projection.PaymentMethod = _PaymentMethod.PaymentMethod and $projection.SupplyingCountry = _PaymentMethod.Country
[0..1] I_PaymentBlockingReason _PaymentBlockingReason $projection.PaymentBlockingReason = _PaymentBlockingReason.PaymentBlockingReason
[0..1] I_Country _Country $projection.SupplyingCountry = _Country.Country
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..1] I_FinancialTransactionType _FinancialTransactionType $projection.FinancialTransactionType = _FinancialTransactionType.FinancialTransactionType
[0..1] I_PostingKey _PostingKey $projection.PostingKey = _PostingKey.PostingKey
[0..1] I_SpecialGLCode _SpecialGLCode $projection.SpecialGLCode = _SpecialGLCode.SpecialGLCode and _SpecialGLCode.FinancialAccountType = 'D'
[0..1] I_BusinessPartner _IssuerName $projection.Issuer = _IssuerName.BusinessPartner
[0..1] I_BusinessPartner _CounterpartyName $projection.Counterparty = _CounterpartyName.BusinessPartner

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName ITRSYACCTITEMB view
VDM.viewType #BASIC view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Treasury Accounting Item Base view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (64)

KeyFieldSource TableSource FieldDescription
KEY TrsyAccountingDocumentUUID tract_accitem document_guid DB Object ID
KEY AccountingDocumentItemRef tract_accitem item_number Position
TrsyPositionContextUUID tract_accitem pc_guid DB Object ID
TreasuryUpdateType tract_accitem dis_flowtype Update Type
IsUsedInPaymentTransaction tract_accitem szart Pmnt Transact.
TreasuryGLAccountAssignmentRef tract_accitem aa_ref Acct Assignment Ref.
TreasuryGLAccountSymbol tract_accitem acc_symbol Account Symbol
TreasuryPostingCategory
PostingKey tract_accitem posting_key Posting Key
GLAccount tract_accitem gl_account G/L Acct
AmountInPositionCurrency
PositionCurrency
AmountInCompanyCodeCurrency tract_accitem local_amt Amount in LC
CompanyCodeCurrency tract_accitem local_curr Local Currency
TreasuryTransactionFlow tract_accitem trdflownr Flow Number
AccountingDocument tract_accitem belnr SD Document
ReverseDocument
AccountingDocumentItem tract_accitem buzei Posting View Item
JournalEntryType tract_accitem blart Rep. rec. doc. type
PaymentDate tract_accitem payment_date Pymt Date
Customer tract_accitem kunnr Stock customer
Supplier tract_accitem lifnr Vendor no.
PaymentTerms tract_accitem zterm Terms of Payment
PaymentMethod tract_accitem zlsch Pymt Meth.
PaymentMethodSupplement tract_accitem uzawe Pmnt Meth. Sup.
PaymentBlockingReason tract_accitem zlspr Pymt Lock Rsn
PayerPayee tract_accitem rpzahl Payer/Payee
BPBankAccountInternalID tract_accitem rpbank Partner Bank
HouseBank tract_accitem house_bank House Bank
HouseBankAccount tract_accitem house_bank_acc House Bank Acct
TreasuryPaymentFlowDirection tract_accitem sign Type of SIGN component in row type of a Ranges type
StateCentralBankPaymentReason tract_accitem lzbkz SCB Ind.
SupplyingCountry tract_accitem landl Supply C/R
AssignmentReference tract_accitem allocnr Assignment
JournalEntryItemText
BusinessArea tract_accitem gsber Business Area
CostCenter tract_accitem kostl Substitute CC
FinancialTransactionType
PartnerCompany tract_accitem vbund Trading Partner
Counterparty
Issuer tract_accitem issuer User Name
SEPAMandate tract_accitem mndid Mandate Ref.
SpecialGLCode tract_accitem spgl_ind Special G/L Ind
PaymentReason tract_accitem payment_reason Reason Code
_TrsyAcctItemDocument _TrsyAcctItemDocument
_TrsyAcctItemPosContext _TrsyAcctItemPosContext
_PostingKey _PostingKey
_PostingKeyWithSpecialGLCode _PostingKeyWithSpecialGLCode
_AccountingDocumentType _AccountingDocumentType
_PaymentMethod _PaymentMethod
_PaymentBlockingReason _PaymentBlockingReason
_Country _Country
_BusinessArea _BusinessArea
_FinancialTransactionType _FinancialTransactionType
_SpecialGLCode _SpecialGLCode
_TreasuryGLAccountAssignRef _TreasuryGLAccountAssignRef
_TreasuryUpdateType _TreasuryUpdateType
_TreasuryGLAccountSymbol _TreasuryGLAccountSymbol
_PartnerCompany _PartnerCompany
_Paymentmethodsupplement _Paymentmethodsupplement
_TreasuryPostingCategory _TreasuryPostingCategory
_PayerPayee _PayerPayee
_IssuerName _IssuerName
_CounterpartyName _CounterpartyName

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_TrsyAccountingItemBase.
-- 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: ITRSYACCTITEMB

CREATE VIEW I_TrsyAccountingItemBase AS
SELECT
  accitem.document_guid AS TrsyAccountingDocumentUUID,
  accitem.item_number AS AccountingDocumentItemRef,
  accitem.pc_guid AS TrsyPositionContextUUID,
  accitem.dis_flowtype AS TreasuryUpdateType,
  accitem.szart AS IsUsedInPaymentTransaction,
  accitem.aa_ref AS TreasuryGLAccountAssignmentRef,
  accitem.acc_symbol AS TreasuryGLAccountSymbol,
  cast(accitem.posting_cat as ftr_gen_posting_category preserving type) AS TreasuryPostingCategory,
  accitem.posting_key AS PostingKey,
  accitem.gl_account AS GLAccount,
  cast(accitem.position_amt as ftr_gen_amount_position_crcy) AS AmountInPositionCurrency,
  cast(accitem.position_curr as ftr_gen_position_crcy) AS PositionCurrency,
  accitem.local_amt AS AmountInCompanyCodeCurrency,
  accitem.local_curr AS CompanyCodeCurrency,
  accitem.trdflownr AS TreasuryTransactionFlow,
  accitem.belnr AS AccountingDocument,
  cast(accitem.reversal_belnr as fis_stblg preserving type) AS ReverseDocument,
  accitem.buzei AS AccountingDocumentItem,
  accitem.blart AS JournalEntryType,
  accitem.payment_date AS PaymentDate,
  accitem.kunnr AS Customer,
  accitem.lifnr AS Supplier,
  accitem.zterm AS PaymentTerms,
  accitem.zlsch AS PaymentMethod,
  accitem.uzawe AS PaymentMethodSupplement,
  accitem.zlspr AS PaymentBlockingReason,
  accitem.rpzahl AS PayerPayee,
  accitem.rpbank AS BPBankAccountInternalID,
  accitem.house_bank AS HouseBank,
  accitem.house_bank_acc AS HouseBankAccount,
  accitem.sign AS TreasuryPaymentFlowDirection,
  accitem.lzbkz AS StateCentralBankPaymentReason,
  accitem.landl AS SupplyingCountry,
  accitem.allocnr AS AssignmentReference,
  cast(accitem.sgtxt as fis_sgtxt preserving type) AS JournalEntryItemText,
  accitem.gsber AS BusinessArea,
  accitem.kostl AS CostCenter,
  cast(accitem.rmvct as ftr_gen_transaction_type_fi preserving type) AS FinancialTransactionType,
  accitem.vbund AS PartnerCompany,
  cast(accitem.kontrahent as rkontrah_new preserving type ) AS Counterparty,
  accitem.issuer AS Issuer,
  accitem.mndid AS SEPAMandate,
  accitem.spgl_ind AS SpecialGLCode,
  accitem.payment_reason AS PaymentReason
FROM tract_accitem AS accitem
LEFT OUTER JOIN I_TrsyAccountingItemDocument AS _TrsyAcctItemDocument ON accitem.document_guid = _TrsyAcctItemDocument.TrsyAcctItemDocumentDocUUID  -- association [0..1]
LEFT OUTER JOIN I_TrsyAcctItemPositionContext AS _TrsyAcctItemPosContext ON accitem.pc_guid = _TrsyAcctItemPosContext.TrsyPositionContextUUID  -- association [0..1]
LEFT OUTER JOIN I_Treasuryupdatetype AS _TreasuryUpdateType ON TreasuryUpdateType = _TreasuryUpdateType.TreasuryUpdateType  -- association [0..1]
LEFT OUTER JOIN I_TreasuryGLAccountAssignRef AS _TreasuryGLAccountAssignRef ON TreasuryGLAccountAssignmentRef = _TreasuryGLAccountAssignRef.TreasuryGLAccountAssignmentRef  -- association [0..1]
LEFT OUTER JOIN I_Treasuryglaccountsymbol AS _TreasuryGLAccountSymbol ON TreasuryGLAccountSymbol = _TreasuryGLAccountSymbol.TreasuryGLAccountSymbol  -- association [0..1]
LEFT OUTER JOIN I_TreasuryPostingCategory AS _TreasuryPostingCategory ON accitem.posting_cat = _TreasuryPostingCategory.TreasuryPostingCategory  -- association [0..1]
LEFT OUTER JOIN I_Partnercompany AS _PartnerCompany ON PartnerCompany = _PartnerCompany.PartnerCompany AND _PartnerCompany.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Paymentmethodsupplement AS _Paymentmethodsupplement ON PaymentMethodSupplement = _Paymentmethodsupplement.PaymentMethodSupplement  -- association [0..1]
LEFT OUTER JOIN I_PAYERPAYEE AS _PayerPayee ON PayerPayee = _PayerPayee.PayerPayee  -- association [0..1]
LEFT OUTER JOIN I_PostingKeyWithSpecialGLCode AS _PostingKeyWithSpecialGLCode ON PostingKey = _PostingKeyWithSpecialGLCode.PostingKey AND SpecialGLCode = _PostingKeyWithSpecialGLCode.SpecialGLCode  -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentType AS _AccountingDocumentType ON JournalEntryType = _AccountingDocumentType.AccountingDocumentType  -- association [0..1]
LEFT OUTER JOIN I_PaymentMethod AS _PaymentMethod ON PaymentMethod = _PaymentMethod.PaymentMethod AND SupplyingCountry = _PaymentMethod.Country  -- association [0..1]
LEFT OUTER JOIN I_PaymentBlockingReason AS _PaymentBlockingReason ON PaymentBlockingReason = _PaymentBlockingReason.PaymentBlockingReason  -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON SupplyingCountry = _Country.Country  -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_FinancialTransactionType AS _FinancialTransactionType ON FinancialTransactionType = _FinancialTransactionType.FinancialTransactionType  -- association [0..1]
LEFT OUTER JOIN I_PostingKey AS _PostingKey ON PostingKey = _PostingKey.PostingKey  -- association [0..1]
LEFT OUTER JOIN I_SpecialGLCode AS _SpecialGLCode ON SpecialGLCode = _SpecialGLCode.SpecialGLCode AND _SpecialGLCode.FinancialAccountType = 'D'  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _IssuerName ON Issuer = _IssuerName.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _CounterpartyName ON Counterparty = _CounterpartyName.BusinessPartner  -- association [0..1]
;