P_CO_DIANFrmt1001GdsRcptItem
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)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryOperationalView | OperationalView | from |
| I_StRpJournalEntryHeaderLog | ReportedItemsLog | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _ReportingCurrency | _ReportingCurrency.Currency = $projection.ReportingCurrency |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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