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 create an INSPECTION POINT (BAPI_INSPOPER_RECORDRESULTS?)

Former Member
0 Kudos
1,412

Hello experts, i hope this is the correct forum, if not please move.

We want to create a new inspection point for a existing insplot. This insplot is initial and should get serveral inspection points createt from my program.

For this issue i tried to use the FM BAPI_INSPOPER_RECORDRESULTS but it doesn´t work.

The inspection point is createt, but the values are not insertet...

Here is an image of the created inspectionpoint:

I call the FM like this:

CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'
     EXPORTING
       INSPLOT       = me->wa_workarea-qplos
       INSPOPER      = <fs_ppunkt>-vorgang
       insppointdata = wa_inspoints
     TABLES
       CHAR_RESULTS  = it_char_results
       RETURNTABLE   = it_return.

The values of it_char_results are:

INSPLOTINSPOPERINSPCHARCLOSEDEVALUATEDCHAR_ATTRCHAR_INVALEVALUATIONERR_CLASSVALID_VALSNONCONFDEFECTSVALS_ABOVEVALS_BELOWMEAN_VALUEVARIANCEMAXIMUMMINIMUMSTART_DATESTART_TIMEEND_DATEEND_TIMEINSPECTORRES_ORGREMARKCODE1CODE_GRP1CODE2CODE_GRP2CODE3CODE_GRP3CODE4CODE_GRP4CODE5CODE_GRP5ORIGINAL_INPUTINPPROC_READYDIFF_DEC_PLACES
30000217566801010XXA162012033010045020120330100450PFAHLBE0
30000217566801020XXA23,52012033010045020120330100450PFAHLBE0
30000217566801030XXA2,92012033010045020120330100450PFAHLBE0
30000217566801040XXA6,72012033010045020120330100450PFAHLBE0

There are no errors in it_return, but the values are missing, also there is no evaluation.

Whats my mistake?

2 REPLIES 2

Former Member
0 Kudos
265

Hi Benjamin,

Some of information hope it helpfull for your case.

hope you have all required authorizations for transaction QE11

This method creates an inspection point for an inspection lot operation. It contains data related to the inspection point identification and - optional - data about the partial lot, batch, and inspection point valuation.

There is no standard rule on which fields of an inspection point must be maintained or which fields cannot be filled. The inspection point requirements can be defined in Customizing and in planning (inspection plan, routing, master recipe). These requirements can be called up, read and evaluated at any time using the BAPI InspPoint.GetRequirements. The dependencies are described in the parameter DATA.

The inspection point number cannot be imported from an external source. The number is determined internally and then exported using the parameter InspPoint. The inspection point number is the prerequisite for any subsequent confirmations of inspection results to characteristics using the BAPI.

This BAPI contains a COMMIT WORK AND WAIT. After the BAPI has been called, the inspection point exists in the database and is no longer locked.

[Note:This only works if "Results Record Status" is 2-Processed but the initial status is 0-Can be processed]

Thanks,

Deb

0 Kudos
265

Hello,

yes i´ve got all authorizations for QE11, in the transaction all works fine. But i need to do this issue via programm and not by transaction, so still not working...