P_PurOrdItemCastedAmounts
Purchase Order Items with Casted amounts
P_PurOrdItemCastedAmounts is a Consumption CDS View that provides data about "Purchase Order Items with Casted amounts" in SAP S/4HANA. It reads from 2 data sources (I_PurchaseOrderItem, I_PurgAnalyticsConfiguration) and exposes 48 fields with key fields PurchaseOrder, PurchaseOrderItem.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseOrderItem | I_PurchaseOrderItem | inner |
| I_PurgAnalyticsConfiguration | MigrationStatus | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPOITEMCASTDAMT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Purchase Order Items with Casted amounts | view |
Fields (48)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | |
| PurchaseOrderType | _PurchaseOrder | PurchaseOrderType | PO Type | |
| Supplier | _PurchaseOrder | Supplier | Supplier | |
| SupplyingPlant | _PurchaseOrder | SupplyingPlant | Supplying Plant | |
| PurchasingOrganization | _PurchaseOrder | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | _PurchaseOrder | PurchasingGroup | Purchasing Group | |
| CompanyCode | _PurchaseOrder | CompanyCode | Receiver Company Code | |
| DocumentCurrency | _PurchaseOrder | DocumentCurrency | Document Currency | |
| PurchaseOrderDate | _PurchaseOrder | PurchaseOrderDate | PO Date | |
| CreationDate | _PurchaseOrder | CreationDate | Time Stamp | |
| CreatedByUser | _PurchaseOrder | CreatedByUser | User Name | |
| PurchaseOrderItemText | PurchaseOrderItemText | Short Text | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| ProductType | ProductType | Product Type Group | ||
| PurchaseOrderItemCategory | PurchaseOrderItemCategory | Item Category | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| ServicePerformer | ServicePerformer | Service Performer | ||
| IsReturnsItem | IsReturnsItem | Returns Item | ||
| SupplierQuotation | SupplierQuotation | RFQ | ||
| SupplierQuotationItem | SupplierQuotationItem | Supplier Quotation Item | ||
| GoodsReceiptIsExpected | GoodsReceiptIsExpected | Goods Receipt | ||
| GoodsReceiptIsNonValuated | GoodsReceiptIsNonValuated | GR Non-Valuated | ||
| IsCompletelyDelivered | IsCompletelyDelivered | Is completely delivered | ||
| InvoiceIsExpected | InvoiceIsExpected | Invoice Receipt | ||
| InvoiceIsGoodsReceiptBased | InvoiceIsGoodsReceiptBased | GR-Based IV | ||
| IsFinallyInvoiced | IsFinallyInvoiced | Final Invoice | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| PurchasingInfoRecord | PurchasingInfoRecord | Info Record | ||
| IsInfoRecordUpdated | IsInfoRecordUpdated | InfoUpdate | ||
| PurchaseContract | PurchaseContract | Purchasing Doc. | ||
| PurchaseContractItem | PurchaseContractItem | Item | ||
| PurchaseRequisition | PurchaseRequisition | Requisition | ||
| PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | ||
| RequestForQuotation | RequestForQuotation | RFQ | ||
| RequestForQuotationItem | RequestForQuotationItem | RFQ Item | ||
| RequirementTracking | RequirementTracking | Tracking Number | ||
| ExpectedOverallLimitAmount | Expected Value | |||
| OverallLimitAmount | Overall Limit | |||
| NetPriceAmount | Net Price | |||
| NetAmount | Stated Amount | |||
| OrderQuantity | OrderQuantity | Quantity | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Order Unit | ||
| OrderPriceUnit | OrderPriceUnit | Order Price Un. | ||
| NonDeductibleInputTaxAmount | NonDeductibleInputTaxAmount | Non-deductible |
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_PurOrdItemCastedAmounts.
-- 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: PPOITEMCASTDAMT
CREATE VIEW P_PurOrdItemCastedAmounts AS
SELECT
PurchaseOrder,
PurchaseOrderItem,
_PurchaseOrder.PurchaseOrderType AS PurchaseOrderType,
_PurchaseOrder.Supplier AS Supplier,
_PurchaseOrder.SupplyingPlant AS SupplyingPlant,
_PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
_PurchaseOrder.PurchasingGroup AS PurchasingGroup,
_PurchaseOrder.CompanyCode AS CompanyCode,
_PurchaseOrder.DocumentCurrency AS DocumentCurrency,
_PurchaseOrder.PurchaseOrderDate AS PurchaseOrderDate,
_PurchaseOrder.CreationDate AS CreationDate,
_PurchaseOrder.CreatedByUser AS CreatedByUser,
PurchaseOrderItemText,
Material,
MaterialGroup,
Plant,
ProductType,
PurchaseOrderItemCategory,
AccountAssignmentCategory,
ServicePerformer,
IsReturnsItem,
SupplierQuotation,
SupplierQuotationItem,
GoodsReceiptIsExpected,
GoodsReceiptIsNonValuated,
IsCompletelyDelivered,
InvoiceIsExpected,
InvoiceIsGoodsReceiptBased,
IsFinallyInvoiced,
StorageLocation,
PurchasingInfoRecord,
IsInfoRecordUpdated,
PurchaseContract,
PurchaseContractItem,
PurchaseRequisition,
PurchaseRequisitionItem,
RequestForQuotation,
RequestForQuotationItem,
RequirementTracking,
cast (ExpectedOverallLimitAmount as abap.curr(21, 5)) AS ExpectedOverallLimitAmount,
cast (OverallLimitAmount as abap.curr(21, 5)) AS OverallLimitAmount,
cast (NetPriceAmount as abap.curr(21, 5)) AS NetPriceAmount,
cast (NetAmount as abap.curr(21, 5)) AS NetAmount,
OrderQuantity,
NetPriceQuantity,
PurchaseOrderQuantityUnit,
OrderPriceUnit,
NonDeductibleInputTaxAmount
FROM I_PurgAnalyticsConfiguration AS MigrationStatus
INNER JOIN I_PurchaseOrderItem ON /* join condition not captured in parsed metadata */
;
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