P_InspLotPurgOrdDocs

DDL: P_INSPLOTPURGORDDOCS SQL: PINSPECLOTPODOCS Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

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)

SourceAliasJoin Type
I_InspectionLotCube I_InspectionLotCube from
I_PurchaseOrder PurchaseOrder inner
I_PurchaseOrderItem PurchaseOrderItem inner

Parameters (2)

NameTypeDefault
P_StartDate vdm_validitystart
P_EndDate vdm_validityend

Annotations (12)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;