C_InApprovalPurchaseOrderItem

DDL: C_INAPPROVALPURCHASEORDERITEM SQL: CINAPPO Type: view CONSUMPTION Package: ODATA_PRC_OVP

In Approval Purchase Order Items

C_InApprovalPurchaseOrderItem is a Consumption CDS View that provides data about "In Approval Purchase Order Items" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrderItem) and exposes 17 fields with key fields PurchaseOrder, PurchaseOrderItem. It has 1 association to related views. It is exposed through 1 OData service (ASQL_F1990). Part of development package ODATA_PRC_OVP.

Data Sources (1)

SourceAliasJoin Type
I_PurchaseOrderItem I_PurchaseOrderItem from

Parameters (1)

NameTypeDefault
P_DisplayCurrency displaycurrency

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_PurchasingCategoryMatlGroup _PurchasingCategoryMatlGroup $projection.MaterialGroup = _PurchasingCategoryMatlGroup.MaterialGroup

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CINAPPO view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.preserveKey true view
EndUserText.label In Approval Purchase Order Items view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F1990 ASQL_F1990 C2 NOT_RELEASED

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
MaterialGroup MaterialGroup Product Group
PurchasingCategory
PurchasingOrganization _PurchaseOrder PurchasingOrganization Purchasing Organization
PurchasingGroup _PurchaseOrder PurchasingGroup Purchasing Group
CompanyCode CompanyCode Receiver Company Code
Plant Plant Valuation Area
Material Material Vehicle Model
MaterialName
PurchaseOrderDate _PurchaseOrder PurchaseOrderDate PO Date
OrderQuantity OrderQuantity Quantity
Supplier _PurchaseOrder Supplier Supplier
SupplierName
PurchaseOrderQuantityUnit PurchaseOrderQuantityUnit Order Unit
DisplayCurrency
_PurchaseOrder _PurchaseOrder

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 C_InApprovalPurchaseOrderItem.
-- 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: CINAPPO
-- Parameters: P_DisplayCurrency : displaycurrency

CREATE VIEW C_InApprovalPurchaseOrderItem AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  MaterialGroup,
  _PurchasingCategoryMatlGroup._PurchasingCategory.PurchasingCategory AS PurchasingCategory,
  _PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
  _PurchaseOrder.PurchasingGroup AS PurchasingGroup,
  CompanyCode,
  Plant,
  Material,
  _Material._Text[1: Language = $session.system_language].MaterialName AS MaterialName,
  _PurchaseOrder.PurchaseOrderDate AS PurchaseOrderDate,
  OrderQuantity,
  _PurchaseOrder.Supplier AS Supplier,
  _PurchaseOrder._Supplier.SupplierName AS SupplierName,
  PurchaseOrderQuantityUnit,
  cast(:P_DisplayCurrency as displaycurrency) AS DisplayCurrency
FROM I_PurchaseOrderItem
LEFT OUTER JOIN I_PurchasingCategoryMatlGroup AS _PurchasingCategoryMatlGroup ON MaterialGroup = _PurchasingCategoryMatlGroup.MaterialGroup  -- association [0..*]
;