P_TractAccitem
P_TractAccitem is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (tract_accitem) and exposes 74 fields with key fields DocumentUUID, AccountingDocumentItemRef.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| tract_accitem | accitem | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | PTRACTACCITEM | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (74)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocumentUUID | tract_accitem | document_guid | DB Object ID |
| KEY | AccountingDocumentItemRef | tract_accitem | item_number | Position |
| PosContexUUID | tract_accitem | pc_guid | DB Object ID | |
| TreasuryUpdateType | tract_accitem | dis_flowtype | Update Type | |
| TreasuryUpdateTypeName | ||||
| IsUsedInPaymentTransaction | tract_accitem | szart | Pmnt Transact. | |
| TreasuryGLAccountAssignmentRef | tract_accitem | aa_ref | Acct Assignment Ref. | |
| TreasuryGLAccountSymbol | tract_accitem | acc_symbol | Account Symbol | |
| TreasuryGLAccountSymbolName | ||||
| TreasuryPostingCategory | ||||
| TreasuryPostingCategoryName | _TreasuryPostingCategoryText | TreasuryPostingCategoryName | ||
| PostingKey | tract_accitem | posting_key | Posting Key | |
| PostingKeyName | _PostingKeyT | PostingKeyName | ||
| 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 | |
| LogicalTransaction | tract_accitem | logvo | Log. Trans. | |
| JournalEntryType | tract_accitem | blart | Rep. rec. doc. type | |
| AccountingDocumentTypeName | _AccountingDocumentTypeText | AccountingDocumentTypeName | ||
| PaymentDate | tract_accitem | payment_date | Pymt Date | |
| Customer | tract_accitem | kunnr | Stock customer | |
| PaymentTerms | tract_accitem | zterm | Terms of Payment | |
| PaymentMethod | tract_accitem | zlsch | Pymt Meth. | |
| PaymentMethodName | ||||
| PaymentMethodSupplement | tract_accitem | uzawe | Pmnt Meth. Sup. | |
| PaymentMethodSupplementName | ||||
| PaymentBlockingReason | tract_accitem | zlspr | Pymt Lock Rsn | |
| PaymentBlockingReasonName | ||||
| PayerPayee | tract_accitem | rpzahl | Payer/Payee | |
| PayerPayeeFullName | ||||
| 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 | |
| CountryName | _CountryText | CountryName | Country | |
| AssignmentReference | tract_accitem | allocnr | Assignment | |
| JournalEntryItemText | ||||
| BusinessArea | tract_accitem | gsber | Business Area | |
| BusinessAreaName | _BusinessAreaText | BusinessAreaName | Business Area Name | |
| CostCenter | tract_accitem | kostl | Substitute CC | |
| FinancialTransactionType | ||||
| FinancialTransactionTypeName | ||||
| PartnerCompany | tract_accitem | vbund | Trading Partner | |
| CompanyName | _PartnerCompany | CompanyName | Text | |
| Counterparty | ||||
| CounterpartyFullName | ||||
| Issuer | tract_accitem | issuer | User Name | |
| IssuerFullName | ||||
| SubTraderFlowNumber | tract_accitem | sub_flow_number | Flow Number | |
| SEPAMandate | tract_accitem | mndid | Mandate Ref. | |
| SpecialGLCode | tract_accitem | spgl_ind | Special G/L Ind | |
| SpecialGLCodeName | ||||
| PaymentReason | tract_accitem | payment_reason | Reason Code | |
| _PostingKeyT | _PostingKeyT | |||
| _AccountingDocumentTypeText | _AccountingDocumentTypeText | |||
| _PaymentMethodText | _PaymentMethodText | |||
| _PaymentBlockingReasonText | _PaymentBlockingReasonText | |||
| _CountryText | _CountryText | |||
| _BusinessAreaText | _BusinessAreaText | |||
| _SpecialGLCodeText | _SpecialGLCodeText | |||
| _TreasuryGLAccAssignRefText | _TreasuryGLAccAssignRefText | |||
| _TreasuryUpdateTypeText | _TreasuryUpdateTypeText | |||
| _TreasuryGLAccountSymbolText | _TreasuryGLAccountSymbolText | |||
| _PartnerCompany | _PartnerCompany | |||
| _PaymentMethodSupplementText | _PaymentMethodSupplementText | |||
| _PayerPayee | _PayerPayee |
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_TractAccitem.
-- 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: PTRACTACCITEM
CREATE VIEW P_TractAccitem AS
SELECT
accitem.document_guid AS DocumentUUID,
accitem.item_number AS AccountingDocumentItemRef,
accitem.pc_guid AS PosContexUUID,
accitem.dis_flowtype AS TreasuryUpdateType,
cast(_TreasuryUpdateTypeText.TreasuryUpdateTypeName as ftr_gen_update_type_name preserving type) AS TreasuryUpdateTypeName,
accitem.szart AS IsUsedInPaymentTransaction,
accitem.aa_ref AS TreasuryGLAccountAssignmentRef,
accitem.acc_symbol AS TreasuryGLAccountSymbol,
cast(_TreasuryGLAccountSymbolText.TreasuryGLAccountSymbolName as ftr_gen_account_symbol_name preserving type) AS TreasuryGLAccountSymbolName,
cast(accitem.posting_cat as ftr_gen_posting_category preserving type) AS TreasuryPostingCategory,
_TreasuryPostingCategoryText.TreasuryPostingCategoryName AS TreasuryPostingCategoryName,
accitem.posting_key AS PostingKey,
_PostingKeyT.PostingKeyName AS PostingKeyName,
accitem.gl_account AS GLAccount,
cast(accitem.position_amt as ftr_gen_amount_position_crcy preserving type) AS AmountInPositionCurrency,
cast(accitem.position_curr as ftr_gen_position_crcy preserving type) 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.logvo AS LogicalTransaction,
accitem.blart AS JournalEntryType,
_AccountingDocumentTypeText.AccountingDocumentTypeName AS AccountingDocumentTypeName,
accitem.payment_date AS PaymentDate,
accitem.kunnr AS Customer,
accitem.zterm AS PaymentTerms,
accitem.zlsch AS PaymentMethod,
cast(_PaymentMethodText.text2 as farp_schzw_text preserving type) AS PaymentMethodName,
accitem.uzawe AS PaymentMethodSupplement,
cast (_PaymentMethodSupplementText.PaymentMethodSupplementName as ftr_gen_pymnt_meth_suppl_name preserving type) AS PaymentMethodSupplementName,
accitem.zlspr AS PaymentBlockingReason,
cast( _PaymentBlockingReasonText.PaymentBlockingReasonName as ftr_gen_pay_block_reason_name preserving type) AS PaymentBlockingReasonName,
accitem.rpzahl AS PayerPayee,
cast (_PayerPayee.PayerPayeeFullName as ftr_gen_payerpayee_full_name preserving type) AS PayerPayeeFullName,
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,
_CountryText.CountryName AS CountryName,
accitem.allocnr AS AssignmentReference,
cast(accitem.sgtxt as fis_sgtxt preserving type ) AS JournalEntryItemText,
accitem.gsber AS BusinessArea,
_BusinessAreaText.BusinessAreaName AS BusinessAreaName,
accitem.kostl AS CostCenter,
cast(accitem.rmvct as ftr_gen_transaction_type_fi preserving type ) AS FinancialTransactionType,
cast(_FinancialTransactionTypeT.FinancialTransactionTypeName as ftr_gen_trans_type_fi_name preserving type ) AS FinancialTransactionTypeName,
accitem.vbund AS PartnerCompany,
_PartnerCompany.CompanyName AS CompanyName,
cast (accitem.kontrahent as rkontrah_new preserving type ) AS Counterparty,
cast(_Counterparty.BusinessPartnerFullName as ftr_gen_counterparty_full_name ) AS CounterpartyFullName,
accitem.issuer AS Issuer,
cast(_Issuer.BusinessPartnerFullName as ftr_gen_issuer_full_name ) AS IssuerFullName,
accitem.sub_flow_number AS SubTraderFlowNumber,
accitem.mndid AS SEPAMandate,
accitem.spgl_ind AS SpecialGLCode,
cast(_SpecialGLCodeText.SpecialGLCodeName as ftr_gen_special_gl_code_name) AS SpecialGLCodeName,
accitem.payment_reason AS PaymentReason
FROM tract_accitem AS accitem
;
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