‎2005 May 12 10:29 AM
Hi all
Is it possible to create and populate the QM view on the material master via the BAPI - BAPI_MATERIAL_SAVEDATA? It appears I can create the view but which structure would I use to populate it. Or would I use another BAPI for this?
Cheers
Ian
‎2005 May 12 10:55 AM
Pass values to BAPI tables
headdata-material = it_qm_cre-idnrk. "mater
headdata-quality_view = c_x.
plantdata-plant = it_qm_cre-werks.
plantdatax-plant = it_qm_cre-werks.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = headdata
plantdata = plantdata
plantdatax = plantdatax
IMPORTING
return = l_msg.
Let me know if need anything on this.
Rgds,
Manohar
‎2005 May 12 10:55 AM
Pass values to BAPI tables
headdata-material = it_qm_cre-idnrk. "mater
headdata-quality_view = c_x.
plantdata-plant = it_qm_cre-werks.
plantdatax-plant = it_qm_cre-werks.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = headdata
plantdata = plantdata
plantdatax = plantdatax
IMPORTING
return = l_msg.
Let me know if need anything on this.
Rgds,
Manohar
‎2005 May 12 11:05 AM
Many thanks for you very speedy response, Manohar.
Now, how would I populate the inspection setup information? Can this also be done via a BAPI?
Ian
‎2005 May 12 11:20 AM
Hi,
You need another BAPI you can only create view with former one.
Try BAPI_INSPECTIONPLAN_CREATE.
I never tried that though
Cheers,
Manohar