I_PhysInvtryReasonCode

DDL: I_PHYSINVTRYREASONCODE Type: view BASIC

Physical Inventory Reason Type

I_PhysInvtryReasonCode (Basic)

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

Reason For Physical Inventory Difference · Supply Chain

I_PhysInvtryReasonCode is a Basic CDS View that provides data about "Physical Inventory Reason Type" in SAP S/4HANA. It reads from 1 data source (t157d) and exposes 4 fields with key fields GoodsMovementType, ReasonForPhysInvtryDifference. It has 2 associations to related views.

SAP Help Documentation

CategoryCDS Views for Physical Inventory
Data CategoryBasic
StatusReleased
Purpose
This CDS view provides supported values for Goods Movement Type (Inventory Management) and Reason for Movement . The values and their meaning depend on your individual settings.

Structure
Business Objects The business object Material Document is using the Physical Inventory Reason Type . Main input parameters This view does not have any input parameters. Measures and attributes The following attributes are provided: Goods Movement Type (Inventory Management) Reason for Movement

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSupply Chain
Application ComponentMM-IM-VDM-PI
CapabilitiesAnalytical Dimension, Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities, Data Source for Data Extraction
PackageSupply Chain for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides supported values for Goods Movement Type (Inventory Management) and Reason for Movement.</p> <p>The values and their meaning depend on your individual settings.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
t157d t157d from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_GoodsMovementType _GoodsMovementType $projection.GoodsMovementType = _GoodsMovementType.GoodsMovementType
[0..*] I_PhysInvtryReasonCodeText _PhysInvtryReasonCodeText $projection.GoodsMovementType = _PhysInvtryReasonCodeText.GoodsMovementType and $projection.ReasonForPhysInvtryDifference = _PhysInvtryReasonCodeText.ReasonForPhysInvtryDifference

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName IPIREASON view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.buffering.status #ACTIVE view
AbapCatalog.buffering.type #FULL view
EndUserText.label Physical Inventory Reason Type view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.representativeKey ReasonForPhysInvtryDifference view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.sapObjectNodeType.name ReasonForPhysicalInventoryDiff view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Analytics.dataExtraction.enabled true view
Metadata.ignorePropagatedAnnotations true view

Fields (4)

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

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