P_MLCtrProposalPOItemCC

DDL: P_MLCTRPROPOSALPOITEMCC SQL: PMLCPPOITEMCC Type: view BASIC

P_MLCtrProposalPOItemCC is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (P_MLCtrProposalPOItem) and exposes 15 fields with key fields PurchaseOrder, PurchaseOrderItem.

Data Sources (1)

SourceAliasJoin Type
P_MLCtrProposalPOItem POItem from

Parameters (1)

NameTypeDefault
P_DisplayCurrency waers_curc

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMLCPPOITEMCC view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #BASIC view
VDM.private true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder P_MLCtrProposalPOItem PurchaseOrder Purchasing Document
KEY PurchaseOrderItem P_MLCtrProposalPOItem PurchaseOrderItem Purchasing Document Item
CreationDate
Material P_MLCtrProposalPOItem Material Vehicle Model
MaterialGroup P_MLCtrProposalPOItem MaterialGroup Product Group
MaterialType P_MLCtrProposalPOItem MaterialType Material Type
PurchasingOrganization P_MLCtrProposalPOItem PurchasingOrganization Purchasing Organization
DocumentCurrency P_MLCtrProposalPOItem DocumentCurrency Document Currency
Supplier P_MLCtrProposalPOItem Supplier Supplier
DeliveryTimeInDays P_MLCtrProposalPOItem DeliveryTimeInDays Delivery Time in Days
int4asPurchaseContractIsExisting
int4asPOItemIsReleased
int4asPOItemHasConsumptionPosting
char50asGrossAmount
DisplayCurrency

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_MLCtrProposalPOItemCC.
-- 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: PMLCPPOITEMCC
-- Parameters: P_DisplayCurrency : waers_curc

CREATE VIEW P_MLCtrProposalPOItemCC AS
SELECT
  POItem.PurchaseOrder AS PurchaseOrder,
  POItem.PurchaseOrderItem AS PurchaseOrderItem,
  cast(POItem.CreationDate as abap.char( 8 )) AS CreationDate,
  POItem.Material AS Material,
  POItem.MaterialGroup AS MaterialGroup,
  POItem.MaterialType AS MaterialType,
  POItem.PurchasingOrganization AS PurchasingOrganization,
  POItem.DocumentCurrency AS DocumentCurrency,
  POItem.Supplier AS Supplier,
  POItem.DeliveryTimeInDays AS DeliveryTimeInDays,
  cast(case when calc.PurchaseContractIsExisting > 0 then 1 else 0 end as abap.int4) as PurchaseContractIsExisting AS int4asPurchaseContractIsExisting,
  cast(case when POItem.PurchaseContract <> '' then 1 else 0 end as abap.int4) as POItemIsReleased AS int4asPOItemIsReleased,
  cast(case when POItem.ConsumptionPosting = '' then 1 else 0 end as abap.int4) as POItemHasConsumptionPosting AS int4asPOItemHasConsumptionPosting,
  cast(currency_conversion( amount => POItem.GrossAmount, source_currency => POItem.DocumentCurrency, target_currency => $parameters.P_DisplayCurrency, exchange_rate_date => cast(substring(cast( POItem.PurchaseOrderDate as abap.char(23)),1,8) as abap.dats ), exchange_rate_type => 'M', error_handling => 'SET_TO_NULL' ) as abap.char( 50 ) ) as GrossAmount AS char50asGrossAmount,
  $parameters.P_DisplayCurrency AS DisplayCurrency
FROM P_MLCtrProposalPOItem AS POItem
;