C_RO_StRpInventoryRegisterC

DDL: C_RO_STRPINVENTORYREGISTERC Type: view_entity CONSUMPTION

Romanian inventory register - Cube

C_RO_StRpInventoryRegisterC is a Consumption CDS View (Cube) that provides data about "Romanian inventory register - Cube" in SAP S/4HANA. It reads from 1 data source (I_StRpTrialBalanceItemCube) and exposes 48 fields with key fields Ledger, CompanyCode, FiscalYear, SourceLedger, AccountingDocument. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_StRpTrialBalanceItemCube I_StRpTrialBalanceItemCube from

Parameters (4)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to
P_FromFiscalPeriod fis_period_from
P_ToFiscalPeriod fis_period_to

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_JournalEntry _JournalEntry $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument
[0..1] I_GLAccountLineItemRawData _GLAccountRawItem TB.CompanyCode = _GLAccountRawItem.CompanyCode and TB.FiscalYear = _GLAccountRawItem.FiscalYear and TB.AccountingDocument = _GLAccountRawItem.AccountingDocument and TB.SourceLedger = _GLAccountRawItem.SourceLedger and TB.LedgerGLLineItem = _GLAccountRawItem.LedgerGLLineItem

Annotations (10)

NameValueLevelField
EndUserText.label Romanian inventory register - Cube view
VDM.viewType #CONSUMPTION view
Analytics.dataCategory #CUBE view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
Metadata.allowExtensions true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
Analytics.internalName #LOCAL view

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY Ledger TB Ledger Ledger
KEY CompanyCode TB CompanyCode Receiver Company Code
KEY FiscalYear TB FiscalYear G/L Fiscal Year
KEY SourceLedger TB SourceLedger Source Ledger
KEY AccountingDocument TB AccountingDocument Journal Entry
KEY LedgerGLLineItem TB LedgerGLLineItem Journal Entry Item
KEY StatryRptCategory TB StatryRptCategory Report ID
KEY StatryRptgEntity TB StatryRptgEntity Reporting Entity
KEY StatryRptRunID TB StatryRptRunID Report Run ID
PostingDate TB PostingDate Posting Date for GR
DocumentDate TB DocumentDate Journal Entry Date
FiscalPeriod TB FiscalPeriod Tax period
DocumentItemText TB DocumentItemText Text
AccountingDocumentType TB AccountingDocumentType Journal Entry Type
DocumentReferenceID _JournalEntry DocumentReferenceID Reference
AccountingDocumentHeaderText _JournalEntry AccountingDocumentHeaderText Doc.Header Text
AccountingDocumentItem TB AccountingDocumentItem Posting View Item
GLAccountLongName GLText GLAccountLongName Long Text
AlternativeGLAccountName GLTextAlt GLAccountLongName Long Text
DebitCreditCode TB DebitCreditCode Single-Character Flag
ChartOfAccounts TB ChartOfAccounts Node Class
AlternativeGLAccount TB AlternativeGLAccount Group Account
CountryChartOfAccounts TB CountryChartOfAccounts Chart of Accts
GLAccount TB GLAccount General Ledger
Supplier TB Supplier Supplier
Customer TB Customer Sold-to Party
FinancialAccountType TB FinancialAccountType Fin. Account Type
CompanyCodeCurrency TB CompanyCodeCurrency Local Currency
OffsettingAccount JournalEntryItem OffsettingAccount Offsetting Acct
StartingBalanceAmtInCoCodeCrcy TB StartingBalanceAmtInCoCodeCrcy
AmountInCompanyCodeCurrency TB AmountInCompanyCodeCurrency Local Crcy Amt
EndingBalanceAmtInCoCodeCrcy TB EndingBalanceAmtInCoCodeCrcy
TransactionCode _JournalEntry TransactionCode Transaction Code
AssignmentReference TB AssignmentReference Assignment Reference
Plant JournalEntryItem Plant Valuation Area
GLAccountGroup
BusinessArea TB BusinessArea Business Area
_Supplier TB _Supplier
_Customer TB _Customer
_CompanyCode TB _CompanyCode
_GLAccountText TB _GLAccountText
_GLAccountInChartOfAccounts TB _GLAccountInChartOfAccounts
_GLAccountInCompanyCode TB _GLAccountInCompanyCode
_ChartOfAccounts TB _ChartOfAccounts
_CountryChartOfAccounts TB _CountryChartOfAccounts
_ReportedItemsLog TB _ReportedItemsLog
GLRecordType _GLAccountRawItem GLRecordType Record Type
_JournalEntry _JournalEntry

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 C_RO_StRpInventoryRegisterC.
-- 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.
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_FromFiscalPeriod : fis_period_from, P_ToFiscalPeriod : fis_period_to

CREATE VIEW C_RO_StRpInventoryRegisterC AS
SELECT
  TB.Ledger AS Ledger,
  TB.CompanyCode AS CompanyCode,
  TB.FiscalYear AS FiscalYear,
  TB.SourceLedger AS SourceLedger,
  TB.AccountingDocument AS AccountingDocument,
  TB.LedgerGLLineItem AS LedgerGLLineItem,
  TB.StatryRptCategory AS StatryRptCategory,
  TB.StatryRptgEntity AS StatryRptgEntity,
  TB.StatryRptRunID AS StatryRptRunID,
  TB.PostingDate AS PostingDate,
  TB.DocumentDate AS DocumentDate,
  TB.FiscalPeriod AS FiscalPeriod,
  TB.DocumentItemText AS DocumentItemText,
  TB.AccountingDocumentType AS AccountingDocumentType,
  _JournalEntry.DocumentReferenceID AS DocumentReferenceID,
  _JournalEntry.AccountingDocumentHeaderText AS AccountingDocumentHeaderText,
  TB.AccountingDocumentItem AS AccountingDocumentItem,
  GLText.GLAccountLongName AS GLAccountLongName,
  GLTextAlt.GLAccountLongName AS AlternativeGLAccountName,
  TB.DebitCreditCode AS DebitCreditCode,
  TB.ChartOfAccounts AS ChartOfAccounts,
  TB.AlternativeGLAccount AS AlternativeGLAccount,
  TB.CountryChartOfAccounts AS CountryChartOfAccounts,
  TB.GLAccount AS GLAccount,
  TB.Supplier AS Supplier,
  TB.Customer AS Customer,
  TB.FinancialAccountType AS FinancialAccountType,
  TB.CompanyCodeCurrency AS CompanyCodeCurrency,
  JournalEntryItem.OffsettingAccount AS OffsettingAccount,
  TB.StartingBalanceAmtInCoCodeCrcy AS StartingBalanceAmtInCoCodeCrcy,
  TB.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  TB.EndingBalanceAmtInCoCodeCrcy AS EndingBalanceAmtInCoCodeCrcy,
  _JournalEntry.TransactionCode AS TransactionCode,
  TB.AssignmentReference AS AssignmentReference,
  JournalEntryItem.Plant AS Plant,
  JournalEntryItem._GLAccountInChartOfAccounts.GLAccountGroup AS GLAccountGroup,
  TB.BusinessArea AS BusinessArea,
  TB._Supplier AS _Supplier,
  TB._Customer AS _Customer,
  TB._CompanyCode AS _CompanyCode,
  TB._GLAccountText AS _GLAccountText,
  TB._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
  TB._GLAccountInCompanyCode AS _GLAccountInCompanyCode,
  TB._ChartOfAccounts AS _ChartOfAccounts,
  TB._CountryChartOfAccounts AS _CountryChartOfAccounts,
  TB._ReportedItemsLog AS _ReportedItemsLog,
  _GLAccountRawItem.GLRecordType AS GLRecordType
FROM I_StRpTrialBalanceItemCube
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND FiscalYear = _JournalEntry.FiscalYear AND AccountingDocument = _JournalEntry.AccountingDocument  -- association [0..1]
LEFT OUTER JOIN I_GLAccountLineItemRawData AS _GLAccountRawItem ON TB.CompanyCode = _GLAccountRawItem.CompanyCode AND TB.FiscalYear = _GLAccountRawItem.FiscalYear AND TB.AccountingDocument = _GLAccountRawItem.AccountingDocument AND TB.SourceLedger = _GLAccountRawItem.SourceLedger AND TB.LedgerGLLineItem = _GLAccountRawItem.LedgerGLLineItem  -- association [0..1]
;