P_SuplrComprnViaPurValCurrCon

DDL: P_SUPLRCOMPRNVIAPURVALCURRCON SQL: PSPLRCMPURVALCC Type: view CONSUMPTION

P_SuplrComprnViaPurValCurrCon is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_PurOrdItmAcctAssgmt1) and exposes 34 fields with key fields PurchaseOrder, PurchaseOrderItem, AccountAssignmentNumber.

Data Sources (1)

SourceAliasJoin Type
P_PurOrdItmAcctAssgmt1 P_PurOrdItmAcctAssgmt1 from

Parameters (3)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate bedat
P_EndDate bedat

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PSPLRCMPURVALCC view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
KEY AccountAssignmentNumber AccountAssignment AccountAssignmentNumber Account Assgmt No.
Supplier Supplier Supplier
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
CompanyCode CompanyCode Receiver Company Code
ReceivingCompanyCode ReceivingCompanyCode Rcvg Co Code
PurchaseOrderType PurchaseOrderType PO Type
PurchaseOrderDate PurchaseOrderDate PO Date
CreatedByUser CreatedByUser User Name
Currency Currency Valuation Crcy
MaterialGroup MaterialGroup Product Group
Material Material Vehicle Model
Plant Plant Valuation Area
ProductType ProductType Product Type Group
ServicePerformer ServicePerformer Service Performer
MultipleAcctAssgmtDistribution MultipleAcctAssgmtDistribution Distribution
AccountAssignmentCategory AccountAssignmentCategory Acct Assgmt Cat
MultipleAcctAssgmtDistrPercent AccountAssignment MultipleAcctAssgmtDistrPercent Distribution
CostCenter AccountAssignment CostCenter Cost Center
WBSElementInternalID AccountAssignment WBSElementInternalID WBS Internal ID
ControllingArea AccountAssignment ControllingArea Controlling Area
GLAccount AccountAssignment GLAccount General Ledger
ProfitCenter AccountAssignment ProfitCenter Profit Center
Quantity AccountAssignment Quantity Value
OrderQuantity OrderQuantity Quantity
PurchaseOrderQuantityUnit PurchaseOrderQuantityUnit Order Unit
IsCompletelyDelivered IsCompletelyDelivered Is completely delivered
InvoiceIsGoodsReceiptBased InvoiceIsGoodsReceiptBased GR-Based IV
OverdelivTolrtdLmtRatioInPct OverdelivTolrtdLmtRatioInPct Overdeliv. Tol.
UnderdelivTolrtdLmtRatioInPct UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
ReturnsItem ReturnsItem
PurchaseOrderQty PurchaseOrderQty Purchase Order Quantity

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 P_SuplrComprnViaPurValCurrCon.
-- 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: PSPLRCMPURVALCC
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : bedat, P_EndDate : bedat

CREATE VIEW P_SuplrComprnViaPurValCurrCon AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  AccountAssignment.AccountAssignmentNumber AS AccountAssignmentNumber,
  Supplier,
  PurchasingOrganization,
  PurchasingGroup,
  CompanyCode,
  ReceivingCompanyCode,
  PurchaseOrderType,
  PurchaseOrderDate,
  CreatedByUser,
  Currency,
  MaterialGroup,
  Material,
  Plant,
  ProductType,
  ServicePerformer,
  MultipleAcctAssgmtDistribution,
  AccountAssignmentCategory,
  AccountAssignment.MultipleAcctAssgmtDistrPercent AS MultipleAcctAssgmtDistrPercent,
  AccountAssignment.CostCenter AS CostCenter,
  AccountAssignment.WBSElementInternalID AS WBSElementInternalID,
  AccountAssignment.ControllingArea AS ControllingArea,
  AccountAssignment.GLAccount AS GLAccount,
  AccountAssignment.ProfitCenter AS ProfitCenter,
  AccountAssignment.Quantity AS Quantity,
  OrderQuantity,
  PurchaseOrderQuantityUnit,
  IsCompletelyDelivered,
  InvoiceIsGoodsReceiptBased,
  OverdelivTolrtdLmtRatioInPct,
  UnderdelivTolrtdLmtRatioInPct,
  ReturnsItem,
  PurchaseOrderQty
FROM P_PurOrdItmAcctAssgmt1
;