Application Development 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: 

How to get the inspection setup of a material using BAPI?

karun_prabhu
Active Contributor
0 Kudos

Hi guys.

I am using BAPI_MATERIAL_SAVEDATA to extend a material from one plant to another.

First I have extended the material. Next I want to create the inspection setup.

I want to know the way to get the inspection setup of the material from the first plant.

If I get it, then I can create the inspection setup using BAPI_MATINSPCTRL_SAVEREPLICA in the second plant.

Thanks in advance.

1 ACCEPTED SOLUTION

Kartik2
Contributor
0 Kudos

Dear Mr. Arun Prabhu,

As far as i know there i no function module to get the inspection details of the material. All you can do is get the ispection type of the material and based on the inspection type you can get the inspection details from the master table -

TQ34 - Default values for inspection type

Hope it helps. Thank you.

Regards,

kartik

2 REPLIES 2

Kartik2
Contributor
0 Kudos

Dear Mr. Arun Prabhu,

As far as i know there i no function module to get the inspection details of the material. All you can do is get the ispection type of the material and based on the inspection type you can get the inspection details from the master table -

TQ34 - Default values for inspection type

Hope it helps. Thank you.

Regards,

kartik

0 Kudos

http://scn.sap.com/thread/3148503 assisted me.

I got the inspection setup details from QMAT table.

select * from QMAT APPENDING table iqmat

     where matnr = w_matnr

     and   werks = 'TPFB'.