Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using a BAPI to create the QM view

IanStubbings
Active Participant
0 Likes
1,872

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,127
  • 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

3 REPLIES 3
Read only

Former Member
0 Likes
1,128
  • 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

Read only

0 Likes
1,127

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

Read only

0 Likes
1,127

Hi,

You need another BAPI you can only create view with former one.

Try BAPI_INSPECTIONPLAN_CREATE.

I never tried that though

Cheers,

Manohar