I_GoodsMovementDocumentDEX

DDL: I_GOODSMOVEMENTDOCUMENTDEX Type: view COMPOSITE

Material document data extraction

I_GoodsMovementDocumentDEX is a Composite CDS View (Fact) that provides data about "Material document data extraction" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 140 fields with key fields MaterialDocumentKey1, MaterialDocumentKey2, MaterialDocumentKey3, MaterialDocumentKey4, MaterialDocumentKey5.

Data Sources (1)

SourceAliasJoin Type
I_MaterialDocumentRecord I_MaterialDocumentRecord from

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName IGOODSMVMTDOCDEX view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Material document data extraction view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.sapObjectNodeType.name MaterialStock view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Analytics.dataCategory #FACT view
Analytics.internalName #LOCAL view
Analytics.dataExtraction.enabled true view
Metadata.ignorePropagatedAnnotations true view

Fields (140)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocumentKey1 MaterialDocumentKey1
KEY MaterialDocumentKey2 MaterialDocumentKey2
KEY MaterialDocumentKey3 MaterialDocumentKey3
KEY MaterialDocumentKey4 MaterialDocumentKey4
KEY MaterialDocumentKey5 MaterialDocumentKey5
KEY MaterialDocumentKey6 MaterialDocumentKey6
MaterialDocumentYear MaterialDocumentYear
MaterialDocument MaterialDocument
MaterialDocumentItem MaterialDocumentItem
StockIdentifyingMaterial StockIdentifyingMaterial
Plant Plant
StockIdfgStorageLocation StockIdfgStorageLocation
StockIdentifyingBatch StockIdentifyingBatch
SpecialStockIdfgSupplier SpecialStockIdfgSupplier
SpecialStockIdfgSalesOrder SpecialStockIdfgSalesOrder
SpecialStockIdfgSalesOrderItem SpecialStockIdfgSalesOrderItem
SpecialStockIdfgCustomer SpecialStockIdfgCustomer
InventorySpecialStockType InventorySpecialStockType
InventoryStockType InventoryStockType
SpecialStockIdfgStockOwner SpecialStockIdfgStockOwner
ResourceID
CostEstimate CostEstimate
StorageLocation StorageLocation
Material Material
Batch Batch
StockOwner StockOwner
CompanyCode CompanyCode
InventorySpecialStockValnType InventorySpecialStockValnType
CompanyCodeCurrency CompanyCodeCurrency
MaterialBaseUnit MaterialBaseUnit
EntryUnit EntryUnit
OrderQuantityUnit OrderQuantityUnit
IsReversalMovementType IsReversalMovementType
InventoryTransactionType InventoryTransactionType
ConsumptionPosting ConsumptionPosting
GoodsReceiptType GoodsReceiptType
IssuingOrReceivingPlant IssuingOrReceivingPlant
IssuingOrReceivingStorageLoc IssuingOrReceivingStorageLoc
IssgOrRcvgMaterial IssgOrRcvgMaterial
IssgOrRcvgBatch IssgOrRcvgBatch
IssgOrRcvgSpclStockInd IssgOrRcvgSpclStockInd
IssuingOrReceivingStockType IssuingOrReceivingStockType
IssuingOrReceivingValType IssuingOrReceivingValType
IssgOrRcvgResourceID
GoodsMovementIsCancelled GoodsMovementIsCancelled
ReversedMaterialDocument ReversedMaterialDocument
ReversedMaterialDocumentItem ReversedMaterialDocumentItem
ReversedMaterialDocumentYear ReversedMaterialDocumentYear
DocumentDate DocumentDate
AccountingDocumentType AccountingDocumentType
CreationDate CreationDate
CreationTime CreationTime
PostingDate PostingDate
FiscalYearVariant FiscalYearVariant
FiscalYear FiscalYear
FiscalYearPeriod FiscalYearPeriod
YearDay YearDay
YearWeek YearWeek
YearMonth YearMonth
YearQuarter YearQuarter
CalendarQuarter CalendarQuarter
CalendarMonth CalendarMonth
CalendarWeek CalendarWeek
CalendarDay CalendarDay
WeekDay WeekDay
SalesOrder SalesOrder
SalesOrderItem SalesOrderItem
SalesOrderScheduleLine SalesOrderScheduleLine
PurchaseOrder PurchaseOrder
PurchaseOrderItem
ProjectNetwork ProjectNetwork
DeliveryDocument DeliveryDocument
DeliveryDocumentItem
ManufacturingOrder ManufacturingOrder
ManufacturingOrderItem ManufacturingOrderItem
ReferenceDocument ReferenceDocument
GoodsIssueOrReceiptSlipNumber GoodsIssueOrReceiptSlipNumber
ReferenceDocumentFiscalYear ReferenceDocumentFiscalYear
InvtryMgmtRefDocumentItem InvtryMgmtRefDocumentItem
InvtryMgmtReferenceDocument InvtryMgmtReferenceDocument
GoodsMovementType GoodsMovementType
InventoryValuationType InventoryValuationType
CreatedByUser CreatedByUser
Supplier Supplier
Customer Customer
IsMaterialDocumentHeader IsMaterialDocumentHeader
MaterialDocumentHeaderText MaterialDocumentHeaderText
MaterialDocumentItemText MaterialDocumentItemText
IsCompletelyDelivered IsCompletelyDelivered
GoodsRecipientName GoodsRecipientName
UnloadingPointName UnloadingPointName
GoodsMovementRefDocType GoodsMovementRefDocType
GoodsMovementReasonCode GoodsMovementReasonCode
ShelfLifeExpirationDate ShelfLifeExpirationDate
ManufactureDate ManufactureDate
SerialNumbersAreCreatedAutomly SerialNumbersAreCreatedAutomly
VersionForPrintingSlip VersionForPrintingSlip
ManualPrintIsTriggered ManualPrintIsTriggered
AccountAssignmentCategory AccountAssignmentCategory
CostCenter CostCenter
ControllingArea ControllingArea
CostObject CostObject
GLAccount GLAccount
FunctionalArea FunctionalArea
ProfitabilitySegment ProfitabilitySegment
ProfitabilitySegment_2 ProfitabilitySegment_2
ProfitCenter ProfitCenter
MasterFixedAsset MasterFixedAsset
FixedAsset FixedAsset
FundsCenter FundsCenter
Fund Fund
CommitmentItemShortID CommitmentItemShortID
GrantID GrantID
Reservation Reservation
ReservationItem ReservationItem
ReservationIsFinallyIssued ReservationIsFinallyIssued
DebitCreditCode DebitCreditCode
TotalGoodsMvtAmtInCCCrcy TotalGoodsMvtAmtInCCCrcy
GoodsMovementStkAmtInCCCrcy GoodsMovementStkAmtInCCCrcy
GoodsMvtCnsmpnAmtInCCCrcy GoodsMvtCnsmpnAmtInCCCrcy
GdsMvtExtAmtInCoCodeCrcy GdsMvtExtAmtInCoCodeCrcy
SlsPrcAmtInclVATInCoCodeCrcy SlsPrcAmtInclVATInCoCodeCrcy
EnteredSlsAmtInCoCodeCrcy EnteredSlsAmtInCoCodeCrcy
MatlStkChangeQtyInBaseUnit MatlStkChangeQtyInBaseUnit
MatlCnsmpnQtyInMatlBaseUnit MatlCnsmpnQtyInMatlBaseUnit
QuantityInBaseUnit QuantityInBaseUnit
QuantityInEntryUnit QuantityInEntryUnit
GoodsReceiptQtyInOrderUnit GoodsReceiptQtyInOrderUnit
TransactionCode TransactionCode
IsAutomaticallyCreated IsAutomaticallyCreated
MaterialDocumentLine MaterialDocumentLine
MaterialDocumentParentLine MaterialDocumentParentLine
HierarchyNodeLevel HierarchyNodeLevel
_Supplier _Supplier
_BPStockOwner _BPStockOwner
_Customer _Customer
_SupplierCompanyByPlant _SupplierCompanyByPlant
_CustomerCompanyByPlant _CustomerCompanyByPlant
_StorageLocation _StorageLocation
_IssuingOrReceivingStorageLoc _IssuingOrReceivingStorageLoc
@AbapCatalog: {
                sqlViewName: 'IGOODSMVMTDOCDEX',
                compiler.compareFilter: true,
                preserveKey: true
              }
@EndUserText.label: 'Material document data extraction'
@AccessControl: {
                   authorizationCheck: #CHECK,
                   personalData.blocking: #NOT_REQUIRED
                }
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel: {
                usageType: {
                             sizeCategory: #XXL,
                             serviceQuality: #C,
                             dataClass:#TRANSACTIONAL
                           },
                sapObjectNodeType.name : 'MaterialStock',                           
                semanticKey: ['MaterialDocumentYear', 'MaterialDocument', 'MaterialDocumentItem'],
                supportedCapabilities: [#EXTRACTION_DATA_SOURCE]
} 
@VDM: {
        viewType: #COMPOSITE,
        lifecycle.contract.type: #PUBLIC_LOCAL_API
      }
@Analytics: {
              dataCategory: #FACT,
              internalName: #LOCAL,
              dataExtraction: {
                                enabled: true,
                                delta.changeDataCapture: {
                                                           mapping: [
                                                                      {
                                                                        table: 'MATDOC',
                                                                        role: #MAIN,
                                                                        viewElement: ['MaterialDocumentKey1', 'MaterialDocumentKey2', 'MaterialDocumentKey3', 'MaterialDocumentKey4', 'MaterialDocumentKey5', 'MaterialDocumentKey6'],
                                                                        tableElement: ['key1', 'key2', 'key3', 'key4', 'key5', 'key6']
                                                                      }
                                                                    ]
                                                         }
                              }
            }
@Metadata: {
             ignorePropagatedAnnotations: true
           }

define view I_GoodsMovementDocumentDEX
  as select from I_MaterialDocumentRecord 
{
// Technical key fields

  @Consumption.hidden: true
      key MaterialDocumentKey1,
  @Consumption.hidden: true
      key MaterialDocumentKey2,
  @Consumption.hidden: true
      key MaterialDocumentKey3,
  @Consumption.hidden: true
      key MaterialDocumentKey4,
  @Consumption.hidden: true
      key MaterialDocumentKey5,
  @Consumption.hidden: true
      key MaterialDocumentKey6,
      
// Semantic key fields      

  @Semantics.calendar.year: true
      MaterialDocumentYear,
      MaterialDocument,
      MaterialDocumentItem,
    
// Warehouse stock identifier

      StockIdentifyingMaterial,
      Plant,
      StockIdfgStorageLocation,
      StockIdentifyingBatch,
      SpecialStockIdfgSupplier,
      SpecialStockIdfgSalesOrder,
      SpecialStockIdfgSalesOrderItem,
-- CAST to get rid of conversion exit
      cast(SpecialStockIdfgWBSElement as nsdm_wbselement_internal_id preserving type) as SpecialStockIdfgWBSElement,  
      SpecialStockIdfgCustomer,
      InventorySpecialStockType,
      InventoryStockType,
      SpecialStockIdfgStockOwner,
      cast(ResourceID as nsdm_resourcename preserving type ) as ResourceID,
      
// Warehouse stock grouping fields     

       CostEstimate,     
   
// Fields of material document     

      StorageLocation,
      Material,
      Batch,     
      StockOwner,      
      CompanyCode,
      InventorySpecialStockValnType,
      @Semantics.currencyCode: true
      CompanyCodeCurrency,  
    
      @Semantics.unitOfMeasure: true
      MaterialBaseUnit,
      @Semantics.unitOfMeasure: true
      EntryUnit,
      @Semantics.unitOfMeasure: true
      OrderQuantityUnit,
      IsReversalMovementType,
      InventoryTransactionType,
      ConsumptionPosting,
      GoodsReceiptType,
      
      // Stock Transfers

      IssuingOrReceivingPlant,
      IssuingOrReceivingStorageLoc,
      IssgOrRcvgMaterial,
      IssgOrRcvgBatch,
      IssgOrRcvgSpclStockInd,
      IssuingOrReceivingStockType,
      IssuingOrReceivingValType,      
      
      cast(IssgOrRcvgResourceID as nsdm_transfer_resourcename preserving type ) as IssgOrRcvgResourceID,
      
      // Cancellation information

      GoodsMovementIsCancelled,
      ReversedMaterialDocument,
      ReversedMaterialDocumentItem,
      ReversedMaterialDocumentYear,
      
      // Periods & Times

      @Semantics.businessDate.at: true
      DocumentDate,
      AccountingDocumentType,
      CreationDate,
      CreationTime,
      
      PostingDate,
      @Semantics.fiscal.yearVariant: true
      FiscalYearVariant,
      FiscalYear,
      @Semantics.fiscal.yearPeriod: true
      FiscalYearPeriod,
      YearDay,
      @Semantics.calendar.yearWeek: true
      YearWeek,
      @Semantics.calendar.yearMonth: true
      YearMonth,
      @Semantics.calendar.yearQuarter: true
      YearQuarter,
      @Semantics.calendar.quarter: true
      CalendarQuarter,
      @Semantics.calendar.month: true
      CalendarMonth,
      @Semantics.calendar.week: true
      CalendarWeek,
      @Semantics.calendar.dayOfYear: true
      CalendarDay,
      WeekDay,      
      
      // Reference Documents

      SalesOrder,
      SalesOrderItem,
      SalesOrderScheduleLine,
      PurchaseOrder,
      cast(PurchaseOrderItem as nsdm_ebelp preserving type) as PurchaseOrderItem,
      ProjectNetwork,
      DeliveryDocument,
      cast(DeliveryDocumentItem as nsdm_posnr_vl preserving type) as DeliveryDocumentItem,
-- CAST to get rid of conversion exit
      cast(WBSElementInternalID as nsdm_wbselement preserving type) as WBSElementInternalID,
      ManufacturingOrder,
      ManufacturingOrderItem,     

      ReferenceDocument,
      GoodsIssueOrReceiptSlipNumber,
      
      ReferenceDocumentFiscalYear,
      InvtryMgmtRefDocumentItem,
      InvtryMgmtReferenceDocument, 
      
      // Other

      GoodsMovementType,
      InventoryValuationType,
      CreatedByUser,
      Supplier,
      Customer,
      IsMaterialDocumentHeader,
      MaterialDocumentHeaderText,
      MaterialDocumentItemText,
      IsCompletelyDelivered,
      GoodsRecipientName,
      UnloadingPointName,
      GoodsMovementRefDocType,
      GoodsMovementReasonCode,
      ShelfLifeExpirationDate,
      ManufactureDate,
      SerialNumbersAreCreatedAutomly,
      VersionForPrintingSlip,
      @Semantics.booleanIndicator: true
      ManualPrintIsTriggered,
    
      // Accounting information

      AccountAssignmentCategory,
      CostCenter,
      ControllingArea, // required to fulfill requirement to expose the full key (for cost center association)

      CostObject,
      GLAccount,
      FunctionalArea,
      @API.element.releaseState: #DECOMMISSIONED
      @API.element.successor: 'ProfitabilitySegment_2'
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'ProfitabilitySegment_2'
      ProfitabilitySegment,
      ProfitabilitySegment_2,      
      ProfitCenter,      
      MasterFixedAsset,
      FixedAsset,
      FundsCenter,
      Fund,   
      CommitmentItemShortID,
      GrantID,
      
      // Reservation

      Reservation,
      ReservationItem,
      ReservationIsFinallyIssued,
      
      DebitCreditCode,
      
      // Amounts

      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      @DefaultAggregation: #NONE
      TotalGoodsMvtAmtInCCCrcy,      
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      @DefaultAggregation: #NONE
      GoodsMovementStkAmtInCCCrcy,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      @DefaultAggregation: #NONE
      GoodsMvtCnsmpnAmtInCCCrcy,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      @DefaultAggregation: #NONE
      GdsMvtExtAmtInCoCodeCrcy,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      @DefaultAggregation: #NONE
      SlsPrcAmtInclVATInCoCodeCrcy,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      @DefaultAggregation: #NONE
      EnteredSlsAmtInCoCodeCrcy,
      
      // Quantities

      @Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
      @DefaultAggregation: #NONE
      MatlStkChangeQtyInBaseUnit,
      @Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
      @DefaultAggregation: #NONE
      MatlCnsmpnQtyInMatlBaseUnit,
      @Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
      @DefaultAggregation: #NONE
      QuantityInBaseUnit,
      @Semantics.quantity.unitOfMeasure: 'EntryUnit'
      @DefaultAggregation: #NONE
      QuantityInEntryUnit,
      @Semantics.quantity.unitOfMeasure: 'OrderQuantityUnit'
      @DefaultAggregation: #NONE 
      GoodsReceiptQtyInOrderUnit,
      
      @Consumption.hidden: true
      TransactionCode,      
      @Consumption.hidden: true
      @Semantics.booleanIndicator: true
      IsAutomaticallyCreated,
      @Consumption.hidden: true
      MaterialDocumentLine,
      @Consumption.hidden: true
      MaterialDocumentParentLine,
      @Consumption.hidden: true
      HierarchyNodeLevel,
      
      _Supplier,
      _BPStockOwner,
      _Customer,
      _SupplierCompanyByPlant,
      _CustomerCompanyByPlant,
      _StorageLocation,
      _IssuingOrReceivingStorageLoc
            
}
where MaterialDocumentRecordType = 'MDOC' or MaterialDocumentRecordType = 'MDOC_CP' 
   or MaterialDocumentRecordType = 'MDOC340' or MaterialDocumentRecordType = 'CORR' 

  

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MATERIALDOCUMENTRECORD"
],
"ASSOCIATED":
[
"I_CUSTOMER",
"I_CUSTOMERCOMPANYBYPLANT",
"I_STORAGELOCATION",
"I_SUPPLIER",
"I_SUPPLIERCOMPANYBYPLANT"
],
"BASE":
[
"I_MATERIALDOCUMENTRECORD"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/