I_PackingInstructionHeader
Packing Instruction Header
I_PackingInstructionHeader (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_PackingInstructionHeader is a Basic CDS View that provides data about "Packing Instruction Header" in SAP S/4HANA. It reads from 1 data source (packkp) and exposes 47 fields with key field PackingInstructionSystemUUID. It has 7 associations to related views.
SAP Help Documentation
| Category | CDS Views for Handling Unit Management |
|---|
Purpose
This CDS view retrieves information about packing instructions stored on packing instruction header level, including dimensions, volumes, weights, and administrative details. This CDS view provides the data to answer the following business questions: What are the dimensions (height, width, length) of the handling unit associated with a packing instruction? What are the volume-related details, including total volue, loading volume, allowed loading volume, and tare volume, for a packing instruction? What are the weight-related details, including total weight, loading weight, allowed loading weight, and tare weight, for a packing instruction? What are the units of measure for dimensions, volumes, and weights used in the packing instruction? Who created or last changed the packing instruction, and when were these actions performed? Is the packing instruction marked as deleted? 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_PI_MANAGE_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 PackingInstructionNumber Identification number of packing instruction PackingInstructionCheckProfSts Packing status check profile Specifies the check profile used to determine the packing status of the handling units for this packing instruction. In the packing status check profile, you define appropriate packing statuses for the possible ways in which an HU proposal can differ from the packing instruction.
This CDS view retrieves information about packing instructions stored on packing instruction header level, including dimensions, volumes, weights, and administrative details. This CDS view provides the data to answer the following business questions: What are the dimensions (height, width, length) of the handling unit associated with a packing instruction? What are the volume-related details, including total volue, loading volume, allowed loading volume, and tare volume, for a packing instruction? What are the weight-related details, including total weight, loading weight, allowed loading weight, and tare weight, for a packing instruction? What are the units of measure for dimensions, volumes, and weights used in the packing instruction? Who created or last changed the packing instruction, and when were these actions performed? Is the packing instruction marked as deleted? 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_PI_MANAGE_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 PackingInstructionNumber Identification number of packing instruction PackingInstructionCheckProfSts Packing status check profile Specifies the check profile used to determine the packing status of the handling units for this packing instruction. In the packing status check profile, you define appropriate packing statuses for the possible ways in which an HU proposal can differ from the packing instruction.
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, Association Target 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 |
|---|---|---|
| packkp | packkp | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_PackingInstructionComponent | _PackingInstructionComponent | $projection.PackingInstructionSystemUUID = _PackingInstructionComponent.PackingInstructionSystemUUID |
| [0..1] | I_UnitOfMeasure | _UnitOfMeasureDimension | _UnitOfMeasureDimension.UnitOfMeasure = $projection.HandlingUnitUoMDimension |
| [0..1] | I_UnitOfMeasure | _HandlingUnitVolumeUnit | _HandlingUnitVolumeUnit.UnitOfMeasure = $projection.HandlingUnitVolumeUnit |
| [0..1] | I_UnitOfMeasure | _HandlingUnitTareVolumeUnit | _HandlingUnitTareVolumeUnit.UnitOfMeasure = $projection.HandlingUnitTareVolumeUnit |
| [0..1] | I_UnitOfMeasure | _HandlingUnitWeightUnit | _HandlingUnitWeightUnit.UnitOfMeasure = $projection.HandlingUnitWeightUnit |
| [0..1] | I_UnitOfMeasure | _HandlingUnitTareWeightUnit | _HandlingUnitTareWeightUnit.UnitOfMeasure = $projection.HandlingUnitWeightUnit |
| [0..*] | I_PackingInstructionText | _Text | $projection.PackingInstructionSystemUUID = _Text.PackingInstructionSystemUUID |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPACKINSTRHEADER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Packing Instruction Header | view | |
| Search.searchable | true | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (47)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PackingInstructionSystemUUID | packnr | Unique internal packing object number | |
| PackingInstructionNumber | pobjid | Identification number of packing object | ||
| PackingInstructionExternalName | partid | External name for packing instruction | ||
| HandlingUnitHeight | height | Height | ||
| HandlingUnitWidth | width | Width | ||
| HandlingUnitLength | length | Text Length | ||
| HandlingUnitInnerHeight | iheight | Height of Inside Dimensions | ||
| HandlingUnitInnerWidth | iwidth | Width of inside measurements | ||
| HandlingUnitInnerLength | ilength | Length of inside measurements | ||
| HandlingUnitUoMDimension | unitdim | Unit of dimension for length/width/height | ||
| HandlingUnitMeasuresAreFixed | sizefix | Measurements fix | ||
| HandlingUnitGrossVolume | totlvol | Total volume of handling unit | ||
| HandlingUnitLoadVolume | loadvol | Loading volume of goods to be packed | ||
| HandlingUnitAllowedLoadVolume | allovol | Allowed loading volume for materials to be packed | ||
| HandlingUnitVolumeUnit | unitvol_max | Volume Unit | ||
| HandlingUnitTareVolume | tarevol | Tare volume of packaging materials | ||
| HandlingUnitTareVolumeUnit | unitvol | Volume Unit | ||
| HandlingUnitVolumesAreFixed | volumfix | Volume Fix | ||
| ExcessVolumeToleranceValue | tolevol | Excess Volume Tolerance of the Handling Unit | ||
| HandlingUnitGrossWeight | totlwei | Total weight of handling unit | ||
| HandlingUnitLoadWeight | loadwei | Loading Weight of Goods to Be Packed | ||
| HandlingUnitAllowedLoadWeight | allowei | Allowed Loading Weight | ||
| HandlingUnitWeightUnit | unitwei_max | Unit of Weight | ||
| HandlingUnitTareWeight | tarewei | Tare weight of packaging materials | ||
| HandlingUnitTareWeightUnit | unitwei | Unit of Weight | ||
| HandlingUnitWeightsAreFixed | weightfix | Weights Fix | ||
| ExcessWeightToleranceValue | tolewei | Excess Weight Tolerance for Handling unit | ||
| PackingInstructionAllwdLoadQty | maxstwe | Allowed Load | ||
| HandlingUnitIsClosed | indclopa | Indicator: Packaging Closed | ||
| LoadCarrierSystUUID | Packing Instruction Component | |||
| PackingInstructionIsDeleted | inddel | Deletion Indicator | ||
| PackingInstructionCheckProfSts | checkprof | Packing Status Check Profile | ||
| StackingFactor | stfac | Stacking factor | ||
| HandlingUnitType | hu_type | Handling Unit Type | ||
| CreatedByUser | crnam | Person responsible, create | ||
| CreationDate | crdat | Created At | ||
| LastChangedByUser | chnam | Person responsible, change | ||
| LastChangeDate | chdat | Date of last change | ||
| LastChangeTime | chtim | Time last change was made | ||
| LastChangeDateTime | lastchangeddatetime | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| _PackingInstructionComponent | _PackingInstructionComponent | |||
| _UnitOfMeasureDimension | _UnitOfMeasureDimension | |||
| _HandlingUnitVolumeUnit | _HandlingUnitVolumeUnit | |||
| _HandlingUnitTareVolumeUnit | _HandlingUnitTareVolumeUnit | |||
| _HandlingUnitWeightUnit | _HandlingUnitWeightUnit | |||
| _HandlingUnitTareWeightUnit | _HandlingUnitTareWeightUnit | |||
| _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_PackingInstructionHeader.
-- 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.
-- SQL view name: IPACKINSTRHEADER
CREATE VIEW I_PackingInstructionHeader AS
SELECT
packnr AS PackingInstructionSystemUUID,
pobjid AS PackingInstructionNumber,
partid AS PackingInstructionExternalName,
height AS HandlingUnitHeight,
width AS HandlingUnitWidth,
length AS HandlingUnitLength,
iheight AS HandlingUnitInnerHeight,
iwidth AS HandlingUnitInnerWidth,
ilength AS HandlingUnitInnerLength,
unitdim AS HandlingUnitUoMDimension,
sizefix AS HandlingUnitMeasuresAreFixed,
totlvol AS HandlingUnitGrossVolume,
loadvol AS HandlingUnitLoadVolume,
allovol AS HandlingUnitAllowedLoadVolume,
unitvol_max AS HandlingUnitVolumeUnit,
tarevol AS HandlingUnitTareVolume,
unitvol AS HandlingUnitTareVolumeUnit,
volumfix AS HandlingUnitVolumesAreFixed,
tolevol AS ExcessVolumeToleranceValue,
totlwei AS HandlingUnitGrossWeight,
loadwei AS HandlingUnitLoadWeight,
allowei AS HandlingUnitAllowedLoadWeight,
unitwei_max AS HandlingUnitWeightUnit,
tarewei AS HandlingUnitTareWeight,
unitwei AS HandlingUnitTareWeightUnit,
weightfix AS HandlingUnitWeightsAreFixed,
tolewei AS ExcessWeightToleranceValue,
maxstwe AS PackingInstructionAllwdLoadQty,
indclopa AS HandlingUnitIsClosed,
cast( mapaco_item as packing_instruction_component preserving type ) AS LoadCarrierSystUUID,
inddel AS PackingInstructionIsDeleted,
checkprof AS PackingInstructionCheckProfSts,
stfac AS StackingFactor,
hu_type AS HandlingUnitType,
crnam AS CreatedByUser,
crdat AS CreationDate,
chnam AS LastChangedByUser,
chdat AS LastChangeDate,
chtim AS LastChangeTime,
lastchangeddatetime AS LastChangeDateTime
FROM packkp
LEFT OUTER JOIN I_PackingInstructionComponent AS _PackingInstructionComponent ON PackingInstructionSystemUUID = _PackingInstructionComponent.PackingInstructionSystemUUID -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasureDimension ON _UnitOfMeasureDimension.UnitOfMeasure = HandlingUnitUoMDimension -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _HandlingUnitVolumeUnit ON _HandlingUnitVolumeUnit.UnitOfMeasure = HandlingUnitVolumeUnit -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _HandlingUnitTareVolumeUnit ON _HandlingUnitTareVolumeUnit.UnitOfMeasure = HandlingUnitTareVolumeUnit -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _HandlingUnitWeightUnit ON _HandlingUnitWeightUnit.UnitOfMeasure = HandlingUnitWeightUnit -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _HandlingUnitTareWeightUnit ON _HandlingUnitTareWeightUnit.UnitOfMeasure = HandlingUnitWeightUnit -- association [0..1]
LEFT OUTER JOIN I_PackingInstructionText AS _Text ON PackingInstructionSystemUUID = _Text.PackingInstructionSystemUUID -- 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