Skip to Content

Defect Creation by BAPI

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 06, 2020 at 02:05 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 12, 2020 at 01:21 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.