R_SrcgProjItmDemandDistr

DDL: R_SRCGPROJITMDEMANDDISTR Type: view BASIC

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)

SourceAliasJoin Type
mmspdmnddistr mmspdmnddistr from

Associations (6)

CardinalityTargetAliasCondition
[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)

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

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