C_SustDeliveryDocumentDEX

DDL: C_SUSTDELIVERYDOCUMENTDEX Type: view_entity CONSUMPTION Package: VDM_SUS_FND_EXTRACTION

Delivery Documents Extractor

C_SustDeliveryDocumentDEX is a Consumption CDS View (Fact) that provides data about "Delivery Documents Extractor" in SAP S/4HANA. It reads from 1 data source (I_DeliveryDocument) and exposes 22 fields with key field DeliveryDocument. It has 1 association to related views. Part of development package VDM_SUS_FND_EXTRACTION.

Data Sources (1)

SourceAliasJoin Type
I_DeliveryDocument I_DeliveryDocument from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_SDDocumentPartner _SDDocumentCompletePartners $projection.DeliveryDocument = _SDDocumentCompletePartners.SDDocument and _SDDocumentCompletePartners.PartnerFunction = 'WE' and ( _SDDocumentCompletePartners.SDDocPartnerAddressRefType = 'D' or _SDDocumentCompletePartners.SDDocPartnerAddressRefType = 'E' or _SDDocumentCompletePartners.SDDocPartnerAddressRefType = 'F' )

Annotations (15)

NameValueLevelField
EndUserText.label Delivery Documents Extractor view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.sapObjectNodeType.name DeliveryDocument view
ObjectModel.modelingPattern #NONE view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Analytics.dataCategory #FACT view
Analytics.internalName #LOCAL view
Analytics.technicalName CSUSTDLVRYDOCDEX view
Analytics.dataExtraction.enabled true view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY DeliveryDocument DeliveryDocument
DeliveryDocumentType DeliveryDocumentType
SalesOrganization SalesOrganization
ShippingPoint ShippingPoint
ShipToParty ShipToParty
ShipToPartyAddressID _SDDocumentCompletePartners AddressID
ShipToPartyCountry
ShipToPartyRegion
SoldToParty SoldToParty
SoldToPartyAddressID _SoldToParty AddressID
SoldToPartyCountry _SoldToParty Country
SoldToPartyRegion _SoldToParty Region
ActualGoodsMovementDate ActualGoodsMovementDate
IncotermsClassification IncotermsClassification
OverallSDProcessStatus OverallSDProcessStatus
OverallGoodsMovementStatus OverallGoodsMovementStatus
CreatedByUser CreatedByUser
CreationDate CreationDate
CreationTime CreationTime
LastChangedByUser LastChangedByUser
LastChangeDate LastChangeDate
DeletionIndicator DeletionIndicator
@EndUserText.label: 'Delivery Documents Extractor'

@AccessControl: {
  authorizationCheck: #PRIVILEGED_ONLY,
  personalData.blocking: #NOT_REQUIRED
}

@Metadata: {
  ignorePropagatedAnnotations: true
}

@ObjectModel: {
  usageType: {
    dataClass: #TRANSACTIONAL,
    serviceQuality: #C,
    sizeCategory: #XL
  },
  sapObjectNodeType.name: 'DeliveryDocument',
  supportedCapabilities: [#EXTRACTION_DATA_SOURCE],
  modelingPattern: #NONE
}

@VDM: {
      viewType: #CONSUMPTION,
      lifecycle.contract.type: #PUBLIC_LOCAL_API
}

@Analytics: {
  dataCategory: #FACT,
  internalName:#LOCAL,
  technicalName: 'CSUSTDLVRYDOCDEX',
  dataExtraction: {
      enabled: true,
      delta.changeDataCapture:
        { mapping:
        [
          { role: #MAIN, table: 'likp', tableElement: ['vbeln'], viewElement: ['DeliveryDocument'] },
          { role: #LEFT_OUTER_TO_ONE_JOIN, table: 'vbpa', tableElement: ['vbeln'], viewElement: ['DeliveryDocument'] },
          { role: #LEFT_OUTER_TO_ONE_JOIN, table: 'adrc', tableElement: ['addrnumber'], viewElement: ['ShipToPartyAddressID'] },
          { role: #LEFT_OUTER_TO_ONE_JOIN, table: 'adrc', tableElement: ['addrnumber'], viewElement: ['SoldToPartyAddressID'] }
        ]
      }
    }
}

define view entity C_SustDeliveryDocumentDEX
  as select from I_DeliveryDocument

  //Associations

  association [0..1] to I_SDDocumentPartner as _SDDocumentCompletePartners on  $projection.DeliveryDocument                             = _SDDocumentCompletePartners.SDDocument
                                                                                    and _SDDocumentCompletePartners.PartnerFunction              = 'WE'
                                                                                    and (
                                                                                       _SDDocumentCompletePartners.SDDocPartnerAddressRefType    = 'D'
                                                                                       or _SDDocumentCompletePartners.SDDocPartnerAddressRefType = 'E'
                                                                                       or _SDDocumentCompletePartners.SDDocPartnerAddressRefType = 'F'
                                                                                     )


{
  key DeliveryDocument,
      DeliveryDocumentType,
      SalesOrganization,
      ShippingPoint,

      //Ship to party

      ShipToParty,
      _SDDocumentCompletePartners.AddressID               as ShipToPartyAddressID, //necessary for delta CDC only

      _SDDocumentCompletePartners._DfltAddrRprstn.Country as ShipToPartyCountry,
      _SDDocumentCompletePartners._DfltAddrRprstn.Region  as ShipToPartyRegion,

      //Sold to party

      SoldToParty,
      _SoldToParty.AddressID as SoldToPartyAddressID, //necessary for delta CDC only

      _SoldToParty.Country   as SoldToPartyCountry,
      _SoldToParty.Region    as SoldToPartyRegion,

      //Goods movement

      ActualGoodsMovementDate,
      IncotermsClassification,
      

      //Status

      OverallSDProcessStatus,
      OverallGoodsMovementStatus,

      //Admin

      CreatedByUser,
      CreationDate,
      CreationTime,
      LastChangedByUser,
      LastChangeDate,
      DeletionIndicator
};