C_OutboundDeliveryList

DDL: C_OUTBOUNDDELIVERYLIST SQL: COUTBDELIVLIST Type: view CONSUMPTION

C_OutboundDeliveryList is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_DeliveryDocument) and exposes 50 fields with key field DeliveryDocument. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_DeliveryDocument DeliveryDocument from

Associations (6)

CardinalityTargetAliasCondition
[0..*] C_DeliveryShipToPartyVH _DlvShipToPartyVH $projection.ShipToParty = _DlvShipToPartyVH.Customer
[0..1] I_DeliveryPriority _DeliveryPriority $projection.DeliveryPriority = _DeliveryPriority.DeliveryPriority
[0..1] C_ShippingPointVH _ShippingPointVH $projection.ShippingPoint = _ShippingPointVH.ShippingPoint
[0..1] C_OutboundDeliveryTypeVH _DeliveryTypeVH $projection.DeliveryDocumentType = _DeliveryTypeVH.DeliveryDocumentType
[0..1] I_User _User $projection.CreatedByUser = _User.UserID
[0..*] C_OutbDelivFirstFreightOrd _FreightOrder $projection.DeliveryDocument = _FreightOrder.DeliveryDocument

Annotations (20)

NameValueLevelField
AbapCatalog.sqlViewName COUTBDELIVLIST view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Metadata.allowExtensions true view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey DeliveryDocument view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.updateEnabled true view
UI.headerInfo.typeName Manage Outbound Delivery view
UI.headerInfo.typeNamePlural Manage Outbound Deliveries view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value DeliveryDocument view
UI.headerInfo.title.label Outbound Delivery view
UI.headerInfo.description.value PickingDate view

Fields (50)

KeyFieldSource TableSource FieldDescription
KEY DeliveryDocument DeliveryDocument Delivery Document
EU_DeliveryARCStatus EU_DeliveryARCStatus Excise Tax ARC Status
PickingDate PickingDate
OverallPickingStatus OverallPickingStatus Picking Status
int1asPickingStatusCriticality
OverallPickingConfStatus OverallPickingConfStatus Confirmation Status
int1asConfirmationStatusCriticality
FreightOrder _FreightOrder FreightOrder
OverallGoodsMovementStatus OverallGoodsMovementStatus GI Status
int1asGoodsMovementStatusCriticality
ShipToParty ShipToParty
CustomerName
ShippingPoint ShippingPoint
ShippingPointName
ActualGoodsMovementDate ActualGoodsMovementDate Actual Goods Movement Date
PlannedGoodsIssueDate
LoadingDate LoadingDate
CreatedByUser CreatedByUser
UserDescription _User UserDescription
DeliveryDocumentType DeliveryDocumentType
DeliveryTypeName
CreationDate CreationDate
SDDocumentCategory SDDocumentCategory
OverallChmlCmplncStatus OverallChmlCmplncStatus Product Marketability Status
int1asOvrlChmlCmplncStsCriticality
OverallDangerousGoodsStatus OverallDangerousGoodsStatus Dangerous Goods Status
int1asOvrlDngrsGdsStsCriticality
OverallSafetyDataSheetStatus OverallSafetyDataSheetStatus Safety Data Sheet Status
int1asOvrlSftyDataSheetStsCritlty
ReadyForWarehouseExecStatus ReadyForWarehouseExecStatus Warehouse Execution Status
DelivAdvncdShipgRcvgRlvnce DelivAdvncdShipgRcvgRlvnce Adv. Ship. & Rec. Relevance
ProposedDeliveryRoute ProposedDeliveryRoute
_DeliveryPriority _DeliveryPriority
_ShipToParty _ShipToParty
_ShippingPoint _ShippingPoint
_LogProcgStsPick _LogProcgStsPick
_LogProcgStsConf _LogProcgStsConf
_LogProcgStsMove _LogProcgStsMove
_DlvShipToPartyVH _DlvShipToPartyVH
_DeliveryTypeVH _DeliveryTypeVH
_ShippingPointVH _ShippingPointVH
_OverallChmlCmplncStatus _OverallChmlCmplncStatus
_OverallDangerousGoodsStatus _OverallDangerousGoodsStatus
_OvrlSftyDataSheetSts _OvrlSftyDataSheetSts
_User _User
_ExciseTaxStatus _ExciseTaxStatus
_WarehouseExecutionStatus _WarehouseExecutionStatus
_DelivAdvncdShipgRcvgRlvnce _DelivAdvncdShipgRcvgRlvnce
_ProposedDeliveryRoute _ProposedDeliveryRoute
_FreightOrder _FreightOrder
@AbapCatalog.sqlViewName: 'COUTBDELIVLIST'
@ClientHandling.algorithm:#SESSION_VARIABLE
@VDM.viewType: #CONSUMPTION
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck:#CHECK
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED

@Metadata.allowExtensions: true -- UI Annotations in the Metadata Extensions file
@AbapCatalog.viewEnhancementCategory: [#PROJECTION_LIST, #UNION] -- Enabled creating extension for UNION view

@ObjectModel: {
   compositionRoot: true,
   semanticKey: ['DeliveryDocument'],
   representativeKey: 'DeliveryDocument',
   usageType.dataClass: #MIXED,
   usageType.serviceQuality: #D,
   usageType.sizeCategory: #XL,
   updateEnabled: true
}

@UI.headerInfo: {
   typeName:       'Manage Outbound Delivery',
   typeNamePlural: 'Manage Outbound Deliveries', -- Object List Table Title
   title: {
     type:   #STANDARD,
     value:  'DeliveryDocument',
     label: 'Outbound Delivery'
   },
   description: {
      value: 'PickingDate'
   }
}

@UI.presentationVariant:{
    requestAtLeast: ['OverallPickingStatus', 'OverallPickingConfStatus', 'OverallGoodsMovementStatus',
                     'ActualGoodsMovementDate', 'SDDocumentCategory', 'OverallChmlCmplncStatus',
                     'OverallDangerousGoodsStatus', 'OverallSafetyDataSheetStatus']
}
define view C_OutboundDeliveryList
  as select from I_DeliveryDocument as DeliveryDocument
  association        to I_LogProcgSts              as _LogProcgStsPick  on $projection.OverallPickingStatus = _LogProcgStsPick.ProcessingStatus
  association        to I_LogProcgSts              as _LogProcgStsConf  on $projection.OverallPickingConfStatus = _LogProcgStsConf.ProcessingStatus
  association        to I_LogProcgSts              as _LogProcgStsMove  on $projection.OverallGoodsMovementStatus = _LogProcgStsMove.ProcessingStatus
  association [0..*] to C_DeliveryShipToPartyVH    as _DlvShipToPartyVH on $projection.ShipToParty = _DlvShipToPartyVH.Customer
  association [0..1] to I_DeliveryPriority         as _DeliveryPriority on $projection.DeliveryPriority = _DeliveryPriority.DeliveryPriority
  association [0..1] to C_ShippingPointVH          as _ShippingPointVH  on $projection.ShippingPoint = _ShippingPointVH.ShippingPoint
  association [0..1] to C_OutboundDeliveryTypeVH   as _DeliveryTypeVH   on $projection.DeliveryDocumentType = _DeliveryTypeVH.DeliveryDocumentType
  association [0..1] to I_User                     as _User             on $projection.CreatedByUser = _User.UserID
  association [0..*] to C_OutbDelivFirstFreightOrd as _FreightOrder     on $projection.DeliveryDocument = _FreightOrder.DeliveryDocument
{


      @EndUserText.label: 'Delivery Document'
      @Consumption.semanticObject: #(SemanticObject)
      key    DeliveryDocument                                                                                 as DeliveryDocument,
      
      @UI.hidden: true
      case SDDocumentCategory
        when 'J' then 'OutboundDelivery'
        when 'T' then 'ReturnsDelivery'
      end                                                                                                      as SemanticObject, 

      @EndUserText.label: 'Excise Tax ARC Status'
      @ObjectModel.foreignKey.association: '_ExciseTaxStatus'
      EU_DeliveryARCStatus,

      @ObjectModel.foreignKey.association: '_DeliveryPriority'
      case
      when DeliveryPriority = '00' then ' '
      else DeliveryPriority
      end                                                                                                 as DeliveryPriority,

      PickingDate,

      @EndUserText.label: 'Picking Status'
      @ObjectModel.foreignKey.association:'_LogProcgStsPick'
      OverallPickingStatus,
      
      @UI.hidden
      cast(
        case OverallPickingStatus
         when '' then 0
         when 'A' then 1
         when 'B' then 2
         when 'C' then 3
         else 0
        end as abap.int1
      )                                                                                                   as PickingStatusCriticality,

      @EndUserText.label: 'Confirmation Status'
      @ObjectModel.foreignKey.association:'_LogProcgStsConf'
      OverallPickingConfStatus,

      @UI.hidden
      cast(
        case OverallPickingConfStatus
         when '' then 0
         when 'A' then 1
         when 'B' then 2
         when 'C' then 3
         else 0
        end as abap.int1
      )                                                                                                   as ConfirmationStatusCriticality,

      @EndUserText.quickInfo: 'First Freight Order of Delivery'
      @ObjectModel.text.element: ['FreightOrder']
      @Consumption.valueHelpDefinition: [{entity: {name: 'C_OutbDelivFreightOrdVH',element: 'FreightOrder'} }]
      _FreightOrder.FreightOrder                                                                          as FreightOrder,

      @EndUserText.label: 'GI Status'
      @ObjectModel.foreignKey.association:'_LogProcgStsMove'
      OverallGoodsMovementStatus,

      @UI.hidden
      cast(
        case OverallGoodsMovementStatus
         when '' then 0
         when 'A' then 1
         when 'B' then 2
         when 'C' then 3
         else 0
        end as abap.int1
       )                                                                                                  as GoodsMovementStatusCriticality,

      @Consumption.valueHelpDefinition: [ { entity: { name: 'D_CustomerCVH', element: 'Customer' } } ]
      @ObjectModel.text.element: ['CustomerName']
      @UI.textArrangement: #TEXT_FIRST
      @Consumption.semanticObject: 'Customer'
      ShipToParty,

      @UI.hidden: true
      _Partner[1:PartnerFunction='WE']._DfltAddrRprstn.AddresseeFullName                                  as CustomerName,

      @UI.textArrangement: #TEXT_FIRST
      @Consumption.valueHelpDefinition: [{entity: {name: 'C_ShippingPointVH',element: 'ShippingPoint'} }]
      @ObjectModel.text.element: ['ShippingPointName']
      ShippingPoint,

      @UI.hidden: true
      cast(_ShippingPoint._Text[1: Language=$session.system_language].ShippingPointName as bezei30)       as ShippingPointName,

      @EndUserText.label: 'Actual Goods Movement Date'
      ActualGoodsMovementDate,

      cast (PlannedGoodsIssueDate as wadak_plan)                                                          as PlannedGoodsIssueDate,

      LoadingDate,

      @Consumption.valueHelpDefinition: [ { entity: { name: 'C_OutbDelivListCreatedByVH', element: 'UserID' } } ]
      @ObjectModel.text.element:  [ 'UserDescription' ]
      CreatedByUser,

      @UI.hidden: true
      @Semantics.text: true
      _User.UserDescription                                                                               as UserDescription,

      @Consumption.valueHelpDefinition: [{entity: {name: 'C_OutboundDeliveryTypeVH',element: 'DeliveryDocumentType'} }]
      @UI.textArrangement: #TEXT_FIRST
      @ObjectModel.text.element: ['DeliveryTypeName']
      DeliveryDocumentType,

      @UI.hidden: true
      cast(_DeliveryTypeVH._Text[1: Language=$session.system_language].DeliveryDocumentTypeName as vtext) as DeliveryTypeName,
      
      @Consumption.filter.selectionType:#INTERVAL
      CreationDate,

      @UI.hidden: true
      SDDocumentCategory                                                                                 as SDDocumentCategory,

      // Overall Marketability Check Status

      @ObjectModel.foreignKey.association:'_OverallChmlCmplncStatus'
      @EndUserText.label: 'Product Marketability Status'
      OverallChmlCmplncStatus,

      @UI.hidden
      cast(
        case OverallChmlCmplncStatus
          when '' then 0
          when 'A' then 3
          when 'C' then 1
          when 'D' then 1
          else 0
        end as abap.int1
      )                                                                                                   as OvrlChmlCmplncStsCriticality,

      // Overall Dangerous Goods Status

      @ObjectModel.foreignKey.association:'_OverallDangerousGoodsStatus'
      @EndUserText.label: 'Dangerous Goods Status'
      OverallDangerousGoodsStatus,

      @UI.hidden
      cast(
        case OverallDangerousGoodsStatus
          when '' then 0
          when 'A' then 3
          when 'B' then 2
          when 'D' then 1
          else 0
        end as abap.int1
      )                                                                                                   as OvrlDngrsGdsStsCriticality,

      // Overall Safety Data Sheet Status

      @ObjectModel.foreignKey.association:'_OvrlSftyDataSheetSts'
      @EndUserText.label: 'Safety Data Sheet Status'
      OverallSafetyDataSheetStatus,

      @UI.hidden
      cast(
        case OverallSafetyDataSheetStatus
          when '' then 0
          when 'A' then 3
          when 'B' then 2
          when 'D' then 1
          else 0
        end as abap.int1
      )                                                                                                   as OvrlSftyDataSheetStsCritlty,

      @EndUserText.label: 'Warehouse Execution Status'
      @Feature: 'LE_SHP_ASR_SHOW_FIELDS'
      @ObjectModel.foreignKey.association: '_WarehouseExecutionStatus'
      ReadyForWarehouseExecStatus,

      @EndUserText.label: 'Adv. Ship. & Rec. Relevance'
      @Feature: 'LE_SHP_ASR_SHOW_FIELDS'
      @ObjectModel.foreignKey.association: '_DelivAdvncdShipgRcvgRlvnce'
      DelivAdvncdShipgRcvgRlvnce,

//      @ObjectModel.foreignKey.association: '_ProposedDeliveryRoute'

      @Consumption.valueHelpDefinition: [ { entity: { name: 'C_OutbDelivListPrpsdDlvRouteVH', element: 'Route' } } ]
      ProposedDeliveryRoute,

      //Associations

      @Consumption.filter.hidden: true
      _DeliveryPriority,
      @Consumption.filter.hidden: true
      _ShipToParty,
      @Consumption.filter.hidden: true
      _ShippingPoint,
      @Consumption.filter.hidden: true
      _LogProcgStsPick,
      @Consumption.filter.hidden: true
      _LogProcgStsConf,
      @Consumption.filter.hidden: true
      _LogProcgStsMove,
      @Consumption.filter.hidden: true
      _DlvShipToPartyVH,
      @Consumption.filter.hidden: true
      _DeliveryTypeVH,
      @Consumption.filter.hidden: true
      _ShippingPointVH,
      @Consumption.filter.hidden: true
      _OverallChmlCmplncStatus,
      @Consumption.filter.hidden: true
      _OverallDangerousGoodsStatus,
      @Consumption.filter.hidden: true
      _OvrlSftyDataSheetSts,
      @Consumption.filter.hidden: true
      _User,
      @Consumption.filter.hidden: true
      _ExciseTaxStatus,
      @Consumption.filter.hidden: true
      _WarehouseExecutionStatus,
      @Consumption.filter.hidden: true
      _DelivAdvncdShipgRcvgRlvnce,
      @Consumption.filter.hidden: true
      _ProposedDeliveryRoute,
      @Consumption.filter.hidden: true
      _FreightOrder


} where SDDocumentCategory = 'J' or SDDocumentCategory = 'T'



/*+[internal] {
"BASEINFO":
{
"FROM":
[
"C_OUTBDELIVFIRSTFREIGHTORD",
"C_OUTBOUNDDELIVERYTYPEVH",
"I_ADDRESS_2",
"I_DELIVERYDOCUMENT",
"I_DELIVERYDOCUMENTTYPETEXT",
"I_SDDOCUMENTPARTNER",
"I_SHIPPINGPOINT",
"I_SHIPPINGPOINTTEXT",
"I_USER"
],
"ASSOCIATED":
[
"C_DELIVERYSHIPTOPARTYVH",
"C_OUTBDELIVFIRSTFREIGHTORD",
"C_OUTBOUNDDELIVERYTYPEVH",
"C_SHIPPINGPOINTVH",
"I_ADVSHIPRECEIVERLVNCE",
"I_CUSTOMER",
"I_DELIVERYPRIORITY",
"I_EXCISETAXSTATUS",
"I_LOGPROCGSTS",
"I_OVERALLDELIVCHMLCMPLNCSTS",
"I_OVRLDELIVDNGRSGDSSTS",
"I_OVRLDELIVSFTYDATASHTSTS",
"I_ROUTE",
"I_SHIPPINGPOINT",
"I_USER",
"I_WAREHOUSEEXECUTIONSTATUS"
],
"BASE":
[
"I_DELIVERYDOCUMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/