P_InspLotResultRecording

DDL: P_INSPLOTRESULTRECORDING SQL: PINSPLOTRESREC Type: view CONSUMPTION Package: ODATA_QM_INSPECTION_ANALYTICS

Inspection Lot Result Recording

P_InspLotResultRecording is a Consumption CDS View that provides data about "Inspection Lot Result Recording" in SAP S/4HANA. It has 2 associations to related views. Part of development package ODATA_QM_INSPECTION_ANALYTICS.

Parameters (1)

NameTypeDefault
P_endDate abap.dats

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_InspLotEndDateGrp _InspLotEndDateGrp $projection.InspLotEndDateGrp = _InspLotEndDateGrp.InspLotEndDateGrp
[1..1] I_InspectionLotWithStatus _InspectionLotWithStatus $projection.InspectionLot = _InspectionLotWithStatus.InspectionLot

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PINSPLOTRESREC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Inspection Lot Result Recording view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (24)

KeyFieldSource TableSource FieldDescription
InspectionLot _InspectionLot InspectionLot Inspection Lot
InspectionLotEndDate _InspectionLot InspectionLotEndDate
Plant _InspectionLot Plant Valuation Area
InspectionLotOrigin _InspectionLot InspectionLotOrigin
InspectionLotType _InspectionLot InspectionLotType Inspection Type
Material _InspectionLot Material Vehicle Model
InspectionLotStorageLocation _InspectionLot InspectionLotStorageLocation
BatchStorageLocation _InspectionLot BatchStorageLocation
MatlQualityAuthorizationGroup _InspectionLot MatlQualityAuthorizationGroup QM Matl Auth.
IsBusinessPurposeCompleted _InspectionLot IsBusinessPurposeCompleted Purpose Completed
Supplier _InspectionLot Supplier Supplier
Manufacturer _InspectionLot Manufacturer Manufacturer
ManufacturerPartNmbr _InspectionLot ManufacturerPartNmbr Mfr Part Number
PurchasingOrganization _InspectionLot PurchasingOrganization Purchasing Organization
InspectionLotHasQuantity
Customer _InspectionLot Customer Sold-to Party
SoldToParty _InspectionLot SoldToParty Sold-to Party
SalesOrganization _InspectionLot SalesOrganization Sales Organization
InspectionLotHasUsageDecision
InspLotIsTaskListRequired
InspLotHasMaterialSpec
InspLotNmbrOpenLongTermCharc
InspLotUsageDecisionValuation _InspectionLot InspLotUsageDecisionValuation
_InspLotEndDateGrp _InspLotEndDateGrp

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_InspLotResultRecording.
-- 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: PINSPLOTRESREC
-- Parameters: P_endDate : abap.dats

CREATE VIEW P_InspLotResultRecording AS
SELECT
  _InspectionLot.InspectionLot AS InspectionLot,
  _InspectionLot.InspectionLotEndDate AS InspectionLotEndDate,
  _InspectionLot.Plant AS Plant,
  _InspectionLot.InspectionLotOrigin AS InspectionLotOrigin,
  _InspectionLot.InspectionLotType AS InspectionLotType,
  _InspectionLot.Material AS Material,
  _InspectionLot.InspectionLotStorageLocation AS InspectionLotStorageLocation,
  _InspectionLot.BatchStorageLocation AS BatchStorageLocation,
  _InspectionLot.MatlQualityAuthorizationGroup AS MatlQualityAuthorizationGroup,
  _InspectionLot.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  _InspectionLot.Supplier AS Supplier,
  _InspectionLot.Manufacturer AS Manufacturer,
  _InspectionLot.ManufacturerPartNmbr AS ManufacturerPartNmbr,
  _InspectionLot.PurchasingOrganization AS PurchasingOrganization,
  cast( _InspectionLot.InspectionLotHasQuantity as xfeld ) AS InspectionLotHasQuantity,
  _InspectionLot.Customer AS Customer,
  _InspectionLot.SoldToParty AS SoldToParty,
  _InspectionLot.SalesOrganization AS SalesOrganization,
  cast('' as abap.char( 1 )) AS InspectionLotHasUsageDecision,
  cast('' as abap.char( 1 )) AS InspLotIsTaskListRequired,
  cast('' as abap.char( 1 )) AS InspLotHasMaterialSpec,
  cast(_InspectionLot.InspLotNmbrOpenLongTermCharc as abap.char( 6 )) AS InspLotNmbrOpenLongTermCharc,
  _InspectionLot.InspLotUsageDecisionValuation AS InspLotUsageDecisionValuation
LEFT OUTER JOIN I_InspLotEndDateGrp AS _InspLotEndDateGrp ON InspLotEndDateGrp = _InspLotEndDateGrp.InspLotEndDateGrp  -- association [1..1]
LEFT OUTER JOIN I_InspectionLotWithStatus AS _InspectionLotWithStatus ON InspectionLot = _InspectionLotWithStatus.InspectionLot  -- association [1..1]
;