I_KanbanCtnDetailedQty

DDL: I_KANBANCTNDETAILEDQTY SQL: IPPKANBANCDTQTY Type: view BASIC

Kanban Container Detailed Quantities

I_KanbanCtnDetailedQty (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Manufacturing

I_KanbanCtnDetailedQty is a Basic CDS View that provides data about "Kanban Container Detailed Quantities" in SAP S/4HANA. It reads from 3 data sources (I_KanbanContainer, I_KanbanControlCycle, pkch) and exposes 14 fields with key fields KanbanContainer, Batch. It has 7 associations to related views.

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentPP-KAB-VDM
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides access to batches held in Kanban containers.</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

Data Sources (3)

SourceAliasJoin Type
I_KanbanContainer I_KanbanContainer inner
I_KanbanControlCycle I_KanbanControlCycle inner
pkch pkch from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_KanbanContainer _KanbanContainer $projection.KanbanContainer = _KanbanContainer.KanbanContainer
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_Product _Product $projection.Product = _Product.Product
[1..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_Batch _Batch $projection.Plant = _Batch.Plant and $projection.Product = _Batch.Material and $projection.Batch = _Batch.Batch
[0..1] I_Supplier _Supplier $projection.supplier = _Supplier.Supplier
[0..1] I_SupplierCompanyByPlant _SupplierCompanyByPlant $projection.supplier = _SupplierCompanyByPlant.Supplier and $projection.Plant = _SupplierCompanyByPlant.Plant

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IPPKANBANCDTQTY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Kanban Container Detailed Quantities view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.representativeKey KanbanContainer view
ObjectModel.semanticKey KanbanContainer view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY KanbanContainer pkch pkkey Kanban Identification Number
KEY Batch pkch charg Chargeable Proc.
BaseUnit I_KanbanControlCycle BaseUnit Base Unit of Measure
ActualQuantityInBaseUnit pkch pkcmg Actual Quantity
Plant I_KanbanControlCycle Plant Valuation Area
Product I_KanbanControlCycle Product Product Number
_Batch _Batch
_KanbanContainer _KanbanContainer
_Plant _Plant
_Product _Product
_BaseUnit _BaseUnit
Supplier _KanbanContainer Supplier Supplier's Account Number
_Supplier _Supplier
_SupplierCompanyByPlant _SupplierCompanyByPlant

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_KanbanCtnDetailedQty.
-- 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: IPPKANBANCDTQTY

CREATE VIEW I_KanbanCtnDetailedQty AS
SELECT
  pkch.pkkey AS KanbanContainer,
  pkch.charg AS Batch,
  I_KanbanControlCycle.BaseUnit AS BaseUnit,
  pkch.pkcmg AS ActualQuantityInBaseUnit,
  I_KanbanControlCycle.Plant AS Plant,
  I_KanbanControlCycle.Product AS Product,
  _KanbanContainer.Supplier AS Supplier
FROM pkch
INNER JOIN I_KanbanContainer ON /* join condition not captured in parsed metadata */
INNER JOIN I_KanbanControlCycle ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_KanbanContainer AS _KanbanContainer ON KanbanContainer = _KanbanContainer.KanbanContainer  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_Batch AS _Batch ON Plant = _Batch.Plant AND Product = _Batch.Material AND Batch = _Batch.Batch  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_SupplierCompanyByPlant AS _SupplierCompanyByPlant ON supplier = _SupplierCompanyByPlant.Supplier AND Plant = _SupplierCompanyByPlant.Plant  -- association [0..1]
;