P_SupDmndAllDocDelivComp

DDL: P_SUPDMNDALLDOCDELIVCOMP Type: view BASIC

P_SupDmndAllDocDelivComp is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (lips, I_SupDmndMaterialPlant, vbbe) and exposes 3 fields.

Data Sources (3)

SourceAliasJoin Type
lips lips inner
I_SupDmndMaterialPlant marc inner
vbbe vbbe from

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PSUPDMNDADDCOMP view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view

Fields (3)

KeyFieldSource TableSource FieldDescription
Reservation lips fsh_rsnum
ReservationItem lips fsh_rspos
DeliveredQuantity
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
  viewType: #BASIC
}
@VDM.private: true
@AccessControl: {
  authorizationCheck: #NOT_REQUIRED,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
@AbapCatalog: {
  sqlViewName: 'PSUPDMNDADDCOMP',
  compiler.compareFilter: true
 }
@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #B,
     sizeCategory:   #XXL
   }
}
//@EndUserText.label: 'View for Deliveries for Sub Contracting PO Components'

define view P_SupDmndAllDocDelivComp
  as select from vbbe                   as vbbe
    inner join   lips                   as lips on  vbbe.vbeln = lips.vbeln
                                                and vbbe.posnr = lips.posnr
    inner join   I_SupDmndMaterialPlant as marc on  vbbe.matnr = marc.Material
                                                and vbbe.werks = marc.Plant
{
  lips.fsh_rsnum  as Reservation,
  lips.fsh_rspos  as ReservationItem,
  sum(vbbe.omeng) as DeliveredQuantity
}
where
       vbbe.vbtyp = 'J' -- Delivery
  and  vbbe.omeng > 0
  and  not(
     fsh_rsnum    = '0000000000'
     or fsh_rspos = '0000'
   )
group by
  fsh_rsnum,
  fsh_rspos
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SUPDMNDMATERIALPLANT",
"LIPS",
"VBBE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/