P_InspLotPurgOrdDocs
Inspectionlot for purchase orders
P_InspLotPurgOrdDocs is a Consumption CDS View that provides data about "Inspectionlot for purchase orders" in SAP S/4HANA. It reads from 3 data sources (I_InspectionLotCube, I_PurchaseOrder, I_PurchaseOrderItem) and exposes 17 fields with key field InspectionLot. Part of development package ODATA_MM_ANALYTICS.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_InspectionLotCube | I_InspectionLotCube | from |
| I_PurchaseOrder | PurchaseOrder | inner |
| I_PurchaseOrderItem | PurchaseOrderItem | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | vdm_validitystart | |
| P_EndDate | vdm_validityend |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PINSPECLOTPODOCS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Inspectionlot for purchase orders | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InspectionLot | I_InspectionLotCube | InspectionLot | Inspection Lot |
| PurchasingDocument | I_InspectionLotCube | PurchasingDocument | Purchasing Document | |
| PurchasingDocumentItem | I_InspectionLotCube | PurchasingDocumentItem | Purchasing Doc. Item | |
| Supplier | I_InspectionLotCube | Supplier | Supplier | |
| Material | I_InspectionLotCube | Material | Vehicle Model | |
| InspectionLotCreatedOn | I_InspectionLotCube | InspectionLotCreatedOn | ||
| MaterialGroup | I_PurchaseOrderItem | MaterialGroup | Product Group | |
| Plant | I_InspectionLotCube | Plant | Valuation Area | |
| CompanyCode | I_PurchaseOrder | CompanyCode | Receiver Company Code | |
| PurchasingOrganization | I_PurchaseOrder | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_PurchaseOrder | PurchasingGroup | Purchasing Group | |
| PurchasingDocumentCategory | I_PurchaseOrderItem | PurchaseOrderCategory | Doc. Category | |
| PurchaseOrderDate | I_PurchaseOrder | PurchaseOrderDate | PO Date | |
| DocumentCurrency | I_PurchaseOrderItem | DocumentCurrency | Document Currency | |
| NetAmount | I_PurchaseOrderItem | NetAmount | Stated Amount | |
| InspectionLotQualityScore | I_InspectionLotCube | InspectionLotQualityScore | Inspection Lot Score | |
| PurchaseOrderItemUniqueID | PurchaseOrderItemUniqueID | Document Item |
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_InspLotPurgOrdDocs.
-- 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: PINSPECLOTPODOCS
-- Parameters: P_StartDate : vdm_validitystart, P_EndDate : vdm_validityend
CREATE VIEW P_InspLotPurgOrdDocs AS
SELECT
I_InspectionLotCube.InspectionLot AS InspectionLot,
I_InspectionLotCube.PurchasingDocument AS PurchasingDocument,
I_InspectionLotCube.PurchasingDocumentItem AS PurchasingDocumentItem,
I_InspectionLotCube.Supplier AS Supplier,
I_InspectionLotCube.Material AS Material,
I_InspectionLotCube.InspectionLotCreatedOn AS InspectionLotCreatedOn,
PurchaseOrderItem.MaterialGroup AS MaterialGroup,
I_InspectionLotCube.Plant AS Plant,
PurchaseOrder.CompanyCode AS CompanyCode,
PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
PurchaseOrder.PurchasingGroup AS PurchasingGroup,
PurchaseOrderItem.PurchaseOrderCategory AS PurchasingDocumentCategory,
PurchaseOrder.PurchaseOrderDate AS PurchaseOrderDate,
PurchaseOrderItem.DocumentCurrency AS DocumentCurrency,
PurchaseOrderItem.NetAmount AS NetAmount,
I_InspectionLotCube.InspectionLotQualityScore AS InspectionLotQualityScore,
PurchaseOrderItemUniqueID
FROM I_InspectionLotCube
INNER JOIN I_PurchaseOrder AS PurchaseOrder ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurchaseOrderItem AS 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