Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Extending Material Inspection Setup in Quality Management View

HI

I want to extend the material master data from one plant to the other plant. I am new to MM Module.

I am using BAPI_MATERIAL_SAVEDATA to extend the material and working fine. However, the bapi do not extend the inspection data, hence i am using BAPI_MATINSPCTRL_SAVEREPLICA for extending data after material data extended using BAPI_MATERIAL_SAVEDATA.

While saving the Inspection data it is showing error "No Quality Management view has been created for material GMA000015". I guess in table MARC field QMATV should have value 'X' to copy the data. Please correct me if i m wrong. or i am using the wrong function code as '023'. I have tried using '009' as well but it give diff. error.

SELECT * INTO TABLE lt_qmat
         FROM qmat
         WHERE matnr = ls_clientdata-material AND
               werks EQ plant-low.

       LOOP AT lt_qmat INTO ls_qmat.
         CLEAR : ls_bapi_qmat.
         MOVE-CORRESPONDING ls_qmat TO ls_bapi_qmat.
         ls_bapi_qmat-function = '023'.
         ls_bapi_qmat-INSPTYPE = ls_qmat-ART.
         ls_bapi_qmat-MATERIAL = ls_qmat-matnr.
         ls_bapi_qmat-PLANT    = to_plant-low.
         ls_bapi_qmat-IND_INSPTYPE_MAT_ACTIVE = ls_qmat-AKTIV.

         APPEND ls_bapi_qmat TO bapi_qmat.
       ENDLOOP. "AT lt_qmat INTO ls_qmat.

CALL FUNCTION 'BAPI_MATINSPCTRL_SAVEREPLICA'
         TABLES
           return         = lt_bapi_return
           inspectionctrl = bapi_qmat.


Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question