I_SupDmndAllDocProdnOrdCompBsc

DDL: I_SUPDMNDALLDOCPRODNORDCOMPBSC Type: view BASIC Package: VDM_ARUN_ANALYTICS_ALL

Basic View for Production Order Components

I_SupDmndAllDocProdnOrdCompBsc is a Basic CDS View that provides data about "Basic View for Production Order Components" in SAP S/4HANA. It reads from 3 data sources (afpo, I_SupDmndMaterialPlant, resb) and exposes 25 fields. Part of development package VDM_ARUN_ANALYTICS_ALL.

Data Sources (3)

SourceAliasJoin Type
afpo afpo inner
I_SupDmndMaterialPlant marc inner
resb resb from

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName ISUPDMNDADCMP3B view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
EndUserText.label Basic View for Production Order Components view

Fields (25)

KeyFieldSource TableSource FieldDescription
RequirementDocumentNumber resb rsnum
RequirementDocumentItem
RequirementType resb bdart
RequestedDate resb bdter
ProductAvailabilityDate resb bdter
RequestedDeliveryDate resb bdter
RequestedRqmtQtyInBaseUnit resb bdmng
ConfirmedRqmtQtyInBaseUnit resb bdmng
DeliveredQuantityInBaseUnit 0
WithdrawnQuantity resb enmng
OpenQuantity
BaseUnit resb meins
Material resb matnr
MaterialGroup I_SupDmndMaterialPlant MaterialGroup
Plant resb werks
OrderType resb bdart
CrossPlantConfigurableProduct I_SupDmndMaterialPlant CrossPlantConfigurableProduct
MaterialType I_SupDmndMaterialPlant MaterialType
RequirementSegment resb sgt_rcat
StorageLocation resb lgort
SalesOrder resb kdauf
SalesOrderItem resb kdpos
SegmentationStrategy I_SupDmndMaterialPlant SegmentationStrategy
SegmentationStrategyScope I_SupDmndMaterialPlant SegmentationStrategyScope
ProdAvailabilityCheckGroup I_SupDmndMaterialPlant ProdAvailabilityCheckGroup
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
  viewType: #BASIC,
  lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl: {
  authorizationCheck: #NOT_REQUIRED,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@AbapCatalog: {
  sqlViewName: 'ISUPDMNDADCMP3B',
  compiler.compareFilter: true
 }
@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #X,
     sizeCategory:   #XXL
   }
}
@EndUserText.label: 'Basic View for Production Order Components'
define view I_SupDmndAllDocProdnOrdCompBsc
  as select from resb                   as resb
    inner join   I_SupDmndMaterialPlant as marc on  resb.matnr = marc.Material
                                                and resb.werks = marc.Plant
    inner join   afpo                   as afpo on resb.aufnr = afpo.aufnr
{
  resb.rsnum              as RequirementDocumentNumber,
  lpad(resb.rspos,6,'0')  as RequirementDocumentItem,
  //  'AR'                                              as RequirementType,

  //  resb.rsart                                        as RecordType,

  resb.bdart              as RequirementType,
  resb.bdter              as RequestedDate,
  resb.bdter              as ProductAvailabilityDate,
  resb.bdter              as RequestedDeliveryDate,
  resb.bdmng              as RequestedRqmtQtyInBaseUnit, //OrderedQuantity

  resb.bdmng              as ConfirmedRqmtQtyInBaseUnit,
  0                       as DeliveredQuantityInBaseUnit,
  resb.enmng              as WithdrawnQuantity, //RequestedRqmtQtyInBaseUnit

  resb.bdmng - resb.enmng as OpenQuantity,
  resb.meins              as BaseUnit,
  resb.matnr              as Material,
  marc.MaterialGroup,
  resb.werks              as Plant,
  resb.bdart              as OrderType,
  marc.CrossPlantConfigurableProduct,
  marc.MaterialType,
  resb.sgt_rcat           as RequirementSegment,
  resb.lgort              as StorageLocation,
  resb.kdauf              as SalesOrder,
  resb.kdpos              as SalesOrderItem,
  marc.SegmentationStrategy,
  marc.SegmentationStrategyScope,
  marc.ProdAvailabilityCheckGroup
}
where
      resb.xloek =  '' -- deleted item should not be selected
  and resb.kzkup =  '' -- coproduct should not be selected
  and resb.kzear =  '' -- final issue for this reservation
  and resb.aufnr <> ''