C_SupDmndAllDocSupProtQ
Supply Protection relevant for Supply Assignment
C_SupDmndAllDocSupProtQ is a Consumption CDS View that provides data about "Supply Protection relevant for Supply Assignment" in SAP S/4HANA. It reads from 1 data source (I_SupDmndAllDocSupProtC) and exposes 60 fields with key field SupProtTimeBucketUUID. It has 16 associations to related views. Part of development package VDM_ARUN_ANALYTICS_ALL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SupDmndAllDocSupProtC | Demand | from |
Associations (16)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ProductText | _ProductText | $projection.Material = _ProductText.Product and _ProductText.Language = $session.system_language |
| [0..1] | I_ProductGroupText | _ProductGroupText | $projection.MaterialGroup = _ProductGroupText.MaterialGroup and _ProductGroupText.Language = $session.system_language |
| [0..1] | I_ProductTypeText | _ProductTypeText | $projection.MaterialType = _ProductTypeText.ProductType and _ProductTypeText.Language = $session.system_language |
| [0..1] | I_SalesOrganizationText | _SalesOrgText | $projection.SalesOrganization = _SalesOrgText.SalesOrganization and _SalesOrgText.Language = $session.system_language |
| [0..1] | I_DistributionChannelText | _DistrChnl | $projection.DistributionChannel = _DistrChnl.DistributionChannel and _DistrChnl.Language = $session.system_language |
| [0..1] | I_DivisionText | _Divn | $projection.Division = _Divn.Division and _Divn.Language = $session.system_language |
| [0..1] | I_SalesDistrictText | _SalesDist | $projection.SalesDistrict = _SalesDist.SalesDistrict and _SalesDist.Language = $session.system_language |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_SupDmndAllDocRqmtTypeT | _RqmtText | $projection.RequirementType = _RqmtText.RequirementType and _RqmtText.Language = $session.system_language |
| [1..1] | I_SupProtCharacteristicVH | _SupProtCharcTxt01 | $projection.SupProtCharc01CtlgPathUUID = _SupProtCharcTxt01.ProdAllocCharcCtlgPathUUID |
| [1..1] | I_SupProtCharacteristicVH | _SupProtCharcTxt02 | $projection.SupProtCharc02CtlgPathUUID = _SupProtCharcTxt02.ProdAllocCharcCtlgPathUUID |
| [1..1] | I_SupProtCharacteristicVH | _SupProtCharcTxt03 | $projection.SupProtCharc03CtlgPathUUID = _SupProtCharcTxt03.ProdAllocCharcCtlgPathUUID |
| [1..1] | I_SupProtCharacteristicVH | _SupProtCharcTxt04 | $projection.SupProtCharc04CtlgPathUUID = _SupProtCharcTxt04.ProdAllocCharcCtlgPathUUID |
| [1..1] | I_SupProtCharacteristicVH | _SupProtCharcTxt05 | $projection.SupProtCharc05CtlgPathUUID = _SupProtCharcTxt05.ProdAllocCharcCtlgPathUUID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AbapCatalog.sqlViewName | CSUPDMNDADSPTQ | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| EndUserText.label | Supply Protection relevant for Supply Assignment | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SupProtTimeBucketUUID | SupProtTimeBucketUUID | ||
| RequirementType | RequirementType | RequirementType | ||
| RequestedDate | RequestedDate | Valid From | ||
| ProductAvailabilityDate | ProductAvailabilityDate | Mat.Avail.Date | ||
| RequestedDeliveryDate | RequestedDeliveryDate | Requested Delivery Date | ||
| StartDate | StartDate | Valid From | ||
| EndDate | EndDate | Term to | ||
| SupProtProtectedQuantity | SupProtProtectedQuantity | Protected Quantity | ||
| SupProtConsumedQuantity | SupProtConsumedQuantity | Consumed Quantity | ||
| ARunSupProtUnconsumedQty | ARunSupProtUnconsumedQty | |||
| ARunTmpAssignedQuantityInBsUnt | ARunTmpAssignedQuantityInBsUnt | |||
| OpenDemandQuantity | OpenDemandQuantity | |||
| BaseUnit | BaseUnit | Unit of Measure | ||
| RequirementSegment | RequirementSegment | Req. Segment | ||
| CalendarYear | CalendarYear | Year | ||
| CalendarMonth | CalendarMonth | Calendar Month | ||
| CalendarMonthName | CalendarMonthName | |||
| CalendarWeek | CalendarWeek | Calendar Week | ||
| CalendarDay | CalendarDay | Occur Day in a Month | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| MaterialType | MaterialType | Material Type | ||
| CrossPlantConfigurableProduct | CrossPlantConfigurableProduct | Cross-plant CP | ||
| Plant | Plant | Valuation Area | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| SalesDistrict | SalesDistrict | Sales District | ||
| Customer | Customer | Sold-to Party | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| SupAssgmtAggrgQtyUnit | SupAssgmtAggrgQtyUnit | |||
| SupplyProtectionName | SupplyProtectionName | |||
| SupProtCharc01CtlgPathUUID | SupProtCharc01CtlgPathUUID | |||
| SupProtCharc01ValueID | SupProtCharc01ValueID | |||
| SupProtCharc02CtlgPathUUID | SupProtCharc02CtlgPathUUID | |||
| SupProtCharc02ValueID | SupProtCharc02ValueID | |||
| SupProtCharc03CtlgPathUUID | SupProtCharc03CtlgPathUUID | |||
| SupProtCharc03ValueID | SupProtCharc03ValueID | |||
| SupProtCharc04CtlgPathUUID | SupProtCharc04CtlgPathUUID | |||
| SupProtCharc04ValueID | SupProtCharc04ValueID | |||
| SupProtCharc05CtlgPathUUID | SupProtCharc05CtlgPathUUID | |||
| SupProtCharc05ValueID | SupProtCharc05ValueID | |||
| _BaseUnit | _BaseUnit | |||
| _CompanyCode | _CompanyCode | |||
| _Customer | _Customer | |||
| _DistrChnl | _DistrChnl | |||
| _Divn | _Divn | |||
| _Plant | _Plant | |||
| _ProductGroupText | _ProductGroupText | |||
| _ProductText | _ProductText | |||
| _ProductTypeText | _ProductTypeText | |||
| _RqmtText | _RqmtText | |||
| _SalesDist | _SalesDist | |||
| _SalesOrgText | _SalesOrgText | |||
| _SupProtCharcTxt01 | _SupProtCharcTxt01 | |||
| _SupProtCharcTxt02 | _SupProtCharcTxt02 | |||
| _SupProtCharcTxt03 | _SupProtCharcTxt03 | |||
| _SupProtCharcTxt04 | _SupProtCharcTxt04 | |||
| _SupProtCharcTxt05 | _SupProtCharcTxt05 |
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_SupDmndAllDocSupProtQ.
-- 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_SupDmndAllDocSupProtQ AS
SELECT
SupProtTimeBucketUUID,
RequirementType,
RequestedDate,
ProductAvailabilityDate,
RequestedDeliveryDate,
StartDate,
EndDate,
SupProtProtectedQuantity,
SupProtConsumedQuantity,
ARunSupProtUnconsumedQty,
ARunTmpAssignedQuantityInBsUnt,
OpenDemandQuantity,
BaseUnit,
RequirementSegment,
CalendarYear,
CalendarMonth,
CalendarMonthName,
CalendarWeek,
CalendarDay,
Material,
MaterialGroup,
MaterialType,
CrossPlantConfigurableProduct,
Plant,
SalesOrganization,
DistributionChannel,
Division,
SalesDistrict,
Customer,
CompanyCode,
StorageLocation,
SupAssgmtAggrgQtyUnit,
SupplyProtectionName,
SupProtCharc01CtlgPathUUID,
SupProtCharc01ValueID,
SupProtCharc02CtlgPathUUID,
SupProtCharc02ValueID,
SupProtCharc03CtlgPathUUID,
SupProtCharc03ValueID,
SupProtCharc04CtlgPathUUID,
SupProtCharc04ValueID,
SupProtCharc05CtlgPathUUID,
SupProtCharc05ValueID
FROM I_SupDmndAllDocSupProtC AS Demand
LEFT OUTER JOIN I_ProductText AS _ProductText ON Material = _ProductText.Product AND _ProductText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_ProductGroupText AS _ProductGroupText ON MaterialGroup = _ProductGroupText.MaterialGroup AND _ProductGroupText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_ProductTypeText AS _ProductTypeText ON MaterialType = _ProductTypeText.ProductType AND _ProductTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrgText ON SalesOrganization = _SalesOrgText.SalesOrganization AND _SalesOrgText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_DistributionChannelText AS _DistrChnl ON DistributionChannel = _DistrChnl.DistributionChannel AND _DistrChnl.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_DivisionText AS _Divn ON Division = _Divn.Division AND _Divn.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SalesDistrictText AS _SalesDist ON SalesDistrict = _SalesDist.SalesDistrict AND _SalesDist.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_SupDmndAllDocRqmtTypeT AS _RqmtText ON RequirementType = _RqmtText.RequirementType AND _RqmtText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SupProtCharacteristicVH AS _SupProtCharcTxt01 ON SupProtCharc01CtlgPathUUID = _SupProtCharcTxt01.ProdAllocCharcCtlgPathUUID -- association [1..1]
LEFT OUTER JOIN I_SupProtCharacteristicVH AS _SupProtCharcTxt02 ON SupProtCharc02CtlgPathUUID = _SupProtCharcTxt02.ProdAllocCharcCtlgPathUUID -- association [1..1]
LEFT OUTER JOIN I_SupProtCharacteristicVH AS _SupProtCharcTxt03 ON SupProtCharc03CtlgPathUUID = _SupProtCharcTxt03.ProdAllocCharcCtlgPathUUID -- association [1..1]
LEFT OUTER JOIN I_SupProtCharacteristicVH AS _SupProtCharcTxt04 ON SupProtCharc04CtlgPathUUID = _SupProtCharcTxt04.ProdAllocCharcCtlgPathUUID -- association [1..1]
LEFT OUTER JOIN I_SupProtCharacteristicVH AS _SupProtCharcTxt05 ON SupProtCharc05CtlgPathUUID = _SupProtCharcTxt05.ProdAllocCharcCtlgPathUUID -- association [1..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