I_PackingInstructionComponent
Packing Instruction Component
I_PackingInstructionComponent (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public 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. Part of development package LOHUM_VDM.
SAP Help Documentation
| Category | CDS Views for Handling Unit Management |
|---|
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.
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Supply Chain |
| Application Component | LO-HU-2CL |
| Capabilities | Data Source in SQL Select,Data Source for Defining CDS Entities,Association Target for Defining CDS Entities |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Supply Chain for SAP S/4HANA Cloud Public Edition |
| Description | <p>This CDS view retrieves general information of the packing instruction component, for example, materials, packaging material, and subordinate packing instructions.</p> <p>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.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| packpo | packpo | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PackingInstructionHeader | _PackingInstructionHeader | $projection.PackingInstructionSystemUUID = _PackingInstructionHeader.PackingInstructionSystemUUID |
| [0..1] | I_UnitOfMeasure | _BaseUnitofMeasure | _BaseUnitofMeasure.UnitOfMeasure = $projection.BaseUnitofMeasure |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 | #B | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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