I_InspLotUsageDecision

DDL: I_INSPLOTUSAGEDECISION SQL: IINSPLOTUSGDCSN Type: view BASIC Package: VDM_QM_INSPECTION

Usage Decision for Inspection Lot

I_InspLotUsageDecision (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Manufacturing

I_InspLotUsageDecision is a Basic CDS View that provides data about "Usage Decision for Inspection Lot" in SAP S/4HANA. It reads from 1 data source (qave) and exposes 33 fields with key field InspectionLot. It has 15 associations to related views. Part of development package VDM_QM_INSPECTION.

SAP API Hub

CategoryBasic
StateC1
Line of BusinessManufacturing
Application ComponentQM-IM-2CL
CapabilitiesData Source in SQL Select,Data Source for Defining CDS Entities,Association Target for Defining CDS Entities
Extensible (Key User)Yes
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageManufacturing for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides access to the inspection lot usage decision data.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
qave qave from

Associations (15)

CardinalityTargetAliasCondition
[1..1] I_InspectionLot _InspectionLot $projection.InspectionLot = _InspectionLot.InspectionLot
[1..*] I_InspLotUsgeDcsnLongText _InspLotUsgeDcsnLongText $projection.InspectionLot = _InspLotUsgeDcsnLongText.InspectionLot
[1..1] I_InspectionSelectedSet _InspLotUsgeDcsnSelectedSet _InspLotUsgeDcsnSelectedSet.SelectedCodeSetPlant = $projection.SelectedCodeSetPlant and _InspLotUsgeDcsnSelectedSet.InspectionCatalog = '3' and _InspLotUsgeDcsnSelectedSet.SelectedCodeSet = $projection.InspLotUsgeDcsnSelectedSet
[1..1] I_UsageDcsnSelectedCodeSet _UsageDcsnSelectedCodeSet $projection.SelectedCodeSetPlant = _UsageDcsnSelectedCodeSet.SelectedCodeSetPlant and $projection.InspLotUsgeDcsnSelectedSet = _UsageDcsnSelectedCodeSet.SelectedCodeSet
[1..1] I_UsageDecisionCodeGroup _UsageDecisionCodeGroup $projection.InspLotUsageDecisionCodeGroup = _UsageDecisionCodeGroup.UsageDecisionCodeGroup
[1..1] I_UsageDecisionCode _UsageDecisionCode $projection.InspLotUsageDecisionCodeGroup = _UsageDecisionCode.UsageDecisionCodeGroup and $projection.InspectionLotUsageDecisionCode = _UsageDecisionCode.UsageDecisionCode
[0..1] I_User _InspectionLotUsageDecidedBy $projection.InspectionLotUsageDecidedBy = _InspectionLotUsageDecidedBy.UserID
[0..1] I_User _InspLotUsageDecisionChangedBy $projection.InspLotUsageDecisionChangedBy = _InspLotUsageDecisionChangedBy.UserID
[0..1] I_UserContactCard _UsgeDecidedByUserContactCard $projection.InspectionLotUsageDecidedBy = _UsgeDecidedByUserContactCard.ContactCardID
[0..1] I_UserContactCard _UsgeDcsnChgdByUserContactCard $projection.InspLotUsageDecisionChangedBy = _UsgeDcsnChgdByUserContactCard.ContactCardID
[0..1] I_Plant _SelectedCodeSetPlant $projection.SelectedCodeSetPlant = _SelectedCodeSetPlant.Plant
[0..1] I_Indicator _InspLotUsgeDcsnHasLongText $projection.InspLotUsgeDcsnHasLongText = _InspLotUsgeDcsnHasLongText.IndicatorValue
[0..1] I_InspLotUsgeDcsnValn _UsageDecisionValuation $projection.InspLotUsageDecisionValuation = _UsageDecisionValuation.InspLotUsageDecisionValuation
[0..*] I_InspLotUsgeDcsnValnTxt _UsgeDcsnValuationText $projection.InspLotUsageDecisionValuation = _UsgeDcsnValuationText.QltyTechKeyWithPreservingType
[1..1] E_InspLotUsageDecision _Extension $projection.InspectionLot = _Extension.InspectionLot

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IINSPLOTUSGDCSN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Usage Decision for Inspection Lot view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
Metadata.ignorePropagatedAnnotations true view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot qave prueflos Inspection Lot Number
InspLotUsageDecisionLevel qave kzart Inspection Lot, Partial Lot, Single Unit, Interval
InspLotUsageDecisionInternalID qave zaehler Counter for Usage Decision
InspectionLotQualityScore qave qkennzahl Quality Score
InspLotUsageDecisionCatalog qave vkatart Catalog
SelectedCodeSetPlant qave vwerks Plant
InspLotUsgeDcsnSelectedSet qave vauswahlmg Selected Set of the Usage Decision
InspLotUsageDecisionCodeGroup Usage Decision Code Group
InspectionLotUsageDecisionCode qave vcode Usage Decision Code
InspLotUsgeDcsnDynValuation qave dbewertung Dynamic Modif. Valuation According to Worst Case Principle
InspLotUsageDecisionValuation qave vbewertung Code Valuation
InspLotUsgeDcsnFollowUpAction qave vfolgeakti Follow-Up Action
InspectionLotUsageDecidedBy Usage Decision Made By
InspectionLotUsageDecidedOn Date When Usage Decision Was Made
InspLotUsageDecisionTime Time When Usage Decision Was Made
InspLotUsageDecisionChangedBy Usage Decision Changed By
InspLotUsageDecisionChangedOn Date When Usage Decision Was Changed
InspLotUsgeDcsnChangedTime Time When Usage Decision Was Changed
InspLotUsgeDcsnHasLongText Usage Decision Has Long Text
_InspectionLot _InspectionLot
_InspLotUsgeDcsnLongText _InspLotUsgeDcsnLongText
_UsageDecisionCodeGroup _UsageDecisionCodeGroup
_UsageDecisionCode _UsageDecisionCode
_InspectionLotUsageDecidedBy _InspectionLotUsageDecidedBy
_InspLotUsageDecisionChangedBy _InspLotUsageDecisionChangedBy
_UsgeDecidedByUserContactCard _UsgeDecidedByUserContactCard
_UsgeDcsnChgdByUserContactCard _UsgeDcsnChgdByUserContactCard
_UsageDecisionValuation _UsageDecisionValuation
_UsgeDcsnValuationText _UsgeDcsnValuationText
_SelectedCodeSetPlant _SelectedCodeSetPlant
_InspLotUsgeDcsnSelectedSet _InspLotUsgeDcsnSelectedSet
_UsageDcsnSelectedCodeSet _UsageDcsnSelectedCodeSet
_InspLotUsgeDcsnHasLongText _InspLotUsgeDcsnHasLongText

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 I_InspLotUsageDecision.
-- 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: IINSPLOTUSGDCSN

CREATE VIEW I_InspLotUsageDecision AS
SELECT
  qave.prueflos AS InspectionLot,
  qave.kzart AS InspLotUsageDecisionLevel,
  qave.zaehler AS InspLotUsageDecisionInternalID,
  qave.qkennzahl AS InspectionLotQualityScore,
  qave.vkatart AS InspLotUsageDecisionCatalog,
  qave.vwerks AS SelectedCodeSetPlant,
  qave.vauswahlmg AS InspLotUsgeDcsnSelectedSet,
  cast( qave.vcodegrp as vdm_qvgruppe preserving type ) AS InspLotUsageDecisionCodeGroup,
  qave.vcode AS InspectionLotUsageDecisionCode,
  qave.dbewertung AS InspLotUsgeDcsnDynValuation,
  qave.vbewertung AS InspLotUsageDecisionValuation,
  qave.vfolgeakti AS InspLotUsgeDcsnFollowUpAction,
  cast( qave.vname as vdm_qvname preserving type ) AS InspectionLotUsageDecidedBy,
  cast( qave.vdatum as vdm_qvedatum preserving type ) AS InspectionLotUsageDecidedOn,
  cast( qave.vezeiterf as vdm_qvezeiterf preserving type ) AS InspLotUsageDecisionTime,
  cast( qave.vaename as vdm_qvaename preserving type ) AS InspLotUsageDecisionChangedBy,
  cast( qave.vaedatum as vdm_qvaedatum preserving type ) AS InspLotUsageDecisionChangedOn,
  cast( qave.vezeitaen as vdm_qvezeitaen preserving type ) AS InspLotUsgeDcsnChangedTime,
  cast( qave.ltextkz as vdm_qltextave preserving type ) AS InspLotUsgeDcsnHasLongText
FROM qave
LEFT OUTER JOIN I_InspectionLot AS _InspectionLot ON InspectionLot = _InspectionLot.InspectionLot  -- association [1..1]
LEFT OUTER JOIN I_InspLotUsgeDcsnLongText AS _InspLotUsgeDcsnLongText ON InspectionLot = _InspLotUsgeDcsnLongText.InspectionLot  -- association [1..*]
LEFT OUTER JOIN I_InspectionSelectedSet AS _InspLotUsgeDcsnSelectedSet ON _InspLotUsgeDcsnSelectedSet.SelectedCodeSetPlant = SelectedCodeSetPlant AND _InspLotUsgeDcsnSelectedSet.InspectionCatalog = '3' AND _InspLotUsgeDcsnSelectedSet.SelectedCodeSet = InspLotUsgeDcsnSelectedSet  -- association [1..1]
LEFT OUTER JOIN I_UsageDcsnSelectedCodeSet AS _UsageDcsnSelectedCodeSet ON SelectedCodeSetPlant = _UsageDcsnSelectedCodeSet.SelectedCodeSetPlant AND InspLotUsgeDcsnSelectedSet = _UsageDcsnSelectedCodeSet.SelectedCodeSet  -- association [1..1]
LEFT OUTER JOIN I_UsageDecisionCodeGroup AS _UsageDecisionCodeGroup ON InspLotUsageDecisionCodeGroup = _UsageDecisionCodeGroup.UsageDecisionCodeGroup  -- association [1..1]
LEFT OUTER JOIN I_UsageDecisionCode AS _UsageDecisionCode ON InspLotUsageDecisionCodeGroup = _UsageDecisionCode.UsageDecisionCodeGroup AND InspectionLotUsageDecisionCode = _UsageDecisionCode.UsageDecisionCode  -- association [1..1]
LEFT OUTER JOIN I_User AS _InspectionLotUsageDecidedBy ON InspectionLotUsageDecidedBy = _InspectionLotUsageDecidedBy.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _InspLotUsageDecisionChangedBy ON InspLotUsageDecisionChangedBy = _InspLotUsageDecisionChangedBy.UserID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _UsgeDecidedByUserContactCard ON InspectionLotUsageDecidedBy = _UsgeDecidedByUserContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _UsgeDcsnChgdByUserContactCard ON InspLotUsageDecisionChangedBy = _UsgeDcsnChgdByUserContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SelectedCodeSetPlant ON SelectedCodeSetPlant = _SelectedCodeSetPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _InspLotUsgeDcsnHasLongText ON InspLotUsgeDcsnHasLongText = _InspLotUsgeDcsnHasLongText.IndicatorValue  -- association [0..1]
LEFT OUTER JOIN I_InspLotUsgeDcsnValn AS _UsageDecisionValuation ON InspLotUsageDecisionValuation = _UsageDecisionValuation.InspLotUsageDecisionValuation  -- association [0..1]
LEFT OUTER JOIN I_InspLotUsgeDcsnValnTxt AS _UsgeDcsnValuationText ON InspLotUsageDecisionValuation = _UsgeDcsnValuationText.QltyTechKeyWithPreservingType  -- association [0..*]
LEFT OUTER JOIN E_InspLotUsageDecision AS _Extension ON InspectionLot = _Extension.InspectionLot  -- association [1..1]
;