I_CustomerReturnDelivery

DDL: I_CUSTOMERRETURNDELIVERY SQL: ILECUSTRETDELIV Type: view BASIC Package: VDM_LE_SHP_RET_COMMON

Customer Returns Delivery Document

I_CustomerReturnDelivery is a Basic CDS View (Dimension) that provides data about "Customer Returns Delivery Document" in SAP S/4HANA. It reads from 1 data source (I_DeliveryDocument) and exposes 160 fields with key field CustomerReturnDelivery. It has 1 association to related views. Part of development package VDM_LE_SHP_RET_COMMON.

Data Sources (1)

SourceAliasJoin Type
I_DeliveryDocument I_DeliveryDocument from

Associations (1)

CardinalityTargetAliasCondition
[0..1] E_DeliveryDocument _Extension $projection.CustomerReturnDelivery = _Extension.DeliveryDocument

Annotations (18)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey CustomerReturnDelivery view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Customer Returns Delivery Document view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
Analytics.dataExtraction.enabled true view
Metadata.allowExtensions true view
VDM.viewType #BASIC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName ILECUSTRETDELIV view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.sapObjectNodeType.name CustomerReturnsDelivery view

Fields (160)

KeyFieldSource TableSource FieldDescription
KEY CustomerReturnDelivery
DeliveryDocument DeliveryDocument
DeliveryDocumentType DeliveryDocumentType
CreatedByUser CreatedByUser
CreationDate CreationDate
CreationTime CreationTime
LastChangedByUser LastChangedByUser
LastChangeDate LastChangeDate
ShippingPoint ShippingPoint
SalesOrganization SalesOrganization
SalesOffice SalesOffice
CompleteDeliveryIsDefined CompleteDeliveryIsDefined
OrderCombinationIsAllowed OrderCombinationIsAllowed
DeliveryPriority DeliveryPriority
DeliveryBlockReason DeliveryBlockReason
Supplier Supplier
DeliveryDocumentBySupplier DeliveryDocumentBySupplier
DeliveryIsInPlant DeliveryIsInPlant
ReceivingPlant ReceivingPlant
Warehouse Warehouse
IsExportDelivery IsExportDelivery
OrderID OrderID
HeaderGrossWeight HeaderGrossWeight
HeaderNetWeight HeaderNetWeight
HeaderWeightUnit HeaderWeightUnit
HeaderVolume HeaderVolume
HeaderVolumeUnit HeaderVolumeUnit
DocumentDate DocumentDate
ReadyForWarehouseExecStatus ReadyForWarehouseExecStatus
DelivAdvncdShipgRcvgRlvnce DelivAdvncdShipgRcvgRlvnce
PickingDate PickingDate
PickingTime PickingTime
TotalNumberOfPackage TotalNumberOfPackage
LoadingPoint LoadingPoint
LoadingDate LoadingDate
LoadingTime LoadingTime
BillOfLading BillOfLading
HandlingUnitInStock HandlingUnitInStock
ShipToParty ShipToParty
ShippingType ShippingType
DeliveryDate DeliveryDate
DeliveryTime DeliveryTime
ShippingCondition ShippingCondition
ShipmentBlockReason ShipmentBlockReason
TransportationPlanningDate TransportationPlanningDate
TransportationPlanningTime TransportationPlanningTime
ProposedDeliveryRoute ProposedDeliveryRoute
ActualDeliveryRoute ActualDeliveryRoute
RouteSchedule RouteSchedule
PlannedGoodsIssueDate PlannedGoodsIssueDate
GoodsIssueTime GoodsIssueTime
ActualGoodsMovementDate ActualGoodsMovementDate
IncotermsClassification IncotermsClassification
IncotermsTransferLocation IncotermsTransferLocation
ExternalTransportSystem ExternalTransportSystem
TransportationGroup TransportationGroup
MeansOfTransport MeansOfTransport
MeansOfTransportType MeansOfTransportType
UnloadingPointName UnloadingPointName
ProofOfDeliveryDate ProofOfDeliveryDate
ConfirmationTime ConfirmationTime
FactoryCalendarByCustomer FactoryCalendarByCustomer
BillingDocumentDate BillingDocumentDate
HeaderBillingBlockReason HeaderBillingBlockReason
SoldToParty SoldToParty
CustomerGroup CustomerGroup
SalesDistrict SalesDistrict
TransactionCurrency TransactionCurrency
OverallIntcoBillingStatus OverallIntcoBillingStatus
OverallSDProcessStatus OverallSDProcessStatus
TotalBlockStatus TotalBlockStatus
OverallDelivConfStatus OverallDelivConfStatus
TransportationPlanningStatus TransportationPlanningStatus
OverallPickingConfStatus OverallPickingConfStatus
OverallPickingStatus OverallPickingStatus
OverallPutawayStatus OverallPickingStatus
OverallPackingStatus OverallPackingStatus
OverallWarehouseActivityStatus OverallWarehouseActivityStatus
DistrStatusByDecentralizedWrhs DistrStatusByDecentralizedWrhs
OverallGoodsMovementStatus OverallGoodsMovementStatus
OverallDelivReltdBillgStatus OverallDelivReltdBillgStatus
OverallProofOfDeliveryStatus OverallProofOfDeliveryStatus
HdrGeneralIncompletionStatus HdrGeneralIncompletionStatus
HeaderDelivIncompletionStatus HeaderDelivIncompletionStatus
HeaderPickgIncompletionStatus HeaderPickgIncompletionStatus
HeaderPackingIncompletionSts HeaderPackingIncompletionSts
HdrGoodsMvtIncompletionStatus HdrGoodsMvtIncompletionStatus
HeaderBillgIncompletionStatus HeaderBillgIncompletionStatus
OvrlItmGeneralIncompletionSts OvrlItmGeneralIncompletionSts
OvrlItmPackingIncompletionSts OvrlItmPackingIncompletionSts
OvrlItmPickingIncompletionSts OvrlItmPickingIncompletionSts
OvrlItmDelivIncompletionSts OvrlItmDelivIncompletionSts
OvrlItmGdsMvtIncompletionSts OvrlItmGdsMvtIncompletionSts
OverallChmlCmplncStatus OverallChmlCmplncStatus
OverallDangerousGoodsStatus OverallDangerousGoodsStatus
OverallSafetyDataSheetStatus OverallSafetyDataSheetStatus
EU_DeliveryARCStatus EU_DeliveryARCStatus
_Item _Item
_Partner _Partner
_DeliveryDocumentType _DeliveryDocumentType
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_ShippingPoint _ShippingPoint
_SalesOrganization _SalesOrganization
_SalesOffice _SalesOffice
_DeliveryPriority _DeliveryPriority
_DeliveryBlockReason _DeliveryBlockReason
_Supplier _Supplier
_ReceivingPlant _ReceivingPlant
_Warehouse _Warehouse
_OrderID _OrderID
_HeaderWeightUnit _HeaderWeightUnit
_HeaderVolumeUnit _HeaderVolumeUnit
_LoadingPoint _LoadingPoint
_HandlingUnitInStock _HandlingUnitInStock
_ShipToParty _ShipToParty
_ShippingType _ShippingType
_ShippingCondition _ShippingCondition
_ShipmentBlockReason _ShipmentBlockReason
_ProposedDeliveryRoute _ProposedDeliveryRoute
_ActualDeliveryRoute _ActualDeliveryRoute
_IncotermsClassification _IncotermsClassification
_TransportationGroup _TransportationGroup
_MeansOfTransportType _MeansOfTransportType
_HeaderBillingBlockReason _HeaderBillingBlockReason
_SoldToParty _SoldToParty
_CustomerGroup _CustomerGroup
_SalesDistrict _SalesDistrict
_TransactionCurrency _TransactionCurrency
_OverallSDProcessStatus _OverallSDProcessStatus
_TotalBlockStatus _TotalBlockStatus
_OverallDelivConfStatus _OverallDelivConfStatus
_TransportationPlanningSts _TransportationPlanningSts
_OverallPickingConfStatus _OverallPickingConfStatus
_OverallPickingStatus _OverallPickingStatus
_OverallPutawayStatus _OverallPutawayStatus
_OverallPackingStatus _OverallPackingStatus
_OvrlWarehouseActyStatus _OvrlWarehouseActyStatus
_DistrStatusByDectrlzdWrhs _DistrStatusByDectrlzdWrhs
_OverallGoodsMovementStatus _OverallGoodsMovementStatus
_OverallDelivReltdBillgStatus _OverallDelivReltdBillgStatus
_OverallProofOfDeliveryStatus _OverallProofOfDeliveryStatus
_HdrGeneralIncompletionStatus _HdrGeneralIncompletionStatus
_HeaderDelivIncompletionStatus _HeaderDelivIncompletionStatus
_HeaderPickgIncompletionStatus _HeaderPickgIncompletionStatus
_HeaderPackingIncompletionSts _HeaderPackingIncompletionSts
_HdrGoodsMvtIncompletionStatus _HdrGoodsMvtIncompletionStatus
_HeaderBillgIncompletionStatus _HeaderBillgIncompletionStatus
_OvrlItmGeneralIncompletionSts _OvrlItmGeneralIncompletionSts
_OvrlItmPackingIncompletionSts _OvrlItmPackingIncompletionSts
_OvrlItmPickingIncompletionSts _OvrlItmPickingIncompletionSts
_OvrlItmDelivIncompletionSts _OvrlItmDelivIncompletionSts
_OvrlItmGdsMvtIncompletionSts _OvrlItmGdsMvtIncompletionSts
_MaterialDocumentHeader _MaterialDocumentHeader
_OverallChmlCmplncStatus _OverallChmlCmplncStatus
_OverallDangerousGoodsStatus _OverallDangerousGoodsStatus
_OvrlSftyDataSheetSts _OvrlSftyDataSheetSts
_ExciseTaxStatus _ExciseTaxStatus
_WarehouseExecutionStatus _WarehouseExecutionStatus
_DelivAdvncdShipgRcvgRlvnce _DelivAdvncdShipgRcvgRlvnce
@ClientHandling.algorithm: #SESSION_VARIABLE                        //Inserted by VDM CDS Suite Plugin

@ObjectModel.compositionRoot: true
@ObjectModel.representativeKey: 'CustomerReturnDelivery'
@ObjectModel.usageType.dataClass: #TRANSACTIONAL                    //or #MIXED or #CUSTOMIZING or #MASTER or #META or #ORGANIZATIONAL or 

@ObjectModel.usageType.serviceQuality: #B                           //or #A or #X or #C or #D

@ObjectModel.usageType.sizeCategory: #L                             //or #S or #M or #XL or #XXL //Inserted by VDM CDS Suite Plugin

//Commented by VDM CDS Suite Plugin:@ObjectModel.representativeKey: 'CustomerReturnDelivery'

//Commented by VDM CDS Suite Plugin:@ObjectModel.compositionRoot: true

@EndUserText.label: 'Customer Returns Delivery Document'
@Analytics: { dataCategory: #DIMENSION, internalName:#LOCAL }
@Analytics.dataExtraction: { enabled: true, 
                             delta.changeDataCapture.mapping: [{
                               role: #MAIN,
                               table: 'LIKP',
                               tableElement: ['VBELN'],
                               viewElement: ['CustomerReturnDelivery']
                             }]
                            } 
@Metadata.allowExtensions: true
@VDM.viewType: #BASIC
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true

@AccessControl.authorizationCheck:#CHECK
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@AbapCatalog.sqlViewName: 'ILECUSTRETDELIV'
@Metadata.ignorePropagatedAnnotations:true
@ObjectModel.supportedCapabilities: [ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #ANALYTICAL_DIMENSION, #EXTRACTION_DATA_SOURCE ]
@ObjectModel.modelingPattern: [ #ANALYTICAL_DIMENSION ]
@ObjectModel.sapObjectNodeType.name:'CustomerReturnsDelivery'

define view I_CustomerReturnDelivery
as select from I_DeliveryDocument
//Associations

association[0..*] to I_CustomerReturnDeliveryItem as _Item on $projection.CustomerReturnDelivery = _Item.CustomerReturnDelivery
association[0..1] to I_PutawayStatus as _OverallPutawayStatus on $projection.OverallPutawayStatus = _OverallPutawayStatus.PutawayStatus
//The following shall be removed when the cast bug is fixed.

association[1..*] to I_SDDocumentPartner as _Partner on $projection.CustomerReturnDelivery = _Partner.SDDocument

//Extensibility

association [0..1] to E_DeliveryDocument as _Extension         on $projection.CustomerReturnDelivery = _Extension.DeliveryDocument


{
    //key 

    key cast(DeliveryDocument as customer_return_delivery) as CustomerReturnDelivery,
    
    @Consumption.hidden: true
    DeliveryDocument, // Required for association to _MaterialDocumentHeader


    //category

    @ObjectModel.foreignKey.association: '_DeliveryDocumentType'
    DeliveryDocumentType,

    //admin

    CreatedByUser,
    @Semantics.systemDate.createdAt: true
    CreationDate,
    CreationTime,
    LastChangedByUser,
    @Semantics.systemDate.lastChangedAt: true
    LastChangeDate,

    //Organization

    @ObjectModel.foreignKey.association: '_ShippingPoint'
    ShippingPoint,
    @ObjectModel.foreignKey.association: '_SalesOrganization'
    SalesOrganization,
    @ObjectModel.foreignKey.association: '_SalesOffice'
    SalesOffice,

    //delivery

    CompleteDeliveryIsDefined,
    OrderCombinationIsAllowed,
    @ObjectModel.foreignKey.association: '_DeliveryPriority'
    DeliveryPriority,
    @ObjectModel.foreignKey.association: '_DeliveryBlockReason'
    DeliveryBlockReason,
    @ObjectModel.foreignKey.association: '_Supplier'
    Supplier,
    DeliveryDocumentBySupplier,
    DeliveryIsInPlant,
    @ObjectModel.foreignKey.association: '_ReceivingPlant'
    ReceivingPlant,
    @ObjectModel.foreignKey.association: '_Warehouse'
    Warehouse,
    IsExportDelivery,
    @ObjectModel.foreignKey.association: '_OrderID'
    OrderID,
    @DefaultAggregation: #SUM
    @Semantics.quantity.unitOfMeasure: 'HeaderWeightUnit'
    HeaderGrossWeight,
    @DefaultAggregation: #SUM
    @Semantics.quantity.unitOfMeasure: 'HeaderWeightUnit'
    HeaderNetWeight,
    @Semantics.unitOfMeasure: true
    @ObjectModel.foreignKey.association: '_HeaderWeightUnit'
    HeaderWeightUnit,
    @DefaultAggregation: #SUM
    @Semantics.quantity.unitOfMeasure: 'HeaderVolumeUnit' 
    HeaderVolume, 
    @Semantics.unitOfMeasure: true
    @ObjectModel.foreignKey.association: '_HeaderVolumeUnit'
    HeaderVolumeUnit,
    DocumentDate,
    
    @ObjectModel.foreignKey.association: '_WarehouseExecutionStatus'
    ReadyForWarehouseExecStatus,
      
    @ObjectModel.foreignKey.association: '_DelivAdvncdShipgRcvgRlvnce'
    DelivAdvncdShipgRcvgRlvnce,
     
    //Pick Pack Load

    PickingDate,
    PickingTime,
    TotalNumberOfPackage,
    @ObjectModel.foreignKey.association: '_LoadingPoint'
    LoadingPoint,
    LoadingDate,
    LoadingTime,
    BillOfLading,
    @ObjectModel.foreignKey.association: '_HandlingUnitInStock'
    HandlingUnitInStock,
     
    //shipping

    @ObjectModel.foreignKey.association: '_ShipToParty'
    ShipToParty,
    @ObjectModel.foreignKey.association: '_ShippingType'
    ShippingType,
    DeliveryDate,
    DeliveryTime,
    @ObjectModel.foreignKey.association: '_ShippingCondition'
    ShippingCondition,
    @ObjectModel.foreignKey.association: '_ShipmentBlockReason'
    ShipmentBlockReason,
    TransportationPlanningDate,
    TransportationPlanningTime,
    @ObjectModel.foreignKey.association: '_ProposedDeliveryRoute'
    ProposedDeliveryRoute,
    @ObjectModel.foreignKey.association: '_ActualDeliveryRoute'
    ActualDeliveryRoute,
    RouteSchedule,
    PlannedGoodsIssueDate,
    GoodsIssueTime,
    ActualGoodsMovementDate,
    @ObjectModel.foreignKey.association: '_IncotermsClassification'
    IncotermsClassification,
    IncotermsTransferLocation,
    ExternalTransportSystem,
    @ObjectModel.foreignKey.association: '_TransportationGroup'
    TransportationGroup,
    MeansOfTransport,
    @ObjectModel.foreignKey.association: '_MeansOfTransportType'
    MeansOfTransportType,
    UnloadingPointName,
    ProofOfDeliveryDate,
    ConfirmationTime,
    FactoryCalendarByCustomer,

    //Billing

    BillingDocumentDate,
    @ObjectModel.foreignKey.association: '_HeaderBillingBlockReason'
    HeaderBillingBlockReason,

    //Sales

    @ObjectModel.foreignKey.association: '_SoldToParty'
    SoldToParty,
    @ObjectModel.foreignKey.association: '_CustomerGroup'
    CustomerGroup,
    @ObjectModel.foreignKey.association: '_SalesDistrict'
    SalesDistrict,
    @ObjectModel.foreignKey.association: '_TransactionCurrency'
    TransactionCurrency,  
    
    //Status

    OverallIntcoBillingStatus,
    @ObjectModel.foreignKey.association: '_OverallSDProcessStatus'
    OverallSDProcessStatus,
    @ObjectModel.foreignKey.association: '_TotalBlockStatus'
    TotalBlockStatus,
    @ObjectModel.foreignKey.association: '_OverallDelivConfStatus'
    OverallDelivConfStatus, 
    @ObjectModel.foreignKey.association: '_TransportationPlanningSts'
    TransportationPlanningStatus,   
    @ObjectModel.foreignKey.association: '_OverallPickingConfStatus'
    OverallPickingConfStatus,   
    @ObjectModel.foreignKey.association: '_OverallPickingStatus'
    OverallPickingStatus,  
    @ObjectModel.foreignKey.association: '_OverallPutawayStatus'
    OverallPickingStatus as OverallPutawayStatus,              
    @ObjectModel.foreignKey.association: '_OverallPackingStatus'
    OverallPackingStatus,
    @ObjectModel.foreignKey.association: '_OvrlWarehouseActyStatus'
    OverallWarehouseActivityStatus,
    @ObjectModel.foreignKey.association: '_DistrStatusByDectrlzdWrhs'
    DistrStatusByDecentralizedWrhs,
    @ObjectModel.foreignKey.association: '_OverallGoodsMovementStatus'
    OverallGoodsMovementStatus,
    @ObjectModel.foreignKey.association: '_OverallDelivReltdBillgStatus'
    OverallDelivReltdBillgStatus,
    @ObjectModel.foreignKey.association: '_OverallProofOfDeliveryStatus'
    OverallProofOfDeliveryStatus,
    @ObjectModel.foreignKey.association: '_HdrGeneralIncompletionStatus'
    HdrGeneralIncompletionStatus,
    @ObjectModel.foreignKey.association: '_HeaderDelivIncompletionStatus'
    HeaderDelivIncompletionStatus,
    @ObjectModel.foreignKey.association: '_HeaderPickgIncompletionStatus'
    HeaderPickgIncompletionStatus,
    @ObjectModel.foreignKey.association: '_HeaderPackingIncompletionSts'
    HeaderPackingIncompletionSts,
    @ObjectModel.foreignKey.association: '_HdrGoodsMvtIncompletionStatus'
    HdrGoodsMvtIncompletionStatus,
    @ObjectModel.foreignKey.association: '_HeaderBillgIncompletionStatus'
    HeaderBillgIncompletionStatus,
    @ObjectModel.foreignKey.association: '_OvrlItmGeneralIncompletionSts'
    OvrlItmGeneralIncompletionSts,
    @ObjectModel.foreignKey.association: '_OvrlItmPackingIncompletionSts'
    OvrlItmPackingIncompletionSts,
    @ObjectModel.foreignKey.association: '_OvrlItmPickingIncompletionSts'
    OvrlItmPickingIncompletionSts,
    @ObjectModel.foreignKey.association: '_OvrlItmDelivIncompletionSts'
    OvrlItmDelivIncompletionSts,
    @ObjectModel.foreignKey.association: '_OvrlItmGdsMvtIncompletionSts'
    OvrlItmGdsMvtIncompletionSts,
    @ObjectModel.foreignKey.association: '_OverallChmlCmplncStatus'
    OverallChmlCmplncStatus,
    @ObjectModel.foreignKey.association: '_OverallDangerousGoodsStatus'
    OverallDangerousGoodsStatus,
    @ObjectModel.foreignKey.association: '_OvrlSftyDataSheetSts'
    OverallSafetyDataSheetStatus,
    
    
    //EMCS Integration - Excise Tax

    @ObjectModel.foreignKey.association: '_ExciseTaxStatus'
    EU_DeliveryARCStatus,

   //Associations

   @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
   _Item,
   _Partner,
   //  Category

   _DeliveryDocumentType,
   //  Admin

   _CreatedByUser,
   _LastChangedByUser,
   //  Organization

   _ShippingPoint, 
   _SalesOrganization,
   _SalesOffice,
   //  Delivery      

   _DeliveryPriority,
   _DeliveryBlockReason,
   _Supplier,
   _ReceivingPlant,
   _Warehouse,
   _OrderID,    
   _HeaderWeightUnit,
   _HeaderVolumeUnit,
   //  Pick Pack Load

   _LoadingPoint,
   _HandlingUnitInStock,
   //  Shipping

   _ShipToParty,
   _ShippingType,
   _ShippingCondition,
   _ShipmentBlockReason,
   _ProposedDeliveryRoute,
   _ActualDeliveryRoute,
   _IncotermsClassification,
   _TransportationGroup,
   _MeansOfTransportType,
   //  Billing    

   _HeaderBillingBlockReason,
   //  Sales

   _SoldToParty,
   _CustomerGroup,
   _SalesDistrict,
   _TransactionCurrency,
   //  Status    

   _OverallSDProcessStatus,
   _TotalBlockStatus,
   _OverallDelivConfStatus,
   _TransportationPlanningSts,
   _OverallPickingConfStatus,
   _OverallPickingStatus,
   _OverallPutawayStatus,   
   _OverallPackingStatus,
   _OvrlWarehouseActyStatus,
   _DistrStatusByDectrlzdWrhs,
   _OverallGoodsMovementStatus,
   _OverallDelivReltdBillgStatus,
   _OverallProofOfDeliveryStatus,
   _HdrGeneralIncompletionStatus,
   _HeaderDelivIncompletionStatus,
   _HeaderPickgIncompletionStatus,
   _HeaderPackingIncompletionSts,
   _HdrGoodsMvtIncompletionStatus,
   _HeaderBillgIncompletionStatus,
   _OvrlItmGeneralIncompletionSts,
   _OvrlItmPackingIncompletionSts,
   _OvrlItmPickingIncompletionSts,
   _OvrlItmDelivIncompletionSts,
   _OvrlItmGdsMvtIncompletionSts,
   _MaterialDocumentHeader,
   
   _OverallChmlCmplncStatus,
   _OverallDangerousGoodsStatus,
   _OvrlSftyDataSheetSts,
   _ExciseTaxStatus,

   _WarehouseExecutionStatus,
   _DelivAdvncdShipgRcvgRlvnce
   
   
} where SDDocumentCategory = 'T';