I_GoodsMovementReasonCode

DDL: I_GOODSMOVEMENTREASONCODE Type: view_entity BASIC

Goods Movement Reason Code

I_GoodsMovementReasonCode (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Goods Movement Reason · Supply Chain

I_GoodsMovementReasonCode is a Basic CDS View (Dimension) that provides data about "Goods Movement Reason Code" in SAP S/4HANA. It reads from 1 data source (t157d) and exposes 4 fields with key fields GoodsMovementType, GoodsMovementReasonCode. It has 2 associations to related views.

SAP Help Documentation

CategoryCDS Views for Stock and Material Documents
Purpose
This view provides supported values for goods movement reason code. It provides the reason for the goods movement (for example, reason for a return delivery).

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSupply Chain
Application ComponentMM-IM-VDM-SGM
CapabilitiesAnalytical Dimension, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities, Data Source for Data Extraction, Data Source for Search, Data Source in SQL Select
PackageSupply Chain for SAP S/4HANA Cloud Private Edition
Description <p>This view provides supported values for goods movement reason code. It provides the reason for the goods movement (for example, reason for a return delivery).</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
t157d t157d from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_GoodsMovementType _GoodsMovementType $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType
[0..*] I_GoodsMovementReasonCodeText _Text $projection.GoodsMovementType = _Text.GoodsMovementType and $projection.GoodsMovementReasonCode = _Text.GoodsMovementReasonCode

Annotations (18)

NameValueLevelField
Analytics.technicalName IGdsMvtRsnCd view
Analytics.dataExtraction.enabled true view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
EndUserText.label Goods Movement Reason Code view
Consumption.ranked true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey GoodsMovementReasonCode view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.sapObjectNodeType.name GoodsMovementReason view
Search.searchable true view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
AbapCatalog.entityBuffer.definitionAllowed true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY GoodsMovementType bwart Movement Type (Inventory Management)
KEY GoodsMovementReasonCode grund Reason for Movement
_GoodsMovementType _GoodsMovementType
_Text _Text

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 I_GoodsMovementReasonCode.
-- 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 I_GoodsMovementReasonCode AS
SELECT
  bwart AS GoodsMovementType,
  grund AS GoodsMovementReasonCode
FROM t157d
LEFT OUTER JOIN I_GoodsMovementType AS _GoodsMovementType ON GoodsMovementType = _GoodsMovementType.GoodsMovementType  -- association [0..1]
LEFT OUTER JOIN I_GoodsMovementReasonCodeText AS _Text ON GoodsMovementType = _Text.GoodsMovementType AND GoodsMovementReasonCode = _Text.GoodsMovementReasonCode  -- association [0..*]
;