I_PackingInstructionComponent

DDL: I_PACKINGINSTRUCTIONCOMPONENT SQL: IPACKINSTCOMP Type: view BASIC

Packing Instruction Component

I_PackingInstructionComponent (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_PackingInstructionComponent is a Basic CDS View that provides data about "Packing Instruction Component" in SAP S/4HANA. It reads from 1 data source (packpo) and exposes 17 fields with key field PackingInstructionItemSystUUID. It has 2 associations to related views.

SAP Help Documentation

CategoryCDS Views for Handling Unit Management
Purpose
This CDS view retrieves information about packing instructions that are stored on packing instruction item level, and it establishes associations with related entities such as packing instruction headers and units of measure. A packing instruction item can be a material/product to be packed, a packaging material, a reference material, or a subordinate packing instruction. This CDS view provides the data to answer the following business questions: What are the components (items) of a specific packing instruction? What materials are associated with each packing instruction item? What are the quantities and unit of measure for each packing instruction 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_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 Material Material number of material/product to be packed or packaging material PackingInstructionItemCategory Packing instruction item category Specifies whether the item is a packed good or packaging material, or whether it is used for grouping purposes. PackingInstructionItem Unique identification number of an item in a packing instruction or handling unit PackingInstructionItmTargetQty Specifies the quantity that a handling unit for a packing instruction should contain: For packaging materials or packed goods items, this is the quantity to be packed. For subordinate packing instruction items, this is the number of sub-HUs to be packed. For example, you can define that a pallet should contain ten boxes. You can then define in the subordinate packing instruction for this box that each box should contain twenty pieces of a finished product. PackingInstructionItemMinQty Specifies the minimum quantity that a handling unit should contain according to this 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
packpo packpo from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_PackingInstructionHeader _PackingInstructionHeader $projection.PackingInstructionSystemUUID = _PackingInstructionHeader.PackingInstructionSystemUUID
[0..1] I_UnitOfMeasure _BaseUnitofMeasure _BaseUnitofMeasure.UnitOfMeasure = $projection.BaseUnitofMeasure

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IPACKINSTCOMP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Packing Instruction Component view
Search.searchable true view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API 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 (17)

KeyFieldSource TableSource FieldDescription
KEY PackingInstructionItemSystUUID Packing Instruction Component
PackingInstructionSystemUUID Packing Instruction Number
PackingInstructionItem packitem Item Number
PackingInstructionItemCategory paitemtype Packing Object Item Category
Material matnr Material number of mat. to be packed or of a pack.material
ItemPackingInstructionSystUUID subpacknr Unique internal packing object number
PackingInstructionItmTargetQty trgqty Target Quantity
PackingInstructionItemMinQty minqty Minimum Quantity
PackingInstructionItemRndQty rndqty Rounding Quantity
BaseUnitofMeasure baseunit Base Unit of Measure
UnitOfMeasure unitqty Unit of Measure
MaterialMixIsAllowed matmixawd Mixed Materials Allowed in Packing for Reference Material
BatchMixIsAllowed indchmix Indicator Batch Mix Allowed
MaterialIsNotHandlingUnitRel indnohu Item that is not relevant for handling unit
PackingInstructionItemIsDel inddel Deletion Indicator
_PackingInstructionHeader _PackingInstructionHeader
_BaseUnitofMeasure _BaseUnitofMeasure

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_PackingInstructionComponent.
-- 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: IPACKINSTCOMP

CREATE VIEW I_PackingInstructionComponent AS
SELECT
  cast( packitemid as packing_instruction_component preserving type ) AS PackingInstructionItemSystUUID,
  cast( packnr as packing_instruction_number preserving type ) AS PackingInstructionSystemUUID,
  packitem AS PackingInstructionItem,
  paitemtype AS PackingInstructionItemCategory,
  matnr AS Material,
  subpacknr AS ItemPackingInstructionSystUUID,
  trgqty AS PackingInstructionItmTargetQty,
  minqty AS PackingInstructionItemMinQty,
  rndqty AS PackingInstructionItemRndQty,
  baseunit AS BaseUnitofMeasure,
  unitqty AS UnitOfMeasure,
  matmixawd AS MaterialMixIsAllowed,
  indchmix AS BatchMixIsAllowed,
  indnohu AS MaterialIsNotHandlingUnitRel,
  inddel AS PackingInstructionItemIsDel
FROM packpo
LEFT OUTER JOIN I_PackingInstructionHeader AS _PackingInstructionHeader ON PackingInstructionSystemUUID = _PackingInstructionHeader.PackingInstructionSystemUUID  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnitofMeasure ON _BaseUnitofMeasure.UnitOfMeasure = BaseUnitofMeasure  -- association [0..1]
;