P_MLCtrProposalPOItemCC
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)
| Source | Alias | Join Type |
|---|---|---|
| P_MLCtrProposalPOItem | POItem | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | waers_curc |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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