I_HandlingUnitItem

DDL: I_HANDLINGUNITITEM Type: view BASIC

Handling Unit Item

I_HandlingUnitItem (Basic)

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

Supply Chain

I_HandlingUnitItem is a Basic CDS View that provides data about "Handling Unit Item" in SAP S/4HANA. It reads from 1 data source (vepo) and exposes 44 fields with key fields HandlingUnitInternalID, HandlingUnitItem. It has 10 associations to related views.

SAP Help Documentation

CategoryCDS Views for Handling Unit Management
Purpose
This CDS view retrieves general information of the handing unit item. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have a respective business catalog assigned, for example SAP_LO_BC_API_HNDLGUNIT_PC .

Structure
Parameters The view does not have any parameters. Fields Used for Filtering All fields can be used for filtering. Further Important Fields Important fields in this view include the following: Field Name Description Material Alphanumeric key uniquely identifying the material. Plant Key uniquely identifying the plant StorageLocation Number of storage location in which material is stored. Batch Specific batch in which the material is manufactured. HandlingUnitQuantity Number of pieces of the material packed in the handling unit.

Constraints
This CDS view is only valid for handling units in storage locations managed in Logistics General (LO), not for handling units in storage locations managed with Warehouse Management (WM).

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSupply Chain
Application ComponentLO-HU-VDM
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities
PackageSupply Chain for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
vepo HandlingUnitItem from

Associations (10)

CardinalityTargetAliasCondition
[1..1] I_HandlingUnitHeader _HandlingUnitHeader $projection.HandlingUnitInternalID = _HandlingUnitHeader.HandlingUnitInternalID
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_UnitOfMeasure _BaseUnitOfMeasure _BaseUnitOfMeasure.UnitOfMeasure = $projection.HandlingUnitQuantityUnit
[0..1] I_UnitOfMeasure _AlternativeUnitOfMeasure _AlternativeUnitOfMeasure.UnitOfMeasure = $projection.HandlingUnitAltUnitOfMeasure
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..*] I_SerialNumberHandlingUnit _HandlingUnitSerialNumber _HandlingUnitSerialNumber.HandlingUnitInternalID = $projection.HandlingUnitInternalID and $projection.HandlingUnitItem = _HandlingUnitSerialNumber.HandlingUnitItem
[0..1] I_SalesDocumentItemCategory _SalesDocumentItemCategory $projection.SalesDocumentItemCategory = _SalesDocumentItemCategory.SalesDocumentItemCategory
[0..1] I_BatchCrossPlant _Batch $projection.Batch = _Batch.Batch and $projection.Material = _Batch.Material
[0..*] I_JITCallCompMaterialBasic _JITCallCompMaterialBasic $projection.HandlingUnitReferenceDocument = _JITCallCompMaterialBasic.SalesOrder and $projection.HandlingUnitRefDocumentItem = _JITCallCompMaterialBasic.SalesOrderItem

Annotations (15)

NameValueLevelField
EndUserText.label Handling Unit Item view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
AbapCatalog.sqlViewName IHANDLINGUNITIT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.representativeKey HandlingUnitItem view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.modelingPattern #NONE view
Metadata.ignorePropagatedAnnotations true view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY HandlingUnitInternalID venum Internal Handling Unit Number
KEY HandlingUnitItem vepos Handling Unit Item
HandlingUnitExternalID _HandlingUnitHeader HandlingUnitExternalID External Handling Unit Identification
HandlingUnitTypeOfContent velin Type of Handling-unit Item Content
HandlingUnitReferenceDocument vbeln SD Sched. Agmt
HandlingUnitRefDocumentItem posnr Delivery Item
SDDocumentCategory vbtyp SD Document Category
HandlingUnitNestedInternalID unvel Lower-level handling unit
HandlingUnitQuantity vemng Base Quantity Packed in the Handling Unit Item
HandlingUnitQuantityUnit vemeh Base Unit of Measure of the Quantity to be Packed (VEMNG)
HndlgUnitQuantityUnitISOCode _BaseUnitOfMeasure UnitOfMeasureISOCode ISO Code for Unit of Measurement
HndlgUnitQuantityUnitSAPCode _BaseUnitOfMeasure UnitOfMeasureSAPCode Unit of Measurement, Internal SAP Code (No Conversion)
HandlingUnitAltUnitOfMeasure altme Alternative unit of measure for stock unit of measure
HandlingUnitNrOfAuxPackgMat veanz Number of Auxiliary Packaging Materials in the HU Item
HandlingUnitItemIsSupplement kzbei Checkbox: Supplementary item
Material matnr Material Number
Batch charg Chargeable Proc.
Plant werks Receiving Plant
StorageLocation lgort Storage Location
ConfigurationObject cuobj Internal Object Number
InventorySpecialStockType sobkz Special Stock Indicator
SpecialStockNumber sonum Special Stock Number
HandlingUnitInspectLotNumber qplos Inspection Lot Number
HandlingUnitNumberOfSerialNumb anzsn Number of serial numbers
SerialNumberProfile serail Serial Number Profile
SalesDocumentItemCategory pstyv Sales Document Item Category
HandlingUnitGenDeliveryItem posnr_gen Generated delivery item
MaterialByCustomer p_material Material number of partner (customer / supplier)
HandlingUnitGoodsReceiptDate wdatu Date of Goods Receipt
ShelfLifeExpirationDate vfdat Shelf Life Expiration or Best-Before Date
StockSegment sgt_scat Stock Segment
HandlingUnitItemUUID handle_vepo Worldwide unique key for VEPO
InternalJITCallNumber int_call_num Call Number for JIT
JITCallComponentGrpItemNumber compgroup_item_num JIT Call Component Group Item Number
_HandlingUnitHeader _HandlingUnitHeader
_BaseUnitOfMeasure _BaseUnitOfMeasure
_AlternativeUnitOfMeasure _AlternativeUnitOfMeasure
_Material _Material
_Plant _Plant
_StorageLocation _StorageLocation
_SalesDocumentItemCategory _SalesDocumentItemCategory
_Batch _Batch
_JITCallCompMaterialBasic _JITCallCompMaterialBasic
_HandlingUnitSerialNumber _HandlingUnitSerialNumber

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_HandlingUnitItem.
-- 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_HandlingUnitItem AS
SELECT
  venum AS HandlingUnitInternalID,
  vepos AS HandlingUnitItem,
  _HandlingUnitHeader.HandlingUnitExternalID AS HandlingUnitExternalID,
  velin AS HandlingUnitTypeOfContent,
  vbeln AS HandlingUnitReferenceDocument,
  posnr AS HandlingUnitRefDocumentItem,
  vbtyp AS SDDocumentCategory,
  unvel AS HandlingUnitNestedInternalID,
  vemng AS HandlingUnitQuantity,
  vemeh AS HandlingUnitQuantityUnit,
  _BaseUnitOfMeasure.UnitOfMeasureISOCode AS HndlgUnitQuantityUnitISOCode,
  _BaseUnitOfMeasure.UnitOfMeasureSAPCode AS HndlgUnitQuantityUnitSAPCode,
  altme AS HandlingUnitAltUnitOfMeasure,
  veanz AS HandlingUnitNrOfAuxPackgMat,
  kzbei AS HandlingUnitItemIsSupplement,
  matnr AS Material,
  charg AS Batch,
  werks AS Plant,
  lgort AS StorageLocation,
  cuobj AS ConfigurationObject,
  sobkz AS InventorySpecialStockType,
  sonum AS SpecialStockNumber,
  qplos AS HandlingUnitInspectLotNumber,
  anzsn AS HandlingUnitNumberOfSerialNumb,
  serail AS SerialNumberProfile,
  pstyv AS SalesDocumentItemCategory,
  posnr_gen AS HandlingUnitGenDeliveryItem,
  p_material AS MaterialByCustomer,
  wdatu AS HandlingUnitGoodsReceiptDate,
  vfdat AS ShelfLifeExpirationDate,
  sgt_scat AS StockSegment,
  handle_vepo AS HandlingUnitItemUUID,
  int_call_num AS InternalJITCallNumber,
  compgroup_item_num AS JITCallComponentGrpItemNumber
FROM vepo AS HandlingUnitItem
LEFT OUTER JOIN I_HandlingUnitHeader AS _HandlingUnitHeader ON HandlingUnitInternalID = _HandlingUnitHeader.HandlingUnitInternalID  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnitOfMeasure ON _BaseUnitOfMeasure.UnitOfMeasure = HandlingUnitQuantityUnit  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _AlternativeUnitOfMeasure ON _AlternativeUnitOfMeasure.UnitOfMeasure = HandlingUnitAltUnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_SerialNumberHandlingUnit AS _HandlingUnitSerialNumber ON _HandlingUnitSerialNumber.HandlingUnitInternalID = HandlingUnitInternalID AND HandlingUnitItem = _HandlingUnitSerialNumber.HandlingUnitItem  -- association [0..*]
LEFT OUTER JOIN I_SalesDocumentItemCategory AS _SalesDocumentItemCategory ON SalesDocumentItemCategory = _SalesDocumentItemCategory.SalesDocumentItemCategory  -- association [0..1]
LEFT OUTER JOIN I_BatchCrossPlant AS _Batch ON Batch = _Batch.Batch AND Material = _Batch.Material  -- association [0..1]
LEFT OUTER JOIN I_JITCallCompMaterialBasic AS _JITCallCompMaterialBasic ON HandlingUnitReferenceDocument = _JITCallCompMaterialBasic.SalesOrder AND HandlingUnitRefDocumentItem = _JITCallCompMaterialBasic.SalesOrderItem  -- association [0..*]
;