SAP Knowledge Base Article - Public

2785166 - API API_PRODUCT_SRV returns wrong value for the field "Post to Inspection Stock”

Symptom

  • The flag "Post to Inspection Stock" is set on the Quality Management View for an Inspection type, but the API  API_PRODUCT_SRV  ( Method GET ) returns the flag as not being maintained:
     
    QM_popup.png

Environment

  • SAP S/4HANA Cloud Public Edition
  • Master Data

Cause

"Post to Inspection Stock” field is present in 2 tables: MARC ( Plant Data for Material ) and QMAT ( Inspection type - material parameters )

The field which can be seen on the pop-up screen is from QMAT table and not from the MARC table. The API is returning the data from MARC table (in other words Plant nodes) where it is blank.

MARC.png

The MARC field is used, if no stock-relevant inspection type has been activated in the inspection setup, and therefore no stock-relevant inspection lots can be created.

If you activate a stock-relevant inspection type, the entry in this field is deselected and can no longer be maintained.

Resolution

System works as designed.

To read the information from the QMAT table, the CDS view I_ProductInspTypeSetting can be used.

Keywords

API_PRODUCT_SRV - A_ProductPlantQualityMgmt  , HasPostToInspectionStock , INSMK , MARC , QMAT , insp., material master , KBA , QM-PT , Quality Planning , LO-MD-FIO-MM , Fiori UI for Product Master , QM-PT-2CL , Quality Planning (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions