C_DelivProcFlowInbDeliv

DDL: C_DELIVPROCFLOWINBDELIV SQL: CDLVPROCFLIBDLV Type: view CONSUMPTION

Delivery Process Flow - Node Inbound Delivery

C_DelivProcFlowInbDeliv is a Consumption CDS View that provides data about "Delivery Process Flow - Node Inbound Delivery" in SAP S/4HANA. It reads from 2 data sources (C_PutawayStatusText, I_InboundDelivery) and exposes 10 fields with key field InboundDelivery.

Data Sources (2)

SourceAliasJoin Type
C_PutawayStatusText C_PutawayStatusText left_outer
I_InboundDelivery I_InboundDelivery from

Parameters (1)

NameTypeDefault
P_Language spras

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CDLVPROCFLIBDLV view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Delivery Process Flow - Node Inbound Delivery view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.representativeKey InboundDelivery view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY InboundDelivery InboundDelivery
ShippingPoint ShippingPoint
Language StatusText Language
SDDocumentCategory SDDocumentCategory
OverallGoodsMovementStatus OverallGoodsMovementStatus
OverallPutawayStatus I_InboundDelivery OverallPutawayStatus
DeliveryDocumentType
ProcessFlowNodeTitle
ProcessFlowNodeShortTitle
_Language StatusText _Language
@AbapCatalog.sqlViewName: 'CDLVPROCFLIBDLV'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK 
@EndUserText.label: 'Delivery Process Flow - Node Inbound Delivery'
@VDM.viewType: #CONSUMPTION
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.representativeKey: 'InboundDelivery'

define view C_DelivProcFlowInbDeliv 

with parameters @Consumption.hidden: true
                @Environment.systemField: #SYSTEM_LANGUAGE
                P_Language              :spras
                
as select from I_InboundDelivery 

    left outer join C_PutawayStatusText( P_Language: :P_Language ) as StatusText 
      on I_InboundDelivery.OverallPutawayStatus = StatusText.PutawayStatus    

{
    //Key

    key InboundDelivery,
    
    ShippingPoint,
      
    @Semantics.language: true
    @ObjectModel.foreignKey.association: '_Language'
    StatusText.Language,
  
    //Category

    SDDocumentCategory,

    //Status

    OverallGoodsMovementStatus,
    
   //Attribute 1   

    case when OverallGoodsMovementStatus = 'C'
      then cast(ActualGoodsMovementDate as wadat)
      else cast(PlannedGoodsIssueDate   as wadat)
    end as GoodsMovementDate,    

   //GoodsIssueDate obsolete

    case when OverallGoodsMovementStatus = 'C'
      then cast(ActualGoodsMovementDate as wadat)
      else cast(PlannedGoodsIssueDate   as wadat)
    end as GoodsIssueDate,    
    
    //Attribute 2

    I_InboundDelivery.OverallPutawayStatus,
    
    case when OverallGoodsMovementStatus = 'C'
      then cast('' as bezei)
      else StatusText.PutawayStatusName               
    end as OverallPutawayStatusName,
    
   I_InboundDelivery._DeliveryDocumentType.DeliveryDocumentType,
   I_InboundDelivery._DeliveryDocumentType._Text[1: Language =  :P_Language].DeliveryDocumentTypeName as ProcessFlowNodeTitle,
   
   I_InboundDelivery._DeliveryDocumentType._Text[1: Language =  :P_Language].DeliveryDocumentTypeName as ProcessFlowNodeShortTitle,
    
       
    //Associations

    StatusText._Language
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"C_PUTAWAYSTATUSTEXT",
"I_DELIVERYDOCUMENTTYPE",
"I_DELIVERYDOCUMENTTYPETEXT",
"I_INBOUNDDELIVERY"
],
"ASSOCIATED":
[
"I_LANGUAGE"
],
"BASE":
[
"C_PUTAWAYSTATUSTEXT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/