P_SubcontrgOrdsSchedLinesCuml
Subcontracting Order Schedule Lines cumulative quantity
P_SubcontrgOrdsSchedLinesCuml is a Consumption CDS View that provides data about "Subcontracting Order Schedule Lines cumulative quantity" in SAP S/4HANA. It reads from 1 data source (P_SubcontrgOrdsSchedLinesTF) and exposes 12 fields with key fields PurchasingDocument, PurchasingDocumentItem, Material, Plant, Supplier. It has 1 association to related views. Part of development package ODATA_MM_PUR_SUBCONTRG_COCKPIT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_SubcontrgOrdsSchedLinesTF | P_SubcontrgOrdsSchedLinesTF | from |
Parameters (6)
| Name | Type | Default |
|---|---|---|
| p_clnt | abap.clnt | |
| p_material | matnr | |
| p_plant | werks_d | |
| p_supplier | lifnr | |
| P_ReqdDelivDteRngeFrmDte | vdm_shippingdate | |
| P_ReqdDelivDteRngeToDte | vdm_shippingdate |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ProcmtShippingStatus | _ShippingStatusVH | $projection.ShippingStatus = _ShippingStatusVH.DeliveryStatus |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | PurchasingDocument | Purchasing Document | |
| KEY | PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item | |
| KEY | Material | Material | Vehicle Model | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | Supplier | Supplier | Supplier | |
| KEY | RequirementDate | RequirementDate | Requirement Date | |
| KEY | Reservation | Reservation | Reservation | |
| KEY | ReservationItem | ReservationItem | Reservation Item | |
| StillToBeDeliveredQuantity | StillToBeDeliveredQuantity | |||
| OrderQuantityUnit | OrderQuantityUnit | Sales Unit | ||
| ShippingStatus | ShippingStatus | |||
| ShippingStatusText |
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_SubcontrgOrdsSchedLinesCuml.
-- 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_clnt : abap.clnt, p_material : matnr, p_plant : werks_d, p_supplier : lifnr, P_ReqdDelivDteRngeFrmDte : vdm_shippingdate, P_ReqdDelivDteRngeToDte : vdm_shippingdate
CREATE VIEW P_SubcontrgOrdsSchedLinesCuml AS
SELECT
PurchasingDocument,
PurchasingDocumentItem,
Material,
Plant,
Supplier,
RequirementDate,
Reservation,
ReservationItem,
StillToBeDeliveredQuantity,
OrderQuantityUnit,
ShippingStatus,
_ShippingStatusVH._Text[1: Language = $session.system_language].DomainText AS ShippingStatusText
FROM P_SubcontrgOrdsSchedLinesTF
LEFT OUTER JOIN I_ProcmtShippingStatus AS _ShippingStatusVH ON ShippingStatus = _ShippingStatusVH.DeliveryStatus -- 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