I_CommingleStorageQtyHistory
Storage Quantity History
I_CommingleStorageQtyHistory (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Sales
I_CommingleStorageQtyHistory is a Basic CDS View that provides data about "Storage Quantity History" in SAP S/4HANA. It reads from 1 data source (/accgo/t_strg_qh) and exposes 21 fields with key fields ApplicationDocument, ApplicationDocumentItem, QuantityHistorySequenceNumber.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Sales |
| Application Component | LO-AGR-CM |
| Capabilities | Data Source for Defining CDS Entities |
| Package | Sales for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /accgo/t_strg_qh | /accgo/t_strg_qh | from |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IDGRCSTORQTYHIST | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Storage Quantity History | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.supportedCapabilities | #CDS_MODELING_DATA_SOURCE | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ApplicationDocument | appldoc | Application Document Number | |
| KEY | ApplicationDocumentItem | item | Application Document Item Number | |
| KEY | QuantityHistorySequenceNumber | sequence_number | Sequence Number | |
| QuantityHistoryParentItem | parent_item | Application Document Parent Item | ||
| QtyHistoryParentSequenceNumber | Quantity History Parent sequence number | |||
| QuantityHistoryChildItem | Quantity history child item | |||
| Material | matnr | Material Number | ||
| Creditor | lifnr | Account Number of Supplier | ||
| StorageQuantityInBaseUoM | base_stg_qty | Base Storage Quantity | ||
| StorageQuantityBaseUnit | Storage Quantity Base Unit | |||
| DailyGrainRptStorageQuantity | storage_qty | Storage Quantity | ||
| StorageQuantityUnit | Storage Quantity UOM | |||
| ConversionFactorDnmntrValue | DENOMINATOR CONVERSION | |||
| ConversionFactorNmrtrValue | Numerator Conversion | |||
| StorageAgreement | strg_agreement | Storage Agreement | ||
| StorageAgreementItem | strg_agreement_item | Storage Agreement Item | ||
| QtyHistoryValidityStartDate | val_start_date | Validity Start Date | ||
| QtyHistoryValidityEndDate | val_end_dat | Validity End Date | ||
| TotalNumberOfStorageDays | no_of_days | Total Number of Storage Days | ||
| WarehouseReceiptedQuantity | whr_qty | Warehouse Receipted Quantity | ||
| WarehouseReceiptedQuantityUnit | Warehouse receipted quantity unit |
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_CommingleStorageQtyHistory.
-- 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: IDGRCSTORQTYHIST
CREATE VIEW I_CommingleStorageQtyHistory AS
SELECT
appldoc AS ApplicationDocument,
item AS ApplicationDocumentItem,
sequence_number AS QuantityHistorySequenceNumber,
parent_item AS QuantityHistoryParentItem,
cast(parent_sequence as cds_dgr_qty_hstry_parnt_seq_no) AS QtyHistoryParentSequenceNumber,
cast(child_item as cds_dgr_qty_hstry_child_item) AS QuantityHistoryChildItem,
matnr AS Material,
lifnr AS Creditor,
base_stg_qty AS StorageQuantityInBaseUoM,
cast(base_uom as cds_dgr_storage_qty_base_unit) AS StorageQuantityBaseUnit,
storage_qty AS DailyGrainRptStorageQuantity,
cast(uom as cds_dgr_storage_quantity_uom) AS StorageQuantityUnit,
cast(den_conv as cds_dgr_denominator_conversion) AS ConversionFactorDnmntrValue,
cast(num_conv as cds_dgr_numerator_conversion) AS ConversionFactorNmrtrValue,
strg_agreement AS StorageAgreement,
strg_agreement_item AS StorageAgreementItem,
val_start_date AS QtyHistoryValidityStartDate,
val_end_dat AS QtyHistoryValidityEndDate,
no_of_days AS TotalNumberOfStorageDays,
whr_qty AS WarehouseReceiptedQuantity,
cast(whr_uom as cds_dgr_wrhse_receipt_qty_unit) AS WarehouseReceiptedQuantityUnit
FROM /accgo/t_strg_qh
;
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