C_DeliveryNoteItem

DDL: C_DELIVERYNOTEITEM SQL: CDELVNOTEITM Type: view CONSUMPTION

Consumption view for Delivery Note Item

C_DeliveryNoteItem is a Consumption CDS View that provides data about "Consumption view for Delivery Note Item" in SAP S/4HANA. It reads from 1 data source (I_DeliveryDocumentItem) and exposes 36 fields with key fields DeliveryDocument, DeliveryDocumentItem. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_DeliveryDocumentItem I_DeliveryDocumentItem from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_DeliveryDocument _DeliveryDocument $projection.DeliveryDocument = _DeliveryDocument.DeliveryDocument
[0..1] I_SalesDocumentItem _ReferenceSalesDocumentItem $projection.ReferenceSDDocument = _ReferenceSalesDocumentItem.SalesDocument and $projection.ReferenceSDDocumentItem = _ReferenceSalesDocumentItem.SalesDocumentItem and $projection.ReferenceSDDocumentCategory = 'C'
[0..1] I_MaterialType _MaterialType $projection.MaterialTypePrimary = _MaterialType.MaterialType

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CDELVNOTEITM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Consumption view for Delivery Note Item view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
VDM.private false view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY DeliveryDocument DeliveryDocument
KEY DeliveryDocumentItem DeliveryDocumentItem
TransactionCurrency _ReferenceSalesDocumentItem TransactionCurrency
NetPriceAmount
NetValueAmount
Material Material
MaterialByCustomer MaterialByCustomer
ItemGrossWeight ItemGrossWeight
ItemNetWeight ItemNetWeight
ItemWeightUnit ItemWeightUnit
ItemVolume ItemVolume
ItemVolumeUnit ItemVolumeUnit
ActualDeliveryQuantity ActualDeliveryQuantity
DeliveryQuantityUnit DeliveryQuantityUnit
Batch Batch
HigherLvlItmOfBatSpltItm HigherLvlItmOfBatSpltItm
PartnerSalesDocument
PartnerSalesDocumentItem
PurchaseOrderByCustomer _ReferenceSalesDocumentItem PurchaseOrderByCustomer
Plant Plant
StorageLocation StorageLocation
ReferenceSDDocument ReferenceSDDocument
ReferenceSDDocumentItem ReferenceSDDocumentItem
ReferenceSDDocumentCategory ReferenceSDDocumentCategory
MaterialTypePrimary MaterialTypePrimary
CustEngineeringChgStatus CustEngineeringChgStatus
_DeliveryDocument _DeliveryDocument
_ReferenceSalesDocumentItem _ReferenceSalesDocumentItem
_Plant _Plant
_StorageLocation _StorageLocation
_Material _Material
_SalesDocument
_SalesDocumentItem
_MaterialType _MaterialType
_ItemWeightUnit _ItemWeightUnit
_ItemVolumeUnit _ItemVolumeUnit
@AbapCatalog.sqlViewName: 'CDELVNOTEITM'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Consumption view for Delivery Note Item'

@AbapCatalog.preserveKey: true

@VDM:
      {
        viewType: #CONSUMPTION,
        private: false
      }
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@AccessControl.personalData.blocking:#REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
define view C_DeliveryNoteItem
  as select from I_DeliveryDocumentItem
  association [1..1] to I_DeliveryDocument  as _DeliveryDocument           on  $projection.DeliveryDocument = _DeliveryDocument.DeliveryDocument
  association [0..1] to I_SalesDocumentItem as _ReferenceSalesDocumentItem on  $projection.ReferenceSDDocument         = _ReferenceSalesDocumentItem.SalesDocument
                                                                           and $projection.ReferenceSDDocumentItem     = _ReferenceSalesDocumentItem.SalesDocumentItem
                                                                           and $projection.ReferenceSDDocumentCategory = 'C'
  association [0..1] to I_MaterialType as _MaterialType on $projection.MaterialTypePrimary = _MaterialType.MaterialType
{
  key DeliveryDocument,
  key DeliveryDocumentItem,
      _ReferenceSalesDocumentItem.TransactionCurrency,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
       @OData.v2.amount.noDecimalShift: true
      cast ( div ( _ReferenceSalesDocumentItem.NetAmount , _ReferenceSalesDocumentItem.OrderQuantity ) as abap.dec( 11, 2 ))
                                                             as NetPriceAmount,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
       @OData.v2.amount.noDecimalShift: true
      ActualDeliveryQuantity  * div ( _ReferenceSalesDocumentItem.NetAmount , _ReferenceSalesDocumentItem.OrderQuantity )
                                                             as NetValueAmount,
      @ObjectModel.foreignKey.association: '_Material'
      Material,
      MaterialByCustomer,
      @Semantics.quantity.unitOfMeasure: 'ItemWeightUnit'
      ItemGrossWeight,
      @Semantics.quantity.unitOfMeasure: 'ItemWeightUnit'
      ItemNetWeight,
      @Semantics.unitOfMeasure: true
      @ObjectModel.foreignKey.association: '_ItemWeightUnit'
      ItemWeightUnit,
      @Semantics.quantity.unitOfMeasure: 'ItemVolumeUnit'
      ItemVolume,
      @Semantics.unitOfMeasure: true
      @ObjectModel.foreignKey.association: '_ItemVolumeUnit'
      ItemVolumeUnit,
      ActualDeliveryQuantity,
      DeliveryQuantityUnit,
      Batch,
      HigherLvlItmOfBatSpltItm,
      @ObjectModel.foreignKey.association: '_SalesDocument' 
      _ReferenceSalesDocumentItem._Partner.SalesDocument     as PartnerSalesDocument,
      @ObjectModel.foreignKey.association: '_SalesDocumentItem' 
      _ReferenceSalesDocumentItem._Partner.SalesDocumentItem as PartnerSalesDocumentItem,
      _ReferenceSalesDocumentItem.PurchaseOrderByCustomer    as PurchaseOrderByCustomer,
      Plant,
      StorageLocation,
      ReferenceSDDocument,
      ReferenceSDDocumentItem,
      ReferenceSDDocumentCategory,
      MaterialTypePrimary,
      CustEngineeringChgStatus,                                         

      _DeliveryDocument,
      _ReferenceSalesDocumentItem,
      _Plant,
      _StorageLocation,
      _Material,
      _ReferenceSalesDocumentItem._Partner._SalesDocument, 
      _ReferenceSalesDocumentItem._Partner._SalesDocumentItem,
      _MaterialType,
      _ItemWeightUnit,
      _ItemVolumeUnit
      
}