cancel
Showing results for 
Search instead for 
Did you mean: 

Defect Creation by BAPI

former_member308137
Participant
0 Kudos

Hi,

Greetings!!!

Need your help to create defect on results recording screen. My defect details are coming from another system. I want to capture it along with valuation MIC results(rejected).

I am using BAPI to capture results - BAPI_INSPOPER_RECORDRESULTS and sending defect code and code group. Its come successfully and MIC is also updated with rejected valuation however its not creating defect even though i m passing defect code.

Please help to know how to use this above BAPI to create defect.

Note:- At MIC level, "Defect Recording" tick mark is not ticked as I dont need to create defect automatically for this particular MIC.

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Abhishek_Parab
Active Participant
0 Kudos

Hi,

you need to set the Defect recording pop-up in the MIC, but as your requirement is to enter the defects details from external system, do not assign any catalog for defects recording in the MIC .

What this config does in the system, is it will throw a pop-up to record defects if the results are out of specification.

Please let me know if this suggestion helps you

Thanks and Regards,

Abhishek Parab.

vinita_kasliwal
Active Contributor
0 Kudos

Hey Satish

Refer to this link and as mentioned pass the value in single_results table and see if it works?

https://answers.sap.com/questions/928525/bapiinspoperrecordresults.html

Anda also found one more BADI

BAPI_QUALNOT_CREATE, BAPI_QUALNOT_SAVE

After every bapi call pl ensure you commit the data to be saved

BAPI_TRANSACTION_COMMIT

I did a where used and it is being called as below in standard can you put a breakpoint and try to debug?

CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'
EXPORTING
insplot = object-key-insplot
inspoper = object-key-inspoper
insppointdata = insppointdata
handheld_application = handheldapplication
IMPORTING
return = return
TABLES
char_results = charresults
sample_results = sampleresults
single_results = singleresults
returntable = returntable
EXCEPTIONS
OTHERS = 01.

Regards

Vinita