I_ProdExQltyInfoRecdInProcmt

DDL: I_PRODEXQLTYINFORECDINPROCMT SQL: IPREXQINFRECPROC Type: view COMPOSITE

Products without Q-Info records

I_ProdExQltyInfoRecdInProcmt is a Composite CDS View that provides data about "Products without Q-Info records" in SAP S/4HANA. It reads from 5 data sources (I_Product, I_Productplantqtmanagement, I_QualityInProcurement, P_QltyInProcmtPlntIdxTblFunc, tq08) and exposes 9 fields with key fields Product, Plant.

Data Sources (5)

SourceAliasJoin Type
I_Product _Prod inner
I_Productplantqtmanagement _Productplantqtmanagement from
I_QualityInProcurement _QualityInProcurement left_outer
P_QltyInProcmtPlntIdxTblFunc P_QltyInProcmtPlntIdxTblFunc inner
tq08 tq08 left_outer

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IPREXQINFRECPROC view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Products without Q-Info records view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
Metadata.ignorePropagatedAnnotations true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY Product I_Productplantqtmanagement Product
KEY Plant I_Productplantqtmanagement Plant
QltyInProcmtIntID _PlantCount werksIndx
QualityMgmtCtrlKey QualityMgmtCtrlKey
SupplierReleaseIsRequired tq08 lieffrei
QltyMgmtInProcmtIsActive I_Product QltyMgmtInProcmtIsActive
BaseUnit I_Product BaseUnit
AuthorizationGroup I_Product AuthorizationGroup
MatlQualityAuthorizationGroup I_Productplantqtmanagement MatlQualityAuthorizationGroup
@AbapCatalog.sqlViewName: 'IPREXQINFRECPROC'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Products without Q-Info records'
@VDM.viewType: #COMPOSITE
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API

@ObjectModel.usageType: { serviceQuality: #C, sizeCategory: #L, dataClass: #MASTER }

@Metadata.ignorePropagatedAnnotations: true

define view I_ProdExQltyInfoRecdInProcmt as select from I_Productplantqtmanagement as _Productplantqtmanagement
    inner   join I_Product as _Prod  on _Prod.Product = _Productplantqtmanagement.Product
    left    outer join tq08             on _Productplantqtmanagement.QualityMgmtCtrlKey = tq08.qm_pur
    left outer join I_QualityInProcurement as _QualityInProcurement      on _Productplantqtmanagement.Product = _QualityInProcurement.Material
                                                                        and _Productplantqtmanagement.Plant = _QualityInProcurement.Plant
    inner   join P_QltyInProcmtPlntIdxTblFunc (P_SAPClient : $session.client) as _PlantCount on _PlantCount.Plant = _Productplantqtmanagement.Plant
 //   association [1..1] to P_QMQLTYINROCIDINDEX as _PlantCount on _PlantCount.Plant = _Productplantqtmanagement.Plant

//    inner join P_QMQLTYINROCIDINDEX as _PlantCount on _PlantCount.Plant = _Productplantqtmanagement.Plant                                                                       

{
    key _Productplantqtmanagement.Product,
    key _Productplantqtmanagement.Plant,
        _PlantCount.werksIndx as QltyInProcmtIntID, 
//        _QualityInProcurement.QltyInProcmtIntID,

        QualityMgmtCtrlKey,                               //Control Key for Quality Management in Procurement 

        tq08.lieffrei as SupplierReleaseIsRequired,
        _Prod.QltyMgmtInProcmtIsActive, 
        _Prod.BaseUnit,
        _Prod.AuthorizationGroup,
        _Productplantqtmanagement.MatlQualityAuthorizationGroup
}
where    (QualityMgmtCtrlKey is not null and QualityMgmtCtrlKey != ' ')// Control key should set

    and  QltyMgmtInProcmtIsActive = 'X'                                // Procurement is active flag is checked

    and  lieffrei ='X'                                                 // Supplier Release flag is checked

    and QltyInProcmtIntID is null                  
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRODUCT",
"I_PRODUCTPLANTQTMANAGEMENT",
"I_QUALITYINPROCUREMENT",
"TQ08"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/