I_InspectionCode

DDL: I_INSPECTIONCODE SQL: IINSPCODE Type: view BASIC

Inspection Code

I_InspectionCode (Basic)

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

Manufacturing

I_InspectionCode is a Basic CDS View that provides data about "Inspection Code" in SAP S/4HANA. It reads from 1 data source (qpcd) and exposes 6 fields with key fields InspectionCatalog, InspectionCodeGroup, InspectionCode. It has 3 associations to related views.

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentQM-PT
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides access to the definition of codes for all catalog types.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
qpcd qpcd from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Inspectioncatalog _InspectionCatalog $projection.InspectionCatalog = _InspectionCatalog.InspectionCatalog
[1..1] I_InspectionCodeGroup _InspectionCodeGroup $projection.InspectionCatalog = _InspectionCodeGroup.InspectionCatalog and $projection.InspectionCodeGroup = _InspectionCodeGroup.InspectionCodeGroup
[1..*] I_InspectionCodeText _Text $projection.InspectionCatalog = _Text.InspectionCatalog and $projection.InspectionCodeGroup = _Text.InspectionCodeGroup and $projection.InspectionCode = _Text.InspectionCode

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IINSPCODE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Inspection Code view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.representativeKey InspectionCode view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Metadata.ignorePropagatedAnnotations true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY InspectionCatalog qpcd katalogart Catalog
KEY InspectionCodeGroup codegruppe Code Group
KEY InspectionCode code Water Hazard Cl.
_InspectionCatalog _InspectionCatalog
_InspectionCodeGroup _InspectionCodeGroup
_Text _Text

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_InspectionCode.
-- 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: IINSPCODE

CREATE VIEW I_InspectionCode AS
SELECT
  qpcd.katalogart AS InspectionCatalog,
  codegruppe AS InspectionCodeGroup,
  code AS InspectionCode
FROM qpcd
LEFT OUTER JOIN I_Inspectioncatalog AS _InspectionCatalog ON InspectionCatalog = _InspectionCatalog.InspectionCatalog  -- association [1..1]
LEFT OUTER JOIN I_InspectionCodeGroup AS _InspectionCodeGroup ON InspectionCatalog = _InspectionCodeGroup.InspectionCatalog AND InspectionCodeGroup = _InspectionCodeGroup.InspectionCodeGroup  -- association [1..1]
LEFT OUTER JOIN I_InspectionCodeText AS _Text ON InspectionCatalog = _Text.InspectionCatalog AND InspectionCodeGroup = _Text.InspectionCodeGroup AND InspectionCode = _Text.InspectionCode  -- association [1..*]
;