Skip to Content
author's profile photo Former Member
Former Member

BAPI_INSPOPER_RECORDRESULTS not recording results

I'm trying to use BAPI_INSPOPER_RECORDRESULTS to record results for a physical sample. The results should be visible in QE23 after entering Inspection Lot, Operation, Work Center, Plant, and Physical Sample.

The BAPI does not return any error messages (nor success message), and I'm calling BAPI_TRANSACTION_COMMIT afterwards.

The hierarchy is:

Inspection Lot -> Operation -> Physical Sample -> characteristic ID for specific line to enter the result.

For some reason the results don't get saved for a specific Physical Sample number. It's strange because I'm able to see some changes being made by the BAPI on the Operation level, not exactly what I'm looking for but at least the BAPI is doing something. The goal is to enter letter 'A' or 'R' (accepted/rejected) on a given line in Physical Sample.

I've tried several combinations of data being passed and nothing seems to work. Any suggestions will help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 11, 2007 at 03:26 PM

    got it to work. instead of using multiple lines for one test, we changed it to one line per test, and recorded the number of failed results instead of using multiple A's or R's.

    You have to make sure to pass:

    wa_insplotdata

    wa_single_results

    wa_sample_results

    wa_char_results is not necessary and updates the results at operation level, not physical sample level. your results for a specific physical sample go into wa_sample_results.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 11, 2007 at 03:26 PM

    got it to work. instead of using multiple lines for one test, we changed it to one line per test, and recorded the number of failed results instead of using multiple A's or R's.

    You have to make sure to pass:

    CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'

    EXPORTING

    INSPLOT = wa_upload-prueflos

    INSPOPER = wa_upload-vornr

    INSPPOINTDATA = wa_insppointdata

    TABLES

    SINGLE_RESULTS = it_single_results

    SAMPLE_RESULTS = it_sample_results

    RETURNTABLE = it_returntable.

    Then call:

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    EXPORTING

    WAIT = 'X'.

    wa_char_results is not necessary and updates the results at operation level, not physical sample level. your results for a specific physical sample go into wa_sample_results.

    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.