I_CommingleStorageQtyHistory

DDL: I_COMMINGLESTORAGEQTYHISTORY SQL: IDGRCSTORQTYHIST Type: view BASIC

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

StateC1
Line of BusinessSales
Application ComponentLO-AGR-CM
CapabilitiesData Source for Defining CDS Entities
PackageSales for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
/accgo/t_strg_qh /accgo/t_strg_qh from

Annotations (13)

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

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