I_RO_SAFTAccountingItem
RO SAFT Accounting Document Item
I_RO_SAFTAccountingItem is a Basic CDS View (Dimension) that provides data about "RO SAFT Accounting Document Item" in SAP S/4HANA. It reads from 1 data source (bseg) and exposes 30 fields with key fields AccountingDocument, CompanyCode, FiscalYear, AccountingDocumentItem, OriginalReferenceDocument. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| bseg | _AccountingItem | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_JournalEntry | _JournalEntry | $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.AccountingDocument = _JournalEntry.AccountingDocument and $projection.FiscalYear = _JournalEntry.FiscalYear |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IROSAFTACCITM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| Metadata.allowExtensions | true | view | |
| EndUserText.label | RO SAFT Accounting Document Item | view |
Fields (30)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AccountingDocument | bseg | belnr | SD Document |
| KEY | CompanyCode | bseg | bukrs | Value |
| KEY | FiscalYear | bseg | gjahr | Settlement Year |
| KEY | AccountingDocumentItem | bseg | buzei | Posting View Item |
| KEY | OriginalReferenceDocument | bseg | awkey | RefKey GJE |
| AccountingDocumentItemRef | bseg | posnr | WBS Element | |
| TargetGLAccount | bseg | hkont | Transfer acct | |
| SalesOrder | bseg | vbel2 | Sales Document | |
| Product | bseg | matnr | Vehicle Model | |
| Plant | bseg | werks | Receiving Plant | |
| Quantity | bseg | menge | WarrCountValue | |
| BaseUnit | bseg | meins | Valuation Unit | |
| DebitCreditCode | bseg | shkzg | Returns | |
| DocumentItemText | bseg | sgtxt | Text | |
| PaymentMethod | bseg | zlsch | Pymt Meth. | |
| ProductPriceUnitQuantity | bseg | peinh | Unit of measure | |
| TransactionAmountInLocalCrcy | bseg | dmbtr | Loc. amount | |
| PostingDate | bseg | h_budat | Posting Date | |
| TransactionCurrency | _JournalEntry | TransactionCurrency | Transaction Currency | |
| InvoiceAmountInInvoiceDocCrcy | bseg | wrbtr | Gross Amount | |
| Customer | bseg | kunnr | Stock customer | |
| Supplier | bseg | lifnr | Vendor no. | |
| MaterialDocument | ||||
| MaterialDocumentYear | ||||
| ReferenceDocumentType | bseg | awtyp | Reference Document Type | |
| AccountingDocumentType | _JournalEntry | AccountingDocumentType | Journal Entry Type | |
| PaymentTerms | bseg | zterm | Terms of Payment | |
| CostCenter | bseg | kostl | Substitute CC | |
| AccountType | bseg | koart | Account type | |
| CompanyVATRegistration | bseg | stceg | VAT Reg. No. |
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_RO_SAFTAccountingItem.
-- 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: IROSAFTACCITM
CREATE VIEW I_RO_SAFTAccountingItem AS
SELECT
_AccountingItem.belnr AS AccountingDocument,
_AccountingItem.bukrs AS CompanyCode,
_AccountingItem.gjahr AS FiscalYear,
_AccountingItem.buzei AS AccountingDocumentItem,
_AccountingItem.awkey AS OriginalReferenceDocument,
_AccountingItem.posnr AS AccountingDocumentItemRef,
_AccountingItem.hkont AS TargetGLAccount,
_AccountingItem.vbel2 AS SalesOrder,
_AccountingItem.matnr AS Product,
_AccountingItem.werks AS Plant,
_AccountingItem.menge AS Quantity,
_AccountingItem.meins AS BaseUnit,
_AccountingItem.shkzg AS DebitCreditCode,
_AccountingItem.sgtxt AS DocumentItemText,
_AccountingItem.zlsch AS PaymentMethod,
_AccountingItem.peinh AS ProductPriceUnitQuantity,
_AccountingItem.dmbtr AS TransactionAmountInLocalCrcy,
_AccountingItem.h_budat AS PostingDate,
_JournalEntry.TransactionCurrency AS TransactionCurrency,
_AccountingItem.wrbtr AS InvoiceAmountInInvoiceDocCrcy,
_AccountingItem.kunnr AS Customer,
_AccountingItem.lifnr AS Supplier,
cast(substring( _AccountingItem.awkey, 1, 10) as mblnr preserving type) AS MaterialDocument,
cast(substring( _AccountingItem.awkey, 11, 4) as mjahr) AS MaterialDocumentYear,
_AccountingItem.awtyp AS ReferenceDocumentType,
_JournalEntry.AccountingDocumentType AS AccountingDocumentType,
_AccountingItem.zterm AS PaymentTerms,
_AccountingItem.kostl AS CostCenter,
_AccountingItem.koart AS AccountType,
_AccountingItem.stceg AS CompanyVATRegistration
FROM bseg AS _AccountingItem
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND AccountingDocument = _JournalEntry.AccountingDocument AND FiscalYear = _JournalEntry.FiscalYear -- 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