R_SrcgProjItmDemandDistr
Demand Distribution for Srcg Proj Item
R_SrcgProjItmDemandDistr is a Basic CDS View that provides data about "Demand Distribution for Srcg Proj Item" in SAP S/4HANA. It reads from 1 data source (mmspdmnddistr) and exposes 31 fields with key field SrcgProjDmndDistributionUUID. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| mmspdmnddistr | mmspdmnddistr | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | R_SourcingProject | _SourcingProject | $projection.SourcingProjectUUID = _SourcingProject.SourcingProjectUUID |
| [1..1] | R_SourcingProjectItem | _SourcingProjectItem | $projection.SourcingProjectItemUUID = _SourcingProjectItem.SourcingProjectItemUUID |
| [0..1] | I_PurchasingDocumentType | _PurchasingDocumentType | $projection.SrcgProjFollowOnDocumentCat = _PurchasingDocumentType.PurchasingDocumentCategory and $projection.SrcgProjFollowOnDocumentType = _PurchasingDocumentType.PurchasingDocumentType |
| [0..1] | I_PurchasingDocumentCategory | _PurchasingDocumentCategory | $projection.SrcgProjFollowOnDocumentCat = _PurchasingDocumentCategory.PurchasingDocumentCategory |
| [0..1] | I_SrcgProjItemDemandConfCode | _SrcgProjItemDemandConfCode | $projection.SrcgProjItemDemandConfCode = _SrcgProjItemDemandConfCode.SrcgProjItemDemandConfCode |
| [0..1] | I_ProductSourcingReason | _SourcingProjectReason | $projection.SrcgProjItemUnconfdDemandRsn = _SourcingProjectReason.ProductSourcingReason |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | RSPITMDMNDDISTR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.representativeKey | SrcgProjDmndDistributionUUID | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| EndUserText.label | Demand Distribution for Srcg Proj Item | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SrcgProjDmndDistributionUUID | srcgprojdmnddistributionuuid | Demand Distribution UUID | |
| SourcingProjectUUID | sourcingprojectuuid | Sourcing Project UUID | ||
| SourcingProjectItemUUID | sourcingprojectitemuuid | Item UUID | ||
| ProcurementProject | procurementproject | Project | ||
| Plant | plant | Valuation Area | ||
| CompanyCode | companycode | Receiver Company Code | ||
| PurchasingGroup | purchasinggroup | Purchasing Group | ||
| PurchasingOrganization | purchasingorganization | Purchasing Organization | ||
| ProcurementHubSourceSystem | procurementhubsourcesystem | Connected System ID | ||
| MaxAnnualRequestedQuantity | maxannualrequestedquantity | Max. Requested Quantity | ||
| StorageLocation | storagelocation | StorageLocation | ||
| RequestedQuantity | requestedquantity | Requested Quantity | ||
| RequestedCommitmentPeriod | requestedcommitmentperiod | |||
| ProcmtHubPlantUniqueID | procmthubplantuniqueid | Plant Unique ID | ||
| SrcgProjFollowOnDocumentCat | srcgprojfollowondocumentcat | Follow-On Document Category | ||
| SrcgProjFollowOnDocumentType | srcgprojfollowondocumenttype | Follow-On Document Type | ||
| SrcgProjItemDemandConfCode | srcgprojitemdemandconfcode | Confirmation Code | ||
| SrcgProjItemUnconfdDemandRsn | srcgprojitemunconfddemandrsn | Rsn for Unconfd Dmnd | ||
| CentralPurchaseContract | centralpurchasecontract | Purchasing Doc. | ||
| CentralPurchaseContractItem | centralpurchasecontractitem | Item in Central Purchase Contract | ||
| DistributionKey | distributionkey | Distr. Number | ||
| SourcingOrigin | sourcingorigin | Sourcing Origin | ||
| SourcingScenario | sourcingscenario | Integration Scenario | ||
| ProcmtPlanningPlantIsFixed | procmtplanningplantisfixed | Demand Line Is Unchangeable | ||
| RequestedQuantityUnit | _SourcingProjectItem | RequestedQuantityUnit | Requested Quantity Unit | |
| _SourcingProject | _SourcingProject | |||
| _SourcingProjectItem | _SourcingProjectItem | |||
| _SrcgProjItemDemandConfCode | _SrcgProjItemDemandConfCode | |||
| _SourcingProjectReason | _SourcingProjectReason | |||
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _PurchasingDocumentType | _PurchasingDocumentType |
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 R_SrcgProjItmDemandDistr.
-- 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 R_SrcgProjItmDemandDistr AS
SELECT
SrcgProjDmndDistributionUUID,
SourcingProjectUUID,
SourcingProjectItemUUID,
ProcurementProject,
Plant,
CompanyCode,
PurchasingGroup,
PurchasingOrganization,
ProcurementHubSourceSystem,
MaxAnnualRequestedQuantity,
StorageLocation,
RequestedQuantity,
RequestedCommitmentPeriod,
ProcmtHubPlantUniqueID,
SrcgProjFollowOnDocumentCat,
SrcgProjFollowOnDocumentType,
SrcgProjItemDemandConfCode,
SrcgProjItemUnconfdDemandRsn,
CentralPurchaseContract,
CentralPurchaseContractItem,
DistributionKey,
SourcingOrigin,
SourcingScenario,
ProcmtPlanningPlantIsFixed,
_SourcingProjectItem.RequestedQuantityUnit AS RequestedQuantityUnit
FROM mmspdmnddistr
LEFT OUTER JOIN R_SourcingProject AS _SourcingProject ON SourcingProjectUUID = _SourcingProject.SourcingProjectUUID -- association [1..1]
LEFT OUTER JOIN R_SourcingProjectItem AS _SourcingProjectItem ON SourcingProjectItemUUID = _SourcingProjectItem.SourcingProjectItemUUID -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocumentType AS _PurchasingDocumentType ON SrcgProjFollowOnDocumentCat = _PurchasingDocumentType.PurchasingDocumentCategory AND SrcgProjFollowOnDocumentType = _PurchasingDocumentType.PurchasingDocumentType -- association [0..1]
LEFT OUTER JOIN I_PurchasingDocumentCategory AS _PurchasingDocumentCategory ON SrcgProjFollowOnDocumentCat = _PurchasingDocumentCategory.PurchasingDocumentCategory -- association [0..1]
LEFT OUTER JOIN I_SrcgProjItemDemandConfCode AS _SrcgProjItemDemandConfCode ON SrcgProjItemDemandConfCode = _SrcgProjItemDemandConfCode.SrcgProjItemDemandConfCode -- association [0..1]
LEFT OUTER JOIN I_ProductSourcingReason AS _SourcingProjectReason ON SrcgProjItemUnconfdDemandRsn = _SourcingProjectReason.ProductSourcingReason -- 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