I_PaInDetMaterialShipToParty
PaInDet for Material/Ship-to Party
I_PaInDetMaterialShipToParty (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_PaInDetMaterialShipToParty is a Basic CDS View that provides data about "PaInDet for Material/Ship-to Party" in SAP S/4HANA. It reads from 1 data source (kotp100) and exposes 19 fields with key fields ConditionType, Material, ShipToParty, ConditionValidityEndDate. It has 8 associations to related views. Part of development package LOHUM_PI_DET_REC.
SAP Help Documentation
| Category | CDS Views for Packing Instruction Determination |
|---|
This CDS view provides access to the content of condition table KOTP100 , which stores the packing instructions and their validity dates that are defined for the following key combination: Material Ship-to party For more information, see Packing Instruction Determination . This CDS view provides the data to answer the following business questions: Which determination records are defined for a certain combination of material and ship-to party? Which packing instructions are valid for a material and a ship-to party in which timeframe? 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 role with the following restriction types set to read access: KSCHL These restriction types are edited in the Maintain Business Roles app.
Structure
Important Fields Important fields in this view include the following: Field Name Description ConditionType Determination type that groups packing instructions valid for a specific area, for example, shipping Material Material/product to be packed Part of the key combination for the access sequence ShipToParty Ship-to party for customer-specific determination of packing instruction Part of the key combination for the access sequence ConditionValidityEndDate Validity end date of the determination record ConditionValidityStartDate Validity start date of the determination record PackingInstructionSystemUUID GUID of the packing instruction To access the packing instruction number, you can use the association to CDS view I_PackingInstructionHeader ( Packing Instruction Header ). PackingInstructionAlt1SystUUID Alternative packing instruction 1 PackingInstructionAlt2SystUUID Alternative packing instruction 2 PackingInstructionAlt3SystUUID Alternative packing instruction 3 PackingInstructionAlt4SystUUID Alternative packing instruction 4
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 | This CDS view provides access to the content of condition table KOTP100, which stores the packing instructions and their validity dates that are defined for the following key combination:<ul> <li><p>Material</p></li> <li><p>Ship-to party</p></li> </ul> <p>For more information, see Packing Instruction Determination. </p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Which determination records are defined for a certain combination of material and ship-to party?</p></li> <li><p>Which packing instructions are valid for a material and a ship-to party in which timeframe?</p></li> </ul> <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 |
|---|---|---|
| kotp100 | PaInDetRec | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ConditionType | _ConditionType | $projection.ConditionType = _ConditionType.ConditionType and _ConditionType.ConditionUsage = 'P' and _ConditionType.ConditionApplication = 'PO' |
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_BusinessPartner | _ShipToParty | $projection.ShipToParty = _ShipToParty.BusinessPartner |
| [0..1] | I_PackingInstructionHeader | _PackingInstructionHeader | $projection.PackingInstructionSystemUUID = _PackingInstructionHeader.PackingInstructionSystemUUID |
| [0..1] | I_PackingInstructionHeader | _PackingInstructionHeaderAlt1 | $projection.PackingInstructionAlt1SystUUID = _PackingInstructionHeaderAlt1.PackingInstructionSystemUUID |
| [0..1] | I_PackingInstructionHeader | _PackingInstructionHeaderAlt2 | $projection.PackingInstructionAlt2SystUUID = _PackingInstructionHeaderAlt2.PackingInstructionSystemUUID |
| [0..1] | I_PackingInstructionHeader | _PackingInstructionHeaderAlt3 | $projection.PackingInstructionAlt3SystUUID = _PackingInstructionHeaderAlt3.PackingInstructionSystemUUID |
| [0..1] | I_PackingInstructionHeader | _PackingInstructionHeaderAlt4 | $projection.PackingInstructionAlt4SystUUID = _PackingInstructionHeaderAlt4.PackingInstructionSystemUUID |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | PaInDet for Material/Ship-to Party | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.modelingPattern | #NONE | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ConditionType | kotp100 | kschl | Condition type for packing object determination |
| KEY | Material | kotp100 | matnr | Material Number |
| KEY | ShipToParty | kotp100 | kunwe | Ship-to Party for Packing Instruction Determination |
| KEY | ConditionValidityEndDate | kotp100 | datbi | Validity end date of the condition record |
| ConditionValidityStartDate | kotp100 | datab | Validity start date of the condition record | |
| ConditionRecord | kotp100 | knumh | Number of Condition Record | |
| PackingInstructionSystemUUID | Packing Instruction | |||
| PackingInstructionAlt1SystUUID | Alternative Packing Instruction 1 | |||
| PackingInstructionAlt2SystUUID | Alternative Packing Instruction 2 | |||
| PackingInstructionAlt3SystUUID | Alternative Packing Instruction 3 | |||
| PackingInstructionAlt4SystUUID | Alternative Packing Instruction 4 | |||
| _ConditionType | _ConditionType | |||
| _Material | _Material | |||
| _ShipToParty | _ShipToParty | |||
| _PackingInstructionHeader | _PackingInstructionHeader | |||
| _PackingInstructionHeaderAlt1 | _PackingInstructionHeaderAlt1 | |||
| _PackingInstructionHeaderAlt2 | _PackingInstructionHeaderAlt2 | |||
| _PackingInstructionHeaderAlt3 | _PackingInstructionHeaderAlt3 | |||
| _PackingInstructionHeaderAlt4 | _PackingInstructionHeaderAlt4 |
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_PaInDetMaterialShipToParty.
-- 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_PaInDetMaterialShipToParty AS
SELECT
PaInDetRec.kschl AS ConditionType,
PaInDetRec.matnr AS Material,
PaInDetRec.kunwe AS ShipToParty,
PaInDetRec.datbi AS ConditionValidityEndDate,
PaInDetRec.datab AS ConditionValidityStartDate,
PaInDetRec.knumh AS ConditionRecord,
cast( Conditions.packnr as pl_packinstnr preserving type ) AS PackingInstructionSystemUUID,
cast( Conditions.packnr1 as pl_altpacknr1 preserving type ) AS PackingInstructionAlt1SystUUID,
cast( Conditions.packnr2 as pl_altpacknr2 preserving type ) AS PackingInstructionAlt2SystUUID,
cast( Conditions.packnr3 as pl_altpacknr3 preserving type ) AS PackingInstructionAlt3SystUUID,
cast( Conditions.packnr4 as pl_altpacknr4 preserving type ) AS PackingInstructionAlt4SystUUID
FROM kotp100 AS PaInDetRec
LEFT OUTER JOIN I_ConditionType AS _ConditionType ON ConditionType = _ConditionType.ConditionType AND _ConditionType.ConditionUsage = 'P' AND _ConditionType.ConditionApplication = 'PO' -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _ShipToParty ON ShipToParty = _ShipToParty.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_PackingInstructionHeader AS _PackingInstructionHeader ON PackingInstructionSystemUUID = _PackingInstructionHeader.PackingInstructionSystemUUID -- association [0..1]
LEFT OUTER JOIN I_PackingInstructionHeader AS _PackingInstructionHeaderAlt1 ON PackingInstructionAlt1SystUUID = _PackingInstructionHeaderAlt1.PackingInstructionSystemUUID -- association [0..1]
LEFT OUTER JOIN I_PackingInstructionHeader AS _PackingInstructionHeaderAlt2 ON PackingInstructionAlt2SystUUID = _PackingInstructionHeaderAlt2.PackingInstructionSystemUUID -- association [0..1]
LEFT OUTER JOIN I_PackingInstructionHeader AS _PackingInstructionHeaderAlt3 ON PackingInstructionAlt3SystUUID = _PackingInstructionHeaderAlt3.PackingInstructionSystemUUID -- association [0..1]
LEFT OUTER JOIN I_PackingInstructionHeader AS _PackingInstructionHeaderAlt4 ON PackingInstructionAlt4SystUUID = _PackingInstructionHeaderAlt4.PackingInstructionSystemUUID -- 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