C_GoodsMovementQuery
Goods Movement Analysis
C_GoodsMovementQuery is a Consumption CDS View that provides data about "Goods Movement Analysis" in SAP S/4HANA. It reads from 1 data source (I_GoodsMovementCube) and exposes 98 fields. Part of development package MM_IM_VDM_STOCK.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GoodsMovementCube | GoodsMovementCube | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | Goods Movement Analysis | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| OData.publish | true | view | |
| VDM.private | false | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.query | true | view | |
| Analytics.technicalName | CGDSMVTQUERY | view |
Fields (98)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| MaterialDocumentYear | MaterialDocumentYear | Material Document Year | ||
| MaterialDocument | MaterialDocument | Material Doc. | ||
| MaterialDocumentItem | MaterialDocumentItem | Material Document Item | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| Material | Material | Vehicle Model | ||
| Batch | Batch | Lot No. | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| InventoryStockType | InventoryStockType | Stock Type | ||
| StockOwner | StockOwner | Owner of stock | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| InventorySpecialStockValnType | InventorySpecialStockValnType | Valuation | ||
| ResourceID | ResourceID | Vehicle ID | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| IsReversalMovementType | IsReversalMovementType | |||
| IsEffectiveGoodsMovement | ||||
| MaterialGroup | MaterialGroup | Product Group | ||
| MaterialType | MaterialType | Material Type | ||
| IssgOrRcvgMaterial | IssgOrRcvgMaterial | Transfer Material | ||
| IssgOrRcvgBatch | IssgOrRcvgBatch | Transfer Batch | ||
| IssgOrRcvgSpclStockInd | IssgOrRcvgSpclStockInd | Special Stock | ||
| IssuingOrReceivingStockType | IssuingOrReceivingStockType | |||
| IssgOrRcvgResourceID | IssgOrRcvgResourceID | |||
| GoodsMovementIsCancelled | GoodsMovementIsCancelled | Is Item Cancelled | ||
| GoodsMovementCancellationType | GoodsMovementCancellationType | |||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| YearDay | YearDay | Day of the year | ||
| YearWeek | YearWeek | Year and Calendar Week | ||
| YearMonth | YearMonth | Year Month | ||
| YearQuarter | YearQuarter | Year Quarter | ||
| CalendarQuarter | CalendarQuarter | Calendar Quarter | ||
| CalendarMonth | CalendarMonth | Calendar Month | ||
| CalendarWeek | CalendarWeek | Calendar Week | ||
| CalendarDay | CalendarDay | Occur Day in a Month | ||
| WeekDay | WeekDay | Weekdays | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| SalesOrderScheduleLine | SalesOrderScheduleLine | SOrder schedule | ||
| PurchaseOrder | PurchaseOrder | Purchasing Document | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| DeliveryDocument | DeliveryDocument | Outbound Delivery | ||
| DeliveryDocumentItem | DeliveryDocumentItem | Outb. Delivery Item | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| ManufacturingOrder | ManufacturingOrder | Order | ||
| ManufacturingOrderItem | ManufacturingOrderItem | Manufacturing Order Item | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| OrganizationDivision | OrganizationDivision | Org. Division | ||
| SalesGroup | SalesGroup | Sales Group | ||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| GoodsMovementReasonCode | GoodsMovementReasonCode | Reason for Mvmt | ||
| InventoryValuationType | InventoryValuationType | Valuation Type | ||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| CostObject | CostObject | Cost Object | ||
| CostCenter | CostCenter | Cost Center | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| ProfitabilitySegment | ProfitabilitySegment | Profitability Segment | ||
| ProfitabilitySegment_2 | ProfitabilitySegment_2 | Profit. segment | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| GLAccount | GLAccount | General Ledger | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| StockChangeCategory | StockChangeCategory | |||
| IsConsumptionMovement | IsConsumptionMovement | |||
| IsCrossPlantTransfer | IsCrossPlantTransfer | |||
| IsStorageLocChangeByTransf | IsStorageLocChangeByTransf | |||
| IsMaterialChangeByTransf | IsMaterialChangeByTransf | |||
| IsBatchChangeByTransf | IsBatchChangeByTransf | |||
| IsSpclStkTypeChangeByTransf | IsSpclStkTypeChangeByTransf | |||
| IsStockTypeChangeByTransf | IsStockTypeChangeByTransf | |||
| NumberOfGoodsReceipts | NumberOfGoodsReceipts | Number of Goods Receipts | ||
| NumberOfGoodsIssues | NumberOfGoodsIssues | |||
| NumberOfGoodsMovements | NumberOfGoodsMovements | |||
| GoodsReceiptAmountInCoCodeCrcy | GoodsReceiptAmountInCoCodeCrcy | |||
| GoodsIssueAmountInCoCodeCrcy | GoodsIssueAmountInCoCodeCrcy | |||
| GoodsMvtCnsmpnAmtInCCCrcy | GoodsMvtCnsmpnAmtInCCCrcy | |||
| GoodsMovementStkAmtInCCCrcy | GoodsMovementStkAmtInCCCrcy | |||
| GoodsReceiptQtyInBaseUnit | GoodsReceiptQtyInBaseUnit | |||
| GoodsIssueQtyInBaseUnit | GoodsIssueQtyInBaseUnit | |||
| TotalGdsMvtQtyInBaseUnit | TotalGdsMvtQtyInBaseUnit | |||
| MatlCnsmpnQtyInMatlBaseUnit | MatlCnsmpnQtyInMatlBaseUnit | |||
| MatlStkChangeQtyInBaseUnit | MatlStkChangeQtyInBaseUnit | |||
| MinGoodsRcptQtyInBaseUnit | MinGoodsRcptQtyInBaseUnit | |||
| MaxGoodsRcptQtyInBaseUnit | MaxGoodsRcptQtyInBaseUnit | |||
| MinGoodsIssueQtyInBaseUnit | MinGoodsIssueQtyInBaseUnit | |||
| MaxGoodsIssueQtyInBaseUnit | MaxGoodsIssueQtyInBaseUnit | |||
| MinCnsmpnQtyInBaseUnit | MinCnsmpnQtyInBaseUnit | |||
| MaxCnsmpnQtyInBaseUnit | MaxCnsmpnQtyInBaseUnit | |||
| FirstGoodsMovementPostingDate | FirstGoodsMovementPostingDate | Period Start | ||
| LastGoodsMovementPostingDate | LastGoodsMovementPostingDate | Period End |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view C_GoodsMovementQuery.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW C_GoodsMovementQuery AS
SELECT
MaterialDocumentYear,
MaterialDocument,
MaterialDocumentItem,
Plant,
StorageLocation,
Material,
Batch,
InventorySpecialStockType,
InventoryStockType,
StockOwner,
CompanyCode,
InventorySpecialStockValnType,
ResourceID,
CompanyCodeCurrency,
MaterialBaseUnit,
IsReversalMovementType,
cast(IsEffectiveGoodsMovement as nsdm_is_effective_goodsmvt preserving type ) AS IsEffectiveGoodsMovement,
MaterialGroup,
MaterialType,
IssgOrRcvgMaterial,
IssgOrRcvgBatch,
IssgOrRcvgSpclStockInd,
IssuingOrReceivingStockType,
IssgOrRcvgResourceID,
GoodsMovementIsCancelled,
GoodsMovementCancellationType,
DocumentDate,
PostingDate,
FiscalYearVariant,
FiscalYear,
FiscalYearPeriod,
YearDay,
YearWeek,
YearMonth,
YearQuarter,
CalendarQuarter,
CalendarMonth,
CalendarWeek,
CalendarDay,
WeekDay,
SalesOrder,
SalesOrderItem,
SalesOrderScheduleLine,
PurchaseOrder,
PurchaseOrderItem,
DeliveryDocument,
DeliveryDocumentItem,
WBSElementInternalID,
ManufacturingOrder,
ManufacturingOrderItem,
PurchasingGroup,
PurchasingOrganization,
SalesOrganization,
DistributionChannel,
OrganizationDivision,
SalesGroup,
GoodsMovementType,
GoodsMovementReasonCode,
InventoryValuationType,
Supplier,
Customer,
AccountAssignmentCategory,
CostObject,
CostCenter,
ControllingArea,
ProfitabilitySegment,
ProfitabilitySegment_2,
ProfitCenter,
GLAccount,
FunctionalArea,
StockChangeCategory,
IsConsumptionMovement,
IsCrossPlantTransfer,
IsStorageLocChangeByTransf,
IsMaterialChangeByTransf,
IsBatchChangeByTransf,
IsSpclStkTypeChangeByTransf,
IsStockTypeChangeByTransf,
NumberOfGoodsReceipts,
NumberOfGoodsIssues,
NumberOfGoodsMovements,
GoodsReceiptAmountInCoCodeCrcy,
GoodsIssueAmountInCoCodeCrcy,
GoodsMvtCnsmpnAmtInCCCrcy,
GoodsMovementStkAmtInCCCrcy,
GoodsReceiptQtyInBaseUnit,
GoodsIssueQtyInBaseUnit,
TotalGdsMvtQtyInBaseUnit,
MatlCnsmpnQtyInMatlBaseUnit,
MatlStkChangeQtyInBaseUnit,
MinGoodsRcptQtyInBaseUnit,
MaxGoodsRcptQtyInBaseUnit,
MinGoodsIssueQtyInBaseUnit,
MaxGoodsIssueQtyInBaseUnit,
MinCnsmpnQtyInBaseUnit,
MaxCnsmpnQtyInBaseUnit,
FirstGoodsMovementPostingDate,
LastGoodsMovementPostingDate
FROM I_GoodsMovementCube AS GoodsMovementCube
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA