I_DeliveryStatusValuation

DDL: I_DELIVERYSTATUSVALUATION Type: view_entity COMPOSITE Package: ODATA_LE_SHP_OD_LIST

Valuation of Document Status

I_DeliveryStatusValuation is a Composite CDS View that provides data about "Valuation of Document Status" in SAP S/4HANA. It reads from 1 data source (I_DeliveryDocument) and exposes 2 fields with key field DeliveryDocument. Part of development package ODATA_LE_SHP_OD_LIST.

Data Sources (1)

SourceAliasJoin Type
I_DeliveryDocument I_DeliveryDocument from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Valuation of Document Status view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
ObjectModel.representativeKey DeliveryDocument view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY DeliveryDocument DeliveryDocument
ShippingPoint ShippingPoint
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@EndUserText.label: 'Valuation of Document Status'
@Metadata.ignorePropagatedAnnotations: true
@VDM.viewType: #COMPOSITE
@ObjectModel:{
  representativeKey: 'DeliveryDocument',
  usageType:{
    serviceQuality: #X,
    sizeCategory: #S,
    dataClass: #MIXED
    }
}
define view entity I_DeliveryStatusValuation as select from I_DeliveryDocument
{
  key DeliveryDocument,
  
  ShippingPoint,
  
  cast ( case
    //ready for picking

    when ( OverallPickingStatus = 'A'  or OverallPickingStatus = 'B' ) 
      then '1'
      
    //ready for Confirmation

    when ( 
           ( OverallPickingStatus = '' or OverallPickingStatus = 'C' ) and 
           ( OverallPickingConfStatus = 'A' or OverallPickingConfStatus = 'B' ) 
      ) then '2'
      
    //ready for Goods Issue

    when ( 
           ( OverallGoodsMovementStatus = 'A' or OverallGoodsMovementStatus = 'B' ) and 
           ( OverallPickingStatus = '' or OverallPickingStatus = 'C' ) and 
           ( OverallPickingConfStatus = '' or OverallPickingConfStatus = 'C' ) and 
           ( OverallChmlCmplncStatus = '' or OverallChmlCmplncStatus = 'A' ) and 
           ( OverallDangerousGoodsStatus = '' or OverallDangerousGoodsStatus = 'A' or OverallDangerousGoodsStatus = 'B' ) and 
           ( OverallSafetyDataSheetStatus = '' or OverallSafetyDataSheetStatus = 'A' or OverallSafetyDataSheetStatus = 'B' )
      ) then '3'
      
    //ready for Reverse GI

    when  OverallGoodsMovementStatus = 'C' 
        then '4'
  end as deliverystatusvaluation ) as DeliveryStatusValuation
}