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

How to Create Material Inspection Setup Data using BAPI

Former Member
0 Likes
2,811

Hello all...

I have created material and all its views using BAPI_MATERIAL_SAVEDATA.

But I dont know how to create the Inspection Setup Data, that is under button in Quality Management View...

I was trying with BAPI's:

BAPI_MATINSPCTRL_REPLICATE ( and )

BAPI_MATINSPCTRL_SAVEREPLICA

but they didnt worked for me, Return table comes empty, parameters seems to be incorrect, And BAPI documentation is not enough clear. So I dont know hoy to make it work.

Any help ?

Thanks in advance,

Ibrahim Andres

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,346

Hello,

Plz check the program documentation for Report: RBDSEQMAT. This distributes the QMAT data over ALE.

Hope this helps.

Best Regards, Murugesh AS

5 REPLIES 5
Read only

Former Member
0 Likes
1,347

Hello,

Plz check the program documentation for Report: RBDSEQMAT. This distributes the QMAT data over ALE.

Hope this helps.

Best Regards, Murugesh AS

Read only

0 Likes
1,346

Hi Murugesh...

Thanks for quick reponse...

I have run the program, i have set material and plant from where I need to copy values of inspection setup.

I have set the logical system as well.

Inspection plant or placeholder - empty

First I received message:

'3 were found for distributed inspection types'

and then:

' Could not determine recipients for message type MATQM. '

and program ends....

I cant see where I should set the new material code I need to classify.

I just want to replicate the inspection setup from one existing material to another.

Could you send me an example of parameters I need to pass for this case?

thank you for your response....

Ibrahim Andres

Read only

ferry_lianto
Active Contributor
0 Likes
1,346

Hi,

You need to setup partner profile (WE20) for message type MATQM prior to run program RBDSEQMAT.

Regards,

Ferry Lianto

Read only

0 Likes
1,346

Thanks for replies...

I have solve the problem using BAPI_MATINSPCTRL_SAVEREPLICA

THe only problem I had was that I was misiing that:

INSPECTIONCTRL-function = '009'. "

this parameter indicates that the message is NEW,

so, BAPI, creates it.

thanks everybody.

Ibrahim Andres.

Read only

Former Member
0 Likes
1,346

The solution is:

in BAPI_MATINSPCTRL_SAVEREPLICA

INSPECTIONCTRL-function should be = '009'.