C_SPQtnItemDemandDistrDocVar
Doc Varbl for Dmnd Distr for Itm in SPQtn
C_SPQtnItemDemandDistrDocVar is a Consumption CDS View that provides data about "Doc Varbl for Dmnd Distr for Itm in SPQtn" in SAP S/4HANA. It reads from 1 data source (R_SrcgProjQtnItmDmndDistr) and exposes 19 fields with key field SrcgProjQtnDmndDistrUUID. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_SrcgProjQtnItmDmndDistr | R_SrcgProjQtnItmDmndDistr | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_SourcingProjQtnDocVarbl | _SourcingProjectQuotation | $projection.SourcingProjectQuotationUUID = _SourcingProjectQuotation.SourcingProjectQuotationUUID |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_BackendPlantForPurg | _Plant | _Plant.Plant = $projection.Plant and $projection.ProcurementHubSourceSystem = _Plant.ProcurementHubSourceSystem and $projection.CompanyCode = _Plant.CompanyCode |
| [0..1] | I_BackendCoCodeForPurg | _ProcmtHubCompanyCode | $projection.CompanyCode = _ProcmtHubCompanyCode.CompanyCode and $projection.ProcurementHubSourceSystem = _ProcmtHubCompanyCode.ProcurementHubSourceSystem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | CSPQTNDMNDDSTRDV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.representativeKey | SrcgProjQtnDmndDistrUUID | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Doc Varbl for Dmnd Distr for Itm in SPQtn | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SrcgProjQtnDmndDistrUUID | SrcgProjQtnDmndDistrUUID | Demand Distribution UUID in Quotation | |
| SourcingProjectQuotationUUID | SourcingProjectQuotationUUID | Supplier Quotation UUID | ||
| SrcgProjQtnItemUUID | SrcgProjQtnItemUUID | Supplier Quotation Item UUID | ||
| SrcgProjDmndDistributionUUID | SrcgProjDmndDistributionUUID | Demand Distribution UUID | ||
| ProcurementProject | ProcurementProject | Project | ||
| Plant | Plant | Valuation Area | ||
| PlantName | _Plant | PlantName | Plant Name | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _ProcmtHubCompanyCode | CompanyCodeName | Company Name | |
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingGroupName | _PurchasingGroup | PurchasingGroupName | Purchasing Grp. Name | |
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingOrganizationName | _PurchasingOrganization | PurchasingOrganizationName | Purch. Org. Name | |
| ProcurementHubSourceSystem | ProcurementHubSourceSystem | Connected System ID | ||
| MaxAnnualRequestedQuantity | MaxAnnualRequestedQuantity | Max. Requested Quantity | ||
| SrcgProjQtnTotOfferedQuantity | SrcgProjQtnTotOfferedQuantity | Total Offered Quantity | ||
| RequestedQuantityUnit | RequestedQuantityUnit | Requested Quantity Unit | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| _SourcingProjectQuotation | _SourcingProjectQuotation |
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 C_SPQtnItemDemandDistrDocVar.
-- 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.
CREATE VIEW C_SPQtnItemDemandDistrDocVar AS
SELECT
SrcgProjQtnDmndDistrUUID,
SourcingProjectQuotationUUID,
SrcgProjQtnItemUUID,
SrcgProjDmndDistributionUUID,
ProcurementProject,
Plant,
_Plant.PlantName AS PlantName,
CompanyCode,
_ProcmtHubCompanyCode.CompanyCodeName AS CompanyCodeName,
PurchasingGroup,
_PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
PurchasingOrganization,
_PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
ProcurementHubSourceSystem,
MaxAnnualRequestedQuantity,
SrcgProjQtnTotOfferedQuantity,
RequestedQuantityUnit,
StorageLocation
FROM R_SrcgProjQtnItmDmndDistr
LEFT OUTER JOIN C_SourcingProjQtnDocVarbl AS _SourcingProjectQuotation ON SourcingProjectQuotationUUID = _SourcingProjectQuotation.SourcingProjectQuotationUUID -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_BackendPlantForPurg AS _Plant ON _Plant.Plant = Plant AND ProcurementHubSourceSystem = _Plant.ProcurementHubSourceSystem AND CompanyCode = _Plant.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_BackendCoCodeForPurg AS _ProcmtHubCompanyCode ON CompanyCode = _ProcmtHubCompanyCode.CompanyCode AND ProcurementHubSourceSystem = _ProcmtHubCompanyCode.ProcurementHubSourceSystem -- 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