I_HandlingUnitHeader
Handling Unit Header
I_HandlingUnitHeader (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_HandlingUnitHeader is a Basic CDS View that provides data about "Handling Unit Header" in SAP S/4HANA. It reads from 1 data source (vekp) and exposes 85 fields with key field HandlingUnitInternalID. It has 19 associations to related views.
SAP Help Documentation
| Category | CDS Views for Handling Unit Management |
|---|
Purpose
This CDS view retrieves general information of the handing unit header. 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 HandlingUnitExternalID External handling unit identifier PackagingMaterial Means of packing, for example, box, wooden pallet, that can be used to pack and transport goods (material type VERP). HandlingUnitPackingObjectKey Packing object key HandlingUnitPackingObjectType Packing object
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).
This CDS view retrieves general information of the handing unit header. 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 HandlingUnitExternalID External handling unit identifier PackagingMaterial Means of packing, for example, box, wooden pallet, that can be used to pack and transport goods (material type VERP). HandlingUnitPackingObjectKey Packing object key HandlingUnitPackingObjectType Packing object
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).
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Supply Chain |
| Application Component | LO-HU-VDM |
| Capabilities | Data Source in SQL Select, Data Source for Defining CDS Entities |
| Package | Supply Chain for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| vekp | HandlingUnitHeader | from |
Associations (19)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_HandlingUnitItem | _Item | $projection.HandlingUnitInternalID = _Item.HandlingUnitInternalID |
| [0..1] | I_ERPHandlingUnitReferenceDoc | _ERPHandlingUnitReferenceDoc | $projection.HandlingUnitInternalID = _ERPHandlingUnitReferenceDoc.HandlingUnitInternalID |
| [0..1] | I_UnitOfMeasure | _WeightUnit | _WeightUnit.UnitOfMeasure = $projection.WeightUnit |
| [0..1] | I_UnitOfMeasure | _WeightUnitTare | _WeightUnitTare.UnitOfMeasure = $projection.HandlingUnitTareWeightUnit |
| [0..1] | I_UnitOfMeasure | _VolumeUnit | _VolumeUnit.UnitOfMeasure = $projection.VolumeUnit |
| [0..1] | I_UnitOfMeasure | _VolumeUnitTare | _VolumeUnitTare.UnitOfMeasure = $projection.HandlingUnitTareVolumeUnit |
| [0..1] | I_UnitOfMeasure | _UnitOfMeasureDimension | _UnitOfMeasureDimension.UnitOfMeasure = $projection.UnitOfMeasureDimension |
| [0..1] | I_Material | _PackagingMaterial | _PackagingMaterial.Material = $projection.PackagingMaterial and ( _PackagingMaterial.MaterialType = 'VERP' or _PackagingMaterial.MaterialType = 'LEIH' ) |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation |
| [0..1] | I_ShippingPoint | _ShippingPoint | _ShippingPoint.ShippingPoint = $projection.ShippingPoint |
| [0..1] | I_LoadingPoint | _LoadingPoint | _LoadingPoint.ShippingPoint = $projection.ShippingPoint and $projection.LoadingPoint = _LoadingPoint.LoadingPoint |
| [0..1] | I_MeansOfTransportType | _PackagingMaterialType | _PackagingMaterialType.MeansOfTransportType = $projection.PackagingMaterialType |
| [0..1] | I_MaterialGroupPackMaterials | _PackagingMaterialGroup | _PackagingMaterialGroup.MaterialGroup = $projection.PackagingMaterialGroup |
| [0..1] | I_SalesDocumentItemCategory | _SalesDocumentItemCategory | $projection.SalesDocumentItemCategory = _SalesDocumentItemCategory.SalesDocumentItemCategory |
| [0..1] | I_SalesOrganization | _SalesOrganization | $projection.SalesOrganization = _SalesOrganization.SalesOrganization |
| [0..1] | I_HandlingUnitPackMatCategory | _PackagingMaterialCategory | $projection.PackagingMaterialCategory = _PackagingMaterialCategory.PackagingMaterialCategory |
| [0..1] | I_HandlingUnitPackObjectType | _PackingObjectType | $projection.HandlingUnitPackingObjectType = _PackingObjectType.HandlingUnitPackingObjectType |
| [0..*] | I_HandlingUnitHistory | _HandlingUnitHistory | _HandlingUnitHistory.SourceHandlingUnitUUID = $projection.SourceHandlingUnitUUID |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Handling Unit Header | 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 | IHANDLINGUNITHD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.representativeKey | HandlingUnitInternalId | 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 (85)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | HandlingUnitInternalID | venum | Internal Handling Unit Number | |
| HandlingUnitExternalID | exidv | External Handling Unit Identification | ||
| HandlingUnitExternalIdType | exida | Type of External Handling Unit Identifier | ||
| ShippingPoint | vstel | Shipping Point / Receiving Point | ||
| LoadingPoint | lstel | Loading Point | ||
| PackagingMaterial | vhilm | Packaging Materials | ||
| Plant | werks | Receiving Plant | ||
| SalesDocumentItemCategory | pstyv | Sales Document Item Category | ||
| SalesOrganization | vkorg | Sales Organization | ||
| DistributionChannel | vtweg | Reference distrib.channel for cust.and material masters | ||
| StorageLocation | lgort | Storage Location | ||
| Warehouse | lgnum | Warehouse Number/Warehouse Complex | ||
| GrossWeight | brgew | Total Weight of Handling Unit | ||
| NetWeight | ntgew | Loading Weight of Handling Unit | ||
| HandlingUnitMaxWeight | magew | Allowed Loading Weight of a Handling Unit | ||
| WeightUnit | gewei_max | Unit of Weight | ||
| HandlingUnitTareWeight | tarag | Tare Weight of Handling Unit | ||
| HandlingUnitTareWeightUnit | gewei | Unit of Weight | ||
| HandlingUnitWeightTolerance | gewto | Excess Weight Tolerance for Handling unit | ||
| GrossVolume | btvol | Total Volume of Handling Unit | ||
| HandlingUnitNetVolume | ntvol | Loading Volume of Handling Unit | ||
| HandlingUnitMaxVolume | mavol | Allowed Loading Volume for Handling Unit | ||
| VolumeUnit | voleh_max | Volume Unit | ||
| HandlingUnitTareVolume | tavol | Tare Volume of Handling Unit | ||
| HandlingUnitTareVolumeUnit | voleh | Volume Unit | ||
| HandlingUnitVolumeTolerance | volto | Excess Volume Tolerance of the Handling Unit | ||
| CreatedByUser | ernam | Name of Person Responsible for Creating the Object | ||
| CreationDate | erdat | Record Created On | ||
| CreationTime | eruhr | Entry time | ||
| LastChangedByUser | aenam | Name of Person Who Changed Object | ||
| LastChangeDate | aedat | Last Changed On | ||
| LastChangeTime | aezet | Time last change was made | ||
| HandlingUnitGroup1 | vegr1 | Handling Unit Group 1 (Freely Definable) | ||
| HandlingUnitGroup2 | vegr2 | Handling Unit Group 2 (Freely Definable) | ||
| HandlingUnitGroup3 | vegr3 | Handling Unit Group 3 (Freely Definable) | ||
| HandlingUnitGroup4 | vegr4 | Handling Unit Group 4 (Freely Definable) | ||
| HandlingUnitGroup5 | vegr5 | Handling Unit Group 5 (Freely Definable) | ||
| HandlingUnitLength | laeng | Length | ||
| HandlingUnitWidth | breit | Width | ||
| HandlingUnitHeight | hoehe | Height | ||
| UnitOfMeasureDimension | meabm | Unit of Dimension for Length/Width/Height | ||
| HandlingUnitBaseUnitOfMeasure | meins | Base Unit of Measure | ||
| HandlingUnitDeliveryWithPkgItm | vbeln_gen | Delivery in Which Packaging Material Is Generated as an Item | ||
| HandlingUnitGenDeliveryItem | posnr_gen | Generated delivery item | ||
| HandlingUnitContentDescription | inhalt | Description of Handling Unit Content | ||
| PackagingMaterialType | vhart | Packaging Material Type | ||
| PackagingMaterialGroup | magrv | Material Group: Packaging Materials | ||
| HandlingUnitWeightVolumeIsFix | gewfx | Weight and Volume Fixed | ||
| PackagingMaterialCategory | veltp | Packaging Material Category | ||
| HandlingUnitSecondExternalId | exidv2 | Handling Unit's 2nd External Identification | ||
| HandlingUnitCustomerPackMat | vhilm_ku | Partner's (Customer's or Vendor's) Packaging Material | ||
| HandlingUnitPackingObjectType | _ERPHandlingUnitReferenceDoc | HandlingUnitRefDocType | Packing Object | |
| HandlingUnitPackingObjectKey | _ERPHandlingUnitReferenceDoc | HandlingUnitReferenceDocument | Key for Object to Which the Handling Unit is Assigned | |
| SourceHandlingUnitUUID | handle | Worldwide unique key for VEKP-VENUM | ||
| HandlingUnitIsClosed | kzgvh | Packaging Material is Closed Packaging | ||
| HazardousSubstanceIndicator | adge_dg | Packing Level is Relevant for Dangerous Goods | ||
| HandlingUnitLowerLevelRefer | uevel | Higher-Level Handling Unit | ||
| HandlingUnitInternalStatus | status | Handling unit status | ||
| PackingInstruction | Unique internal packing object number | |||
| PackingInstructionStatus | packvorschr_st | Local packing status for a single HU (without sub HUs) | ||
| PackInstructExtLabelNotPrinted | labeltyp | Checkbox: Do Not Print External Shipping Label | ||
| PackingInstructMaxLoadQuantity | zul_aufl | Allowed Load | ||
| HandlingUnitIsComplete | erlkz | Status (at this time without functionality) | ||
| HandlingUnitStockMgmtType | hu_system | HU and IM Stock in Separate Systems | ||
| HandlingUnitSlotNumber | slot_num | Slot Number (LOGPOS_EXT_LONG) | ||
| ProductionSupplyArea | supplyarea | Production Supply Area | ||
| HndlgUnitRlvnceForJIT | jit_relevant_ind | Just-In-Time Relevance | ||
| _WeightUnit | _WeightUnit | |||
| _WeightUnitTare | _WeightUnitTare | |||
| _VolumeUnit | _VolumeUnit | |||
| _VolumeUnitTare | _VolumeUnitTare | |||
| _UnitOfMeasureDimension | _UnitOfMeasureDimension | |||
| _PackagingMaterial | _PackagingMaterial | |||
| _ShippingPoint | _ShippingPoint | |||
| _LoadingPoint | _LoadingPoint | |||
| _Item | _Item | |||
| _PackagingMaterialType | _PackagingMaterialType | |||
| _PackagingMaterialGroup | _PackagingMaterialGroup | |||
| _PackingObjectType | _PackingObjectType | |||
| _Plant | _Plant | |||
| _SalesDocumentItemCategory | _SalesDocumentItemCategory | |||
| _SalesOrganization | _SalesOrganization | |||
| _PackagingMaterialCategory | _PackagingMaterialCategory | |||
| _StorageLocation | _StorageLocation | |||
| _HandlingUnitHistory | _HandlingUnitHistory |
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_HandlingUnitHeader.
-- 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_HandlingUnitHeader AS
SELECT
venum AS HandlingUnitInternalID,
exidv AS HandlingUnitExternalID,
exida AS HandlingUnitExternalIdType,
vstel AS ShippingPoint,
lstel AS LoadingPoint,
vhilm AS PackagingMaterial,
werks AS Plant,
pstyv AS SalesDocumentItemCategory,
vkorg AS SalesOrganization,
vtweg AS DistributionChannel,
lgort AS StorageLocation,
lgnum AS Warehouse,
brgew AS GrossWeight,
ntgew AS NetWeight,
magew AS HandlingUnitMaxWeight,
gewei_max AS WeightUnit,
tarag AS HandlingUnitTareWeight,
gewei AS HandlingUnitTareWeightUnit,
gewto AS HandlingUnitWeightTolerance,
btvol AS GrossVolume,
ntvol AS HandlingUnitNetVolume,
mavol AS HandlingUnitMaxVolume,
voleh_max AS VolumeUnit,
tavol AS HandlingUnitTareVolume,
voleh AS HandlingUnitTareVolumeUnit,
volto AS HandlingUnitVolumeTolerance,
ernam AS CreatedByUser,
erdat AS CreationDate,
eruhr AS CreationTime,
aenam AS LastChangedByUser,
aedat AS LastChangeDate,
aezet AS LastChangeTime,
vegr1 AS HandlingUnitGroup1,
vegr2 AS HandlingUnitGroup2,
vegr3 AS HandlingUnitGroup3,
vegr4 AS HandlingUnitGroup4,
vegr5 AS HandlingUnitGroup5,
laeng AS HandlingUnitLength,
breit AS HandlingUnitWidth,
hoehe AS HandlingUnitHeight,
meabm AS UnitOfMeasureDimension,
meins AS HandlingUnitBaseUnitOfMeasure,
vbeln_gen AS HandlingUnitDeliveryWithPkgItm,
posnr_gen AS HandlingUnitGenDeliveryItem,
inhalt AS HandlingUnitContentDescription,
vhart AS PackagingMaterialType,
magrv AS PackagingMaterialGroup,
gewfx AS HandlingUnitWeightVolumeIsFix,
veltp AS PackagingMaterialCategory,
exidv2 AS HandlingUnitSecondExternalId,
vhilm_ku AS HandlingUnitCustomerPackMat,
_ERPHandlingUnitReferenceDoc.HandlingUnitRefDocType AS HandlingUnitPackingObjectType,
_ERPHandlingUnitReferenceDoc.HandlingUnitReferenceDocument AS HandlingUnitPackingObjectKey,
handle AS SourceHandlingUnitUUID,
kzgvh AS HandlingUnitIsClosed,
adge_dg AS HazardousSubstanceIndicator,
uevel AS HandlingUnitLowerLevelRefer,
status AS HandlingUnitInternalStatus,
cast( packvorschr as pl_packnr preserving type ) AS PackingInstruction,
packvorschr_st AS PackingInstructionStatus,
labeltyp AS PackInstructExtLabelNotPrinted,
zul_aufl AS PackingInstructMaxLoadQuantity,
erlkz AS HandlingUnitIsComplete,
hu_system AS HandlingUnitStockMgmtType,
slot_num AS HandlingUnitSlotNumber,
supplyarea AS ProductionSupplyArea,
jit_relevant_ind AS HndlgUnitRlvnceForJIT
FROM vekp AS HandlingUnitHeader
LEFT OUTER JOIN I_HandlingUnitItem AS _Item ON HandlingUnitInternalID = _Item.HandlingUnitInternalID -- association [0..*]
LEFT OUTER JOIN I_ERPHandlingUnitReferenceDoc AS _ERPHandlingUnitReferenceDoc ON HandlingUnitInternalID = _ERPHandlingUnitReferenceDoc.HandlingUnitInternalID -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _WeightUnit ON _WeightUnit.UnitOfMeasure = WeightUnit -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _WeightUnitTare ON _WeightUnitTare.UnitOfMeasure = HandlingUnitTareWeightUnit -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VolumeUnit ON _VolumeUnit.UnitOfMeasure = VolumeUnit -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VolumeUnitTare ON _VolumeUnitTare.UnitOfMeasure = HandlingUnitTareVolumeUnit -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasureDimension ON _UnitOfMeasureDimension.UnitOfMeasure = UnitOfMeasureDimension -- association [0..1]
LEFT OUTER JOIN I_Material AS _PackagingMaterial ON _PackagingMaterial.Material = PackagingMaterial AND ( _PackagingMaterial.MaterialType = 'VERP' OR _PackagingMaterial.MaterialType = 'LEIH' ) -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- 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_ShippingPoint AS _ShippingPoint ON _ShippingPoint.ShippingPoint = ShippingPoint -- association [0..1]
LEFT OUTER JOIN I_LoadingPoint AS _LoadingPoint ON _LoadingPoint.ShippingPoint = ShippingPoint AND LoadingPoint = _LoadingPoint.LoadingPoint -- association [0..1]
LEFT OUTER JOIN I_MeansOfTransportType AS _PackagingMaterialType ON _PackagingMaterialType.MeansOfTransportType = PackagingMaterialType -- association [0..1]
LEFT OUTER JOIN I_MaterialGroupPackMaterials AS _PackagingMaterialGroup ON _PackagingMaterialGroup.MaterialGroup = PackagingMaterialGroup -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentItemCategory AS _SalesDocumentItemCategory ON SalesDocumentItemCategory = _SalesDocumentItemCategory.SalesDocumentItemCategory -- association [0..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization -- association [0..1]
LEFT OUTER JOIN I_HandlingUnitPackMatCategory AS _PackagingMaterialCategory ON PackagingMaterialCategory = _PackagingMaterialCategory.PackagingMaterialCategory -- association [0..1]
LEFT OUTER JOIN I_HandlingUnitPackObjectType AS _PackingObjectType ON HandlingUnitPackingObjectType = _PackingObjectType.HandlingUnitPackingObjectType -- association [0..1]
LEFT OUTER JOIN I_HandlingUnitHistory AS _HandlingUnitHistory ON _HandlingUnitHistory.SourceHandlingUnitUUID = SourceHandlingUnitUUID -- association [0..*]
;
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