I_RO_SAFTAccountingItem

DDL: I_RO_SAFTACCOUNTINGITEM SQL: IROSAFTACCITM Type: view BASIC

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)

SourceAliasJoin Type
bseg _AccountingItem from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_JournalEntry _JournalEntry $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.AccountingDocument = _JournalEntry.AccountingDocument and $projection.FiscalYear = _JournalEntry.FiscalYear

Annotations (13)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;