C_InspUsgDescCF

DDL: C_INSPUSGDESCCF SQL: CINSPUSGDESCCF Type: view CONSUMPTION Package: ODATA_QM_INSPLOT

Inspection lot Usage Decision Calculation Fields

C_InspUsgDescCF is a Consumption CDS View that provides data about "Inspection lot Usage Decision Calculation Fields" in SAP S/4HANA. It reads from 1 data source (I_InspectionLot) and exposes 32 fields with key field InspectionLot. It has 8 associations to related views. Part of development package ODATA_QM_INSPLOT.

Data Sources (1)

SourceAliasJoin Type
I_InspectionLot _InspLot from

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_InspectionLotAggregate _InspLotAggrgn $projection.InspectionLot = _InspLotAggrgn.InspectionLot
[1..1] I_InspLotUsageDecision _InspLotUsgeDcsn $projection.InspectionLot = _InspLotUsgeDcsn.InspectionLot
[1..1] I_InspectionLotWithStatus _InspectionLotWithStatus $projection.InspectionLot = _InspectionLotWithStatus.InspectionLot
[0..1] C_InspLotRsltRecgStatusT _InspLotRsltRecgStatusT $projection.InspLotRsltRecgStatus = _InspLotRsltRecgStatusT.InspLotRsltRecgStatus
[1..1] I_InspLotRsltRecgStatusText _InspLotRsltRecgStatusText $projection.InspLotRsltRecgStatus = _InspLotRsltRecgStatusText.InspLotRsltRecgStatus and _InspLotRsltRecgStatusText.Language = $session.system_language
[1..1] I_InspLotCompltnStatusText _InspLotCompltnStatusText $projection.InspLotCompltnStatus = _InspLotCompltnStatusText.InspLotCompltnStatus and _InspLotCompltnStatusText.Language = $session.system_language
[0..1] C_InspLotCompltnStatusT _InspLotCompltnStatusT $projection.InspLotCompltnStatus = _InspLotCompltnStatusT.InspLotCompltnStatus
[0..1] C_InspLotDefectCount _InspLotDefectCount $projection.InspectionLot = _InspLotDefectCount.InspectionLot

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CINSPUSGDESCCF view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Inspection lot Usage Decision Calculation Fields view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
Search.searchable true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot I_InspectionLot InspectionLot Inspection Lot
InspectionLotTypeText
InspCharCount
InspLotUsgeDcsnValuationText
MaterialName
InspLotUsageDecisionLongText
InspLotHasSubsets
InspectionLotIsSkipped
InspSubsetIsVisible
InspStockPostingIsVisible
InspLotIsCompletionForced
NumberOfDefectsCriticality
NumberOfDefects
IsCloudSystem
IsAttachmentsEnabled
InspCharacteristicCount
InspCharRejectedCount
InspCharOpenCount
InspLotStkQtyPosted
InspLotStkQtyToBePosted
Plant I_InspectionLot Plant Valuation Area
InspectionLotType I_InspectionLot InspectionLotType Inspection Type
MatlQualityAuthorizationGroup I_InspectionLot MatlQualityAuthorizationGroup QM Matl Auth.
IsBusinessPurposeCompleted I_InspectionLot IsBusinessPurposeCompleted Purpose Completed
_InspLotAggrgn _InspLotAggrgn
_InspLotUsgeDcsn _InspLotUsgeDcsn
_InspectionLotWithStatus _InspectionLotWithStatus
_InspLotRsltRecgStatusT _InspLotRsltRecgStatusT
_InspLotRsltRecgStatusText _InspLotRsltRecgStatusText
_InspLotCompltnStatusText _InspLotCompltnStatusText
_InspLotCompltnStatusT _InspLotCompltnStatusT
_InspLotDefectCount _InspLotDefectCount

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_InspUsgDescCF.
-- 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: CINSPUSGDESCCF

CREATE VIEW C_InspUsgDescCF AS
SELECT
  _InspLot.InspectionLot AS InspectionLot,
  _InspLot._InspectionLotType._Text[1:Language=$session.system_language].InspectionLotTypeText AS InspectionLotTypeText,
  cast( concat_with_space (concat (cast (_InspLotAggrgn.InspCharRejectedCount as abap.char( 20 )),' / '),cast (_InspLotAggrgn.InspCharacteristicCount as abap.char( 20 )), 1) as vdm_inspcharcount ) AS InspCharCount,
  _InspLot._InspLotUsageDecision._UsageDecisionValuation._Text[1:Language=$session.system_language].InspLotUsgeDcsnValuationText AS InspLotUsgeDcsnValuationText,
  _InspLot._Material._Text[1:Language=$session.system_language].MaterialName AS MaterialName,
  cast ( ' ' as abap.sstring( 1333 ) ) AS InspLotUsageDecisionLongText,
  cast(_InspLot.InspLotHasSubsets as xfeld) AS InspLotHasSubsets,
  cast(_InspLot.InspectionLotIsSkipped as vdm_qkzskiplot preserving type ) AS InspectionLotIsSkipped,
  'X' AS InspSubsetIsVisible,
  'X' AS InspStockPostingIsVisible,
  'X' AS InspLotIsCompletionForced,
  cast( 0 as abap.int1) AS NumberOfDefectsCriticality,
  cast( 0 as vdm_numberofdefects ) AS NumberOfDefects,
  ' ' AS IsCloudSystem,
  'X' AS IsAttachmentsEnabled,
  cast( _InspLotAggrgn.InspCharacteristicCount as vdm_inspcharacteristiccount preserving type ) AS InspCharacteristicCount,
  cast( _InspLotAggrgn.InspCharRejectedCount as vdm_inspcharrejectedcount preserving type ) AS InspCharRejectedCount,
  cast( _InspLotAggrgn.InspCharOpenCount as vdm_inspcharopencount preserving type ) AS InspCharOpenCount,
  cast((_InspLot.InspectionLotActualQuantity - _InspLot.InspLotQtyToBePosted) as vdm_insplotstkqtyposted) AS InspLotStkQtyPosted,
  cast(_InspLot.InspLotQtyToBePosted as vdm_insplotstkqtytobeposted) AS InspLotStkQtyToBePosted,
  _InspLot.Plant AS Plant,
  _InspLot.InspectionLotType AS InspectionLotType,
  _InspLot.MatlQualityAuthorizationGroup AS MatlQualityAuthorizationGroup,
  _InspLot.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM I_InspectionLot AS _InspLot
LEFT OUTER JOIN I_InspectionLotAggregate AS _InspLotAggrgn ON InspectionLot = _InspLotAggrgn.InspectionLot  -- association [1..1]
LEFT OUTER JOIN I_InspLotUsageDecision AS _InspLotUsgeDcsn ON InspectionLot = _InspLotUsgeDcsn.InspectionLot  -- association [1..1]
LEFT OUTER JOIN I_InspectionLotWithStatus AS _InspectionLotWithStatus ON InspectionLot = _InspectionLotWithStatus.InspectionLot  -- association [1..1]
LEFT OUTER JOIN C_InspLotRsltRecgStatusT AS _InspLotRsltRecgStatusT ON InspLotRsltRecgStatus = _InspLotRsltRecgStatusT.InspLotRsltRecgStatus  -- association [0..1]
LEFT OUTER JOIN I_InspLotRsltRecgStatusText AS _InspLotRsltRecgStatusText ON InspLotRsltRecgStatus = _InspLotRsltRecgStatusText.InspLotRsltRecgStatus AND _InspLotRsltRecgStatusText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_InspLotCompltnStatusText AS _InspLotCompltnStatusText ON InspLotCompltnStatus = _InspLotCompltnStatusText.InspLotCompltnStatus AND _InspLotCompltnStatusText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN C_InspLotCompltnStatusT AS _InspLotCompltnStatusT ON InspLotCompltnStatus = _InspLotCompltnStatusT.InspLotCompltnStatus  -- association [0..1]
LEFT OUTER JOIN C_InspLotDefectCount AS _InspLotDefectCount ON InspectionLot = _InspLotDefectCount.InspectionLot  -- association [0..1]
;