I_PackingInstructionHeader

DDL: I_PACKINGINSTRUCTIONHEADER SQL: IPACKINSTRHEADER Type: view BASIC

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

CategoryCDS 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.

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, Association Target for Defining CDS Entities
PackageSupply Chain for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
packkp packkp from

Associations (7)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;