C_InspLotUsageDecisionOVP

DDL: C_INSPLOTUSAGEDECISIONOVP Type: view_entity CONSUMPTION Package: ODATA_QM_INSPECTION_ANALYTICS

Inspection Lot Usage Decision OVP

C_InspLotUsageDecisionOVP is a Consumption CDS View that provides data about "Inspection Lot Usage Decision OVP" in SAP S/4HANA. It reads from 1 data source (P_InspLotResultRecording) and exposes 24 fields with key fields InspectionLot, InspLotEndDateGrp. Part of development package ODATA_QM_INSPECTION_ANALYTICS.

Data Sources (1)

SourceAliasJoin Type
P_InspLotResultRecording P_InspLotResultRecording from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Inspection Lot Usage Decision OVP view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #CONSUMPTION view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot P_InspLotResultRecording InspectionLot Inspection Lot
KEY InspLotEndDateGrp P_InspLotResultRecording InspLotEndDateGrp
InspLotEndDateGrpText
_InspLotEndDateGrp P_InspLotResultRecording _InspLotEndDateGrp
InspectionLotCount Number of Inspection Lots
InspectionLotSum
Plant P_InspLotResultRecording Plant Valuation Area
InspectionLotOrigin P_InspLotResultRecording InspectionLotOrigin
InspectionLotType P_InspLotResultRecording InspectionLotType Inspection Type
Material P_InspLotResultRecording Material Vehicle Model
BatchStorageLocation P_InspLotResultRecording BatchStorageLocation
MatlQualityAuthorizationGroup P_InspLotResultRecording MatlQualityAuthorizationGroup QM Matl Auth.
IsBusinessPurposeCompleted P_InspLotResultRecording IsBusinessPurposeCompleted Purpose Completed
Supplier P_InspLotResultRecording Supplier Supplier
Manufacturer P_InspLotResultRecording Manufacturer Manufacturer
ManufacturerPartNmbr P_InspLotResultRecording ManufacturerPartNmbr Mfr Part Number
PurchasingOrganization P_InspLotResultRecording PurchasingOrganization Purchasing Organization
InspectionLotHasQuantity P_InspLotResultRecording InspectionLotHasQuantity
Customer P_InspLotResultRecording Customer Sold-to Party
SoldToParty P_InspLotResultRecording SoldToParty Sold-to Party
SalesOrganization P_InspLotResultRecording SalesOrganization Sales Organization
InspectionLotHasUsageDecision P_InspLotResultRecording InspectionLotHasUsageDecision
InspLotIsTaskListRequired P_InspLotResultRecording InspLotIsTaskListRequired
InspLotRsltRecgStatus P_InspLotResultRecording InspLotRsltRecgStatus

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 C_InspLotUsageDecisionOVP.
-- 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.

CREATE VIEW C_InspLotUsageDecisionOVP AS
SELECT
  P_InspLotResultRecording.InspectionLot AS InspectionLot,
  P_InspLotResultRecording.InspLotEndDateGrp AS InspLotEndDateGrp,
  P_InspLotResultRecording._InspLotEndDateGrp._InspLotEndDateGrpText[1:Language=$session.system_language].InspLotEndDateGrpText AS InspLotEndDateGrpText,
  P_InspLotResultRecording._InspLotEndDateGrp AS _InspLotEndDateGrp,
  cast (cast (P_InspLotResultRecording.InspLotEndDateGrp as abap.numc( 8 ) ) as abap.int8 ) AS InspectionLotCount,
  cast (1 as abap.int8) AS InspectionLotSum,
  P_InspLotResultRecording.Plant AS Plant,
  P_InspLotResultRecording.InspectionLotOrigin AS InspectionLotOrigin,
  P_InspLotResultRecording.InspectionLotType AS InspectionLotType,
  P_InspLotResultRecording.Material AS Material,
  P_InspLotResultRecording.BatchStorageLocation AS BatchStorageLocation,
  P_InspLotResultRecording.MatlQualityAuthorizationGroup AS MatlQualityAuthorizationGroup,
  P_InspLotResultRecording.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  P_InspLotResultRecording.Supplier AS Supplier,
  P_InspLotResultRecording.Manufacturer AS Manufacturer,
  P_InspLotResultRecording.ManufacturerPartNmbr AS ManufacturerPartNmbr,
  P_InspLotResultRecording.PurchasingOrganization AS PurchasingOrganization,
  P_InspLotResultRecording.InspectionLotHasQuantity AS InspectionLotHasQuantity,
  P_InspLotResultRecording.Customer AS Customer,
  P_InspLotResultRecording.SoldToParty AS SoldToParty,
  P_InspLotResultRecording.SalesOrganization AS SalesOrganization,
  P_InspLotResultRecording.InspectionLotHasUsageDecision AS InspectionLotHasUsageDecision,
  P_InspLotResultRecording.InspLotIsTaskListRequired AS InspLotIsTaskListRequired,
  P_InspLotResultRecording.InspLotRsltRecgStatus AS InspLotRsltRecgStatus
FROM P_InspLotResultRecording
;