P_CO_DIANFrmt1001GdsRcptItem

DDL: P_CO_DIANFRMT1001GDSRCPTITEM Type: view CONSUMPTION Package: GLO_FIN_IS_CO_FORMAT_1001

Format 1001 - Goods Receipt Item

P_CO_DIANFrmt1001GdsRcptItem is a Consumption CDS View that provides data about "Format 1001 - Goods Receipt Item" in SAP S/4HANA. It reads from 2 data sources (I_JournalEntryOperationalView, I_StRpJournalEntryHeaderLog) and exposes 22 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, Ledger, CompanyCode. It has 1 association to related views. Part of development package GLO_FIN_IS_CO_FORMAT_1001.

Data Sources (2)

SourceAliasJoin Type
I_JournalEntryOperationalView OperationalView from
I_StRpJournalEntryHeaderLog ReportedItemsLog inner

Parameters (2)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Currency _ReportingCurrency _ReportingCurrency.Currency = $projection.ReportingCurrency

Annotations (11)

NameValueLevelField
AbapCatalog.buffering.status #NOT_ALLOWED view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName PCOF1001GDSRCPT view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #XXL view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY StatryRptgEntity I_StRpJournalEntryHeaderLog StatryRptgEntity Reporting Entity
KEY StatryRptCategory I_StRpJournalEntryHeaderLog StatryRptCategory Report ID
KEY StatryRptRunID I_StRpJournalEntryHeaderLog StatryRptRunID Report Run ID
KEY Ledger I_JournalEntryOperationalView Ledger Ledger
KEY CompanyCode I_JournalEntryOperationalView CompanyCode Receiver Company Code
KEY FiscalYear
KEY AccountingDocument I_JournalEntryOperationalView AccountingDocument Journal Entry
KEY AccountingDocumentItem I_JournalEntryOperationalView AccountingDocumentItem Posting View Item
PurchasingDocument I_JournalEntryOperationalView PurchasingDocument Purchasing Document
PurchasingDocumentItem I_JournalEntryOperationalView PurchasingDocumentItem Purchasing Doc. Item
AccountAssignmentNumber I_JournalEntryOperationalView AccountAssignmentNumber Account Assgmt No.
ReferenceDocumentFiscalYear I_JournalEntryOperationalView ReferenceDocumentContext Reference Document Context
ReferenceDocument I_JournalEntryOperationalView ReferenceDocument Reference Document
ReferenceDocumentItem
ReportingCurrency
_Ledger I_JournalEntryOperationalView _Ledger
_CompanyCode I_JournalEntryOperationalView _CompanyCode
_FiscalYear I_JournalEntryOperationalView _FiscalYear
_JournalEntry I_JournalEntryOperationalView _JournalEntry
_PurchasingDocument I_JournalEntryOperationalView _PurchasingDocument
_PurchasingDocumentItem I_JournalEntryOperationalView _PurchasingDocumentItem
_ReportingCurrency _ReportingCurrency

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_CO_DIANFrmt1001GdsRcptItem.
-- 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

CREATE VIEW P_CO_DIANFrmt1001GdsRcptItem AS
SELECT
  ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
  ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
  ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
  OperationalView.Ledger AS Ledger,
  OperationalView.CompanyCode AS CompanyCode,
  cast( OperationalView.FiscalYear as fis_gjahr_no_conv preserving type ) AS FiscalYear,
  OperationalView.AccountingDocument AS AccountingDocument,
  OperationalView.AccountingDocumentItem AS AccountingDocumentItem,
  OperationalView.PurchasingDocument AS PurchasingDocument,
  OperationalView.PurchasingDocumentItem AS PurchasingDocumentItem,
  OperationalView.AccountAssignmentNumber AS AccountAssignmentNumber,
  OperationalView.ReferenceDocumentContext AS ReferenceDocumentFiscalYear,
  OperationalView.ReferenceDocument AS ReferenceDocument,
  right( OperationalView.ReferenceDocumentItem, 4 ) AS ReferenceDocumentItem,
  cast( 'COP' as ficodian_reporting_currency ) AS ReportingCurrency,
  OperationalView._Ledger AS _Ledger,
  OperationalView._CompanyCode AS _CompanyCode,
  OperationalView._FiscalYear AS _FiscalYear,
  OperationalView._JournalEntry AS _JournalEntry,
  OperationalView._PurchasingDocument AS _PurchasingDocument,
  OperationalView._PurchasingDocumentItem AS _PurchasingDocumentItem
FROM I_JournalEntryOperationalView AS OperationalView
INNER JOIN I_StRpJournalEntryHeaderLog AS ReportedItemsLog ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Currency AS _ReportingCurrency ON _ReportingCurrency.Currency = ReportingCurrency  -- association [0..1]
;