C_SPQtnItemDemandDistrDocVar

DDL: C_SPQTNITEMDEMANDDISTRDOCVAR Type: view CONSUMPTION Package: APPL_MM_PUR_SRCGPROJQTN_AI

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. Part of development package APPL_MM_PUR_SRCGPROJQTN_AI.

Data Sources (1)

SourceAliasJoin Type
R_SrcgProjQtnItmDmndDistr R_SrcgProjQtnItmDmndDistr from

Associations (4)

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

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

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