I_QualityInProcurement

DDL: I_QUALITYINPROCUREMENT SQL: IQLTYINPROCMT Type: view BASIC Package: VDM_QM_PLANNING

Quality Info Record in Procurement

I_QualityInProcurement (Basic)

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

Quality Info Record in Procurement · Manufacturing

I_QualityInProcurement is a Basic CDS View (Dimension) that provides data about "Quality Info Record in Procurement" in SAP S/4HANA. It reads from 1 data source (qinf) and exposes 62 fields with key fields Material, QltyInProcmtIntID. It has 21 associations to related views. Part of development package VDM_QM_PLANNING.

SAP Help Documentation

CategoryCDS Views for Quality Planning
Data CategoryDimension
Purpose
This CDS view provides access to quality info records in procurement. This CDS view provides the data to answer the following business questions: Which quality info records in procurement exist for which material and supplier/plant combination? Which quality-related settings regarding procurement are active for a material and supplier combination? Is a function in procurement blocked for the supplier for a given material/plant? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: SAP_QM_BC_QM_PROCUREMENT_PC (QM - QM in Procurement)

Structure
Important Fields Important fields in this view include the following: Field Name Description Material ID of a material for which the quality info record is used Supplier ID of a supplier for which the quality info record is used Plant ID of a plant for which the quality info record is used QltyInProcmtRelQtyIsActive Indicator that shows if the released quantity of the quality info record is to be checked in purchase orders ReleasedQuantity The released quantity for the supplier/material/plant of the quality info record that is to be checked in purchase orders ProcurementBlock ID of the blocked procurement function

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessManufacturing
Application ComponentQM-PT-2CL
CapabilitiesData Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities,Analytical Dimension
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Not Released
Release State (Developer)Released
PackageManufacturing for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides access to quality info records in procurement.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Which quality info records in procurement exist for which material and supplier/plant combination?</p></li> <li><p>Which quality-related settings regarding procurement are active for a material and supplier combination?</p></li> <li><p>Is a function in procurement blocked for the supplier for a given material/plant?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
qinf qinf from

Associations (21)

CardinalityTargetAliasCondition
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_Material _Material $projection.Material = _Material.Material
[1..1] I_Productplantqtmanagement _ProductPlantQtManagement $projection.Material = _ProductPlantQtManagement.Product and $projection.Plant = _ProductPlantQtManagement.Plant
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.BaseUnit = _UnitOfMeasure.UnitOfMeasure
[0..1] I_StatusProfile _StatusProfile $projection.StatusProfile = _StatusProfile.StatusProfile
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[0..1] I_Language _Language $projection.Language = _Language.Language
[0..1] I_ProcurementBlock _ProcurementBlock $projection.ProcurementBlock = _ProcurementBlock.ProcurementBlock
[0..1] I_ProcurementBlock _SupplierProcurementBlock $projection.supplierprocurementblock = _SupplierProcurementBlock.ProcurementBlock
[0..1] I_QualityManagementSystem _QualityManagementSystem $projection.QualityManagementSystem = _QualityManagementSystem.QualityManagementSystem
[0..1] I_QualityManagementSystem _SuplrQltyMgmtSystem $projection.suplrqualitymanagementsystem = _SuplrQltyMgmtSystem.QualityManagementSystem
[0..1] I_InspectionLotType _InspectionLotType $projection.InspectionLotType = _InspectionLotType.InspectionLotType
[0..1] I_InspectionLot _QltyInProcmtCurInspLot $projection.QltyInProcmtCurInspLot = _QltyInProcmtCurInspLot.InspectionLot
[0..1] I_InspectionLot _QltyInProcmtNextInspLot $projection.QltyInProcmtNextInspLot = _QltyInProcmtNextInspLot.InspectionLot
[0..1] I_ControllingObject _ControllingObject $projection.ControllingObject = _ControllingObject.ControllingObject
[0..1] I_QltyInProcmtInspControl _QltyInProcmtInspControl $projection.QltyInProcmtInspControl = _QltyInProcmtInspControl.QltyInProcmtInspControl
[0..1] I_QltyInProcmtCertificateCtrl _QltyInProcmtCertificateCtrl $projection.QltyInProcmtCertificateCtrl = _QltyInProcmtCertificateCtrl.QltyInProcmtCertificateCtrl
[0..*] I_QltyFirstArticleInsp _QltyFirstArticleInsp $projection.Material = _QltyFirstArticleInsp.Material and $projection.QltyInProcmtIntID = _QltyFirstArticleInsp.QltyInProcmtIntID
[1..1] E_QualityInProcurement _Extension $projection.Material = _Extension.Material and $projection.QltyInProcmtIntID = _Extension.QltyInProcmtIntID

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IQLTYINPROCMT view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Quality Info Record in Procurement view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.representativeKey QltyInProcmtIntID view
ObjectModel.sapObjectNodeType.name PurchasingQualityInfoRecord view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view
Analytics.dataCategory #DIMENSION view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view

Fields (62)

KeyFieldSource TableSource FieldDescription
KEY Material qinf matnr Material Number
KEY QltyInProcmtIntID Quality Info Record in Procurement Internal ID
Supplier qinf lieferant Supplier's Account Number
Plant qinf werk Plant
MaterialRevisionLevel Revision Level
QltyInProcmtReleaseValidTo qinf frei_dat Date Until Which the Release Is Valid
QltyInProcmtRelQtyIsActive Release Quantity Is Active
BaseUnit qinf me Base Unit of Measure for the Material
ReleasedQuantity qinf frei_mng Quantity Released for the Material
OrderedQuantity qinf best_mg Quantity Ordered for the Material
QltyInProcmtResetOnDate qinf dat_rueck Date when the Ordered Quantity Was Reset
BlockReason qinf sperrgrund Blocking Reason
ProcurementBlock qinf sperrfkt Function That Will Be Blocked
QualityManagementSystem qinf qssysfam Actual QM System of Supplier
QltyInProcmtCertfnValidTo qinf qssysdat Validity Date of Certification
SupplierProcurementBlock _Supplier SupplierProcurementBlock Function That Will Be Blocked
SuplrQualityManagementSystem _Supplier SuplrQualityManagementSystem Actual QM System of Supplier
SuplrQltyInProcmtCertfnValidTo _Supplier SuplrQltyInProcmtCertfnValidTo Validity Date of Certification
QltyInProcmtInspControl qinf noinsp Inspection Control in the QM Info Record
InspectionLotType qinf variabnahm Inspection Type for Insp. Lot Origin (Source Inspection)
QltyInProcmtHasLongText qinf ltextkz Inspection Characteristic Long Text Exists
QltyInProcmtNoFurtherInsp Source Inspection Instead of Goods Receipt Inspection
QltyInProcmtLotCrtnLeadTime qinf vorlabn Lot Creation Lead Time (in Days) for Source Inspection
IsDeleted qinf loekz Deletion Flag
QltyInProcmtCertificateCtrl qinf certcontrol Control of Certificate Receipt
QltyInProcmtHasAssuranceAgrmt Quality Assurance Agreement Exists
QltyInProcmtCurInspLot qinf plos Inspection Lot No. in QINF for Current Status
QltyInProcmtNextInspLot qinf plos2 Inspection Lot No. in QINF for Next Status
ProdnPieceApprovalIsRequired qinf ppap_is_required Production Part Approval Is Required
ProductionPieceApproval qinf ppap_id Production Part Approval Identifier
ProductionPieceApprovalLevel qinf ppap_level Production Part Approval for Part Submission Warrant
ProductionPieceApprovalStatus qinf ppap_status Production Part Approval Status
StatusProfile qinf stsma Status Profile Assigned to Quality Info Record
ControllingObject qinf objnr QINF Object Number in Status Management
CreatedByUser qinf ersteller Name of User who Created the Q-Info Record
CreationDate qinf erstelldat Create Date of Q-Info Record
LastChangedByUser qinf aenderer Name of User who Most Recently Changed the Q-Info Record
LastChangeDate qinf aenderdat Change Date of Q-Info Record
changeddatetimeendasChangedDateTime
Language qinf spras Off. Language
LinkedSAPObjectKey _DocObjKeyForQltyInProcmt LinkedSAPObjectKey SAP Object Key
DocumentInfoRecordDocType Document Type for QM Documents
_Material _Material
_ProductPlantQtManagement _ProductPlantQtManagement
_Plant _Plant
_Supplier _Supplier
_UnitOfMeasure _UnitOfMeasure
_ProcurementBlock _ProcurementBlock
_SupplierProcurementBlock _SupplierProcurementBlock
_QualityManagementSystem _QualityManagementSystem
_SuplrQltyMgmtSystem _SuplrQltyMgmtSystem
_ControllingObject _ControllingObject
_QltyInProcmtInspControl _QltyInProcmtInspControl
_QltyInProcmtCertificateCtrl _QltyInProcmtCertificateCtrl
_QltyFirstArticleInsp _QltyFirstArticleInsp
_InspectionLotType _InspectionLotType
_QltyInProcmtCurInspLot _QltyInProcmtCurInspLot
_QltyInProcmtNextInspLot _QltyInProcmtNextInspLot
_StatusProfile _StatusProfile
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_Language _Language

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_QualityInProcurement.
-- 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: IQLTYINPROCMT

CREATE VIEW I_QualityInProcurement AS
SELECT
  qinf.matnr AS Material,
  cast(qinf.zaehl as vdm_qm_qltyinprocmtintid preserving type ) AS QltyInProcmtIntID,
  qinf.lieferant AS Supplier,
  qinf.werk AS Plant,
  cast( qinf.revlv as vdm_qm_revlv preserving type ) AS MaterialRevisionLevel,
  qinf.frei_dat AS QltyInProcmtReleaseValidTo,
  cast( qinf.frei_mgkz as vdm_qfreimgkz preserving type ) AS QltyInProcmtRelQtyIsActive,
  qinf.me AS BaseUnit,
  qinf.frei_mng AS ReleasedQuantity,
  qinf.best_mg AS OrderedQuantity,
  qinf.dat_rueck AS QltyInProcmtResetOnDate,
  qinf.sperrgrund AS BlockReason,
  qinf.sperrfkt AS ProcurementBlock,
  qinf.qssysfam AS QualityManagementSystem,
  qinf.qssysdat AS QltyInProcmtCertfnValidTo,
  _Supplier.SupplierProcurementBlock AS SupplierProcurementBlock,
  _Supplier.SuplrQualityManagementSystem AS SuplrQualityManagementSystem,
  _Supplier.SuplrQltyInProcmtCertfnValidTo AS SuplrQltyInProcmtCertfnValidTo,
  qinf.noinsp AS QltyInProcmtInspControl,
  qinf.variabnahm AS InspectionLotType,
  qinf.ltextkz AS QltyInProcmtHasLongText,
  cast( qinf.noinspabn as vdm_qnoweabn preserving type ) AS QltyInProcmtNoFurtherInsp,
  qinf.vorlabn AS QltyInProcmtLotCrtnLeadTime,
  qinf.loekz AS IsDeleted,
  qinf.certcontrol AS QltyInProcmtCertificateCtrl,
  cast( qinf.qvvorh as vdm_qqsvvorh preserving type ) AS QltyInProcmtHasAssuranceAgrmt,
  qinf.plos AS QltyInProcmtCurInspLot,
  qinf.plos2 AS QltyInProcmtNextInspLot,
  qinf.ppap_is_required AS ProdnPieceApprovalIsRequired,
  qinf.ppap_id AS ProductionPieceApproval,
  qinf.ppap_level AS ProductionPieceApprovalLevel,
  qinf.ppap_status AS ProductionPieceApprovalStatus,
  qinf.stsma AS StatusProfile,
  qinf.objnr AS ControllingObject,
  qinf.ersteller AS CreatedByUser,
  qinf.erstelldat AS CreationDate,
  qinf.aenderer AS LastChangedByUser,
  qinf.aenderdat AS LastChangeDate,
  case qinf.changeddatetime when 0 then cast( '19000101010101' as tzntstmps ) else qinf.changeddatetime end as ChangedDateTime AS changeddatetimeendasChangedDateTime,
  qinf.spras AS Language,
  _DocObjKeyForQltyInProcmt.LinkedSAPObjectKey AS LinkedSAPObjectKey,
  cast( 'Q01' as qdokart preserving type ) AS DocumentInfoRecordDocType
FROM qinf
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_Productplantqtmanagement AS _ProductPlantQtManagement ON Material = _ProductPlantQtManagement.Product AND Plant = _ProductPlantQtManagement.Plant  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON BaseUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_StatusProfile AS _StatusProfile ON StatusProfile = _StatusProfile.StatusProfile  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language  -- association [0..1]
LEFT OUTER JOIN I_ProcurementBlock AS _ProcurementBlock ON ProcurementBlock = _ProcurementBlock.ProcurementBlock  -- association [0..1]
LEFT OUTER JOIN I_ProcurementBlock AS _SupplierProcurementBlock ON supplierprocurementblock = _SupplierProcurementBlock.ProcurementBlock  -- association [0..1]
LEFT OUTER JOIN I_QualityManagementSystem AS _QualityManagementSystem ON QualityManagementSystem = _QualityManagementSystem.QualityManagementSystem  -- association [0..1]
LEFT OUTER JOIN I_QualityManagementSystem AS _SuplrQltyMgmtSystem ON suplrqualitymanagementsystem = _SuplrQltyMgmtSystem.QualityManagementSystem  -- association [0..1]
LEFT OUTER JOIN I_InspectionLotType AS _InspectionLotType ON InspectionLotType = _InspectionLotType.InspectionLotType  -- association [0..1]
LEFT OUTER JOIN I_InspectionLot AS _QltyInProcmtCurInspLot ON QltyInProcmtCurInspLot = _QltyInProcmtCurInspLot.InspectionLot  -- association [0..1]
LEFT OUTER JOIN I_InspectionLot AS _QltyInProcmtNextInspLot ON QltyInProcmtNextInspLot = _QltyInProcmtNextInspLot.InspectionLot  -- association [0..1]
LEFT OUTER JOIN I_ControllingObject AS _ControllingObject ON ControllingObject = _ControllingObject.ControllingObject  -- association [0..1]
LEFT OUTER JOIN I_QltyInProcmtInspControl AS _QltyInProcmtInspControl ON QltyInProcmtInspControl = _QltyInProcmtInspControl.QltyInProcmtInspControl  -- association [0..1]
LEFT OUTER JOIN I_QltyInProcmtCertificateCtrl AS _QltyInProcmtCertificateCtrl ON QltyInProcmtCertificateCtrl = _QltyInProcmtCertificateCtrl.QltyInProcmtCertificateCtrl  -- association [0..1]
LEFT OUTER JOIN I_QltyFirstArticleInsp AS _QltyFirstArticleInsp ON Material = _QltyFirstArticleInsp.Material AND QltyInProcmtIntID = _QltyFirstArticleInsp.QltyInProcmtIntID  -- association [0..*]
LEFT OUTER JOIN E_QualityInProcurement AS _Extension ON Material = _Extension.Material AND QltyInProcmtIntID = _Extension.QltyInProcmtIntID  -- association [1..1]
;