I_SupDmndAllDocPurReqnCompC
Cube View for Sub Contracting Purchase Requisition Component
I_SupDmndAllDocPurReqnCompC is a Composite CDS View (Cube) that provides data about "Cube View for Sub Contracting Purchase Requisition Component" in SAP S/4HANA. It reads from 6 data sources and exposes 44 fields with key fields RequirementDocumentNumber, RequirementDocumentItem, RequestedDate, ProductAvailabilityDate, RequirementType. It has 12 associations to related views.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| I_ARunTimeUnitText | ARunTimeUnitText | left_outer |
| P_ARunAssgmtDmnd | Assgmt | left_outer |
| I_ARunCalendarDate | CalDate | left_outer |
| I_CalendarMonthName | CalMonth | left_outer |
| I_SupDmndAllDocPurReqnComp | Demand | from |
| I_SupDmndOvwPlant | Plant | inner |
Associations (12)
| 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_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [0..1] | I_SupDmndAllDocRqmtTypeT | _RqmtText | $projection.RequirementType = _RqmtText.RequirementType and _RqmtText.Language = $session.system_language |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AbapCatalog.sqlViewName | ISUPDMNDADCMP2C | 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 | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Cube View for Sub Contracting Purchase Requisition Component | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RequirementDocumentNumber | I_SupDmndAllDocPurReqnComp | RequirementDocumentNumber | Requirement Document Number |
| KEY | RequirementDocumentItem | I_SupDmndAllDocPurReqnComp | RequirementDocumentItem | Requirement Document Item |
| KEY | RequestedDate | I_SupDmndAllDocPurReqnComp | RequestedDate | Requested Date |
| KEY | ProductAvailabilityDate | I_SupDmndAllDocPurReqnComp | ProductAvailabilityDate | Delivery Date |
| KEY | RequirementType | I_SupDmndAllDocPurReqnComp | RequirementType | Requirement Type |
| RequestedDeliveryDate | I_SupDmndAllDocPurReqnComp | RequestedDeliveryDate | Requested Delivery Date | |
| RequestedRqmtQtyInBaseUnit | RequestedRqmtQtyInBaseUnit | Order Quantity | ||
| ConfirmedRqmtQtyInBaseUnit | ConfirmedRqmtQtyInBaseUnit | Confirmed Quantity | ||
| DeliveredQuantityInBaseUnit | DeliveredQuantityInBaseUnit | Delivered Quantity | ||
| AssignedQuantityInBaseUnit | P_ARunAssgmtDmnd | AssignedQuantityInBaseUnit | Total Assigned Quantity | |
| NormalAssignedQuantityInBsUnt | P_ARunAssgmtDmnd | NormalAssignedQuantityInBsUnt | Normal Assigned Quantity | |
| PreviewAssignedQuantityInBsUnt | P_ARunAssgmtDmnd | PreviewAssignedQuantityInBsUnt | Preview Assigned Quantity | |
| ARunTmpAssignedQuantityInBsUnt | P_ARunAssgmtDmnd | ARunTmpAssignedQuantityInBsUnt | Temporary Assigned Quantity | |
| BaseUnit | I_SupDmndAllDocPurReqnComp | BaseUnit | ||
| CalendarYear | I_ARunCalendarDate | CalendarYear | Year | |
| CalendarMonth | I_ARunCalendarDate | CalendarMonth | Month | |
| CalendarMonthName | I_CalendarMonthName | CalendarMonthName | Month | |
| CalendarWeek | Week | |||
| CalendarDay | I_ARunCalendarDate | CalendarDay | Day | |
| Material | I_SupDmndAllDocPurReqnComp | Material | ||
| MaterialGroup | I_SupDmndAllDocPurReqnComp | MaterialGroup | ||
| MaterialType | MaterialType | Product Type | ||
| CrossPlantConfigurableProduct | I_SupDmndAllDocPurReqnComp | CrossPlantConfigurableProduct | Generic Article | |
| Plant | I_SupDmndAllDocPurReqnComp | Plant | ||
| SalesOrganization | I_SupDmndOvwPlant | SalesOrganization | ||
| DistributionChannel | I_SupDmndOvwPlant | DistributionChannel | ||
| Division | I_SupDmndOvwPlant | Division | ||
| SalesDistrict | I_SupDmndOvwPlant | SalesDistrict | ||
| Customer | I_SupDmndOvwPlant | PlantCustomer | ||
| CompanyCode | ||||
| StorageLocation | I_SupDmndAllDocPurReqnComp | StorageLocation | ||
| SupAssgmtAggrgQtyUnit | ||||
| _ProductText | _ProductText | |||
| _ProductGroupText | _ProductGroupText | |||
| _ProductTypeText | _ProductTypeText | |||
| _SalesOrgText | _SalesOrgText | |||
| _DistrChnl | _DistrChnl | |||
| _Divn | _Divn | |||
| _SalesDist | _SalesDist | |||
| _Plant | _Plant | |||
| _CompanyCode | _CompanyCode | |||
| _Customer | _Customer | |||
| _BaseUnit | _BaseUnit | |||
| _RqmtText | _RqmtText |
@ClientHandling.algorithm: #SESSION_VARIABLE
@Analytics: {
dataCategory: #CUBE,
internalName:#LOCAL
}
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #REQUIRED
}
@AbapCatalog: {
sqlViewName: 'ISUPDMNDADCMP2C',
compiler.compareFilter: true,
preserveKey:true
}
@ObjectModel: {
usageType: {
dataClass: #MIXED,
serviceQuality: #D,
sizeCategory: #XXL
}
}
@Metadata:{
allowExtensions: true,
ignorePropagatedAnnotations: true
}
@EndUserText.label: 'Cube View for Sub Contracting Purchase Requisition Component'
define view I_SupDmndAllDocPurReqnCompC
as select from I_SupDmndAllDocPurReqnComp as Demand
inner join I_SupDmndOvwPlant as Plant on Demand.Plant = Plant.Plant
left outer join P_ARunAssgmtDmnd as Assgmt on Demand.RequirementDocumentNumber = Assgmt.RequirementDocumentNumber
and Demand.RequirementDocumentItem = Assgmt.RequirementDocumentItem
and Demand.RequestedDate = Assgmt.RequestedDate
and Demand.ProductAvailabilityDate = Assgmt.ProductAvailabilityDate
and Demand.RequirementType = Assgmt.RequirementType
and Demand.Material = Assgmt.Material
and Demand.Plant = Assgmt.Plant
left outer join I_ARunCalendarDate as CalDate on Demand.ProductAvailabilityDate = CalDate.CalendarDate
left outer join I_CalendarMonthName as CalMonth on CalDate.CalendarMonth = CalMonth.CalendarMonth
left outer join I_ARunTimeUnitText as ARunTimeUnitText on ARunTimeUnitText.ARunDisplayTimeUnit = '02'
and ARunTimeUnitText.Language = $session.system_language
association [0..1] to I_ProductText as _ProductText on $projection.Material = _ProductText.Product
and _ProductText.Language = $session.system_language
association [0..1] to I_ProductGroupText as _ProductGroupText on $projection.MaterialGroup = _ProductGroupText.MaterialGroup
and _ProductGroupText.Language = $session.system_language
//Should it be replaced with I_MaterialGroupText as ProductGroup has status Deprecated?
association [0..1] to I_ProductTypeText as _ProductTypeText on $projection.MaterialType = _ProductTypeText.ProductType
and _ProductTypeText.Language = $session.system_language
association [0..1] to I_SalesOrganizationText as _SalesOrgText on $projection.SalesOrganization = _SalesOrgText.SalesOrganization
and _SalesOrgText.Language = $session.system_language
association [0..1] to I_DistributionChannelText as _DistrChnl on $projection.DistributionChannel = _DistrChnl.DistributionChannel
and _DistrChnl.Language = $session.system_language
association [0..1] to I_DivisionText as _Divn on $projection.Division = _Divn.Division
and _Divn.Language = $session.system_language
association [0..1] to I_SalesDistrictText as _SalesDist on $projection.SalesDistrict = _SalesDist.SalesDistrict
and _SalesDist.Language = $session.system_language
association [0..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [0..1] to I_Customer as _Customer on $projection.Customer = _Customer.Customer
association [0..1] to I_UnitOfMeasure as _BaseUnit on $projection.BaseUnit = _BaseUnit.UnitOfMeasure
association [0..1] to I_SupDmndAllDocRqmtTypeT as _RqmtText on $projection.RequirementType = _RqmtText.RequirementType
and _RqmtText.Language = $session.system_language
{
@EndUserText.label: 'Requirement Document Number'
key Demand.RequirementDocumentNumber,
@EndUserText.label: 'Requirement Document Item'
key Demand.RequirementDocumentItem,
@EndUserText.label: 'Requested Date'
key Demand.RequestedDate,
@EndUserText.label: 'Delivery Date'
key Demand.ProductAvailabilityDate,
@ObjectModel.text.association: '_RqmtText'
@EndUserText.label: 'Requirement Type'
key Demand.RequirementType,
@EndUserText.label: 'Requested Delivery Date'
Demand.RequestedDeliveryDate,
@EndUserText.label: 'Order Quantity'
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
RequestedRqmtQtyInBaseUnit,
@EndUserText.label: 'Confirmed Quantity'
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
ConfirmedRqmtQtyInBaseUnit,
@EndUserText.label: 'Delivered Quantity'
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
DeliveredQuantityInBaseUnit,
@EndUserText.label: 'Open Demand Quantity'
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
( Demand.OpenDemandQuantity
- coalesce( Assgmt.AssignedQuantityInBaseUnit , 0 )
) as OpenDemandQuantity,
@EndUserText.label: 'Total Assigned Quantity'
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
Assgmt.AssignedQuantityInBaseUnit,
@EndUserText.label: 'Normal Assigned Quantity'
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
Assgmt.NormalAssignedQuantityInBsUnt,
@EndUserText.label: 'Preview Assigned Quantity'
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
Assgmt.PreviewAssignedQuantityInBsUnt,
@EndUserText.label: 'Temporary Assigned Quantity'
@DefaultAggregation: #SUM
@Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
Assgmt.ARunTmpAssignedQuantityInBsUnt,
@ObjectModel.foreignKey.association: '_BaseUnit'
Demand.BaseUnit,
@EndUserText.label: 'Year'
@Semantics.calendar.year: true
CalDate.CalendarYear,
@EndUserText.label: 'Month'
@Semantics.calendar.month: true
@ObjectModel.text.element: 'CalendarMonthName'
CalDate.CalendarMonth,
@Semantics.text: true
@EndUserText.label: 'Month'
CalMonth.CalendarMonthName,
@EndUserText.label: 'Week'
@Semantics.calendar.week: true
concat_with_space( ARunDisplayTimeUnitText, CalDate.CalendarWeek, 1) as CalendarWeek,
@EndUserText.label: 'Day'
@Semantics.calendar.dayOfMonth: true
CalDate.CalendarDay,
@ObjectModel.text.association: '_ProductText'
Demand.Material,
@ObjectModel.text.association: '_ProductGroupText'
Demand.MaterialGroup,
@ObjectModel.text.association: '_ProductTypeText'
@EndUserText.label: 'Product Type'
MaterialType,
@EndUserText.label: 'Generic Article'
Demand.CrossPlantConfigurableProduct,
@ObjectModel.text.association: '_Plant'
Demand.Plant,
@ObjectModel.text.association: '_SalesOrgText'
Plant.SalesOrganization,
@ObjectModel.text.association: '_DistrChnl'
Plant.DistributionChannel,
@ObjectModel.text.association: '_Divn'
Plant.Division,
@ObjectModel.text.association: '_SalesDist'
Plant.SalesDistrict,
@ObjectModel.text.association: '_Customer'
Plant.PlantCustomer as Customer,
@ObjectModel.text.association: '_CompanyCode'
coalesce( Demand.CompanyCode, coalesce( Plant.CompanyCode, '') ) as CompanyCode,
Demand.StorageLocation,
@Semantics.unitOfMeasure: true
cast( ' ' as meins ) as SupAssgmtAggrgQtyUnit,
//Associations
_ProductText,
_ProductGroupText,
_ProductTypeText,
_SalesOrgText,
_DistrChnl,
_Divn,
_SalesDist,
_Plant,
_CompanyCode,
_Customer,
_BaseUnit,
@ObjectModel.association.boundFields.dataMatchesSourceAndTargetTypes: true
_RqmtText
}
where
Demand.RequestedRqmtQtyInBaseUnit > 0
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ARUNCALENDARDATE",
"I_ARUNTIMEUNITTEXT",
"I_CALENDARMONTHNAME",
"I_SUPDMNDALLDOCPURREQNCOMP",
"I_SUPDMNDOVWPLANT",
"P_ARUNASSGMTDMND"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_CUSTOMER",
"I_DISTRIBUTIONCHANNELTEXT",
"I_DIVISIONTEXT",
"I_PLANT",
"I_PRODUCTGROUPTEXT",
"I_PRODUCTTEXT",
"I_PRODUCTTYPETEXT",
"I_SALESDISTRICTTEXT",
"I_SALESORGANIZATIONTEXT",
"I_SUPDMNDALLDOCRQMTTYPET",
"I_UNITOFMEASURE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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