2012 Mar 30 9:07 AM
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:
INSPLOT | INSPOPER | INSPCHAR | CLOSED | EVALUATED | CHAR_ATTR | CHAR_INVAL | EVALUATION | ERR_CLASS | VALID_VALS | NONCONF | DEFECTS | VALS_ABOVE | VALS_BELOW | MEAN_VALUE | VARIANCE | MAXIMUM | MINIMUM | START_DATE | START_TIME | END_DATE | END_TIME | INSPECTOR | RES_ORG | REMARK | CODE1 | CODE_GRP1 | CODE2 | CODE_GRP2 | CODE3 | CODE_GRP3 | CODE4 | CODE_GRP4 | CODE5 | CODE_GRP5 | ORIGINAL_INPUT | INPPROC_READY | DIFF_DEC_PLACES | |
30000217566 | 8010 | 10 | X | X | A | 16 | 20120330 | 100450 | 20120330 | 100450 | PFAHLBE | 0 | ||||||||||||||||||||||||||
30000217566 | 8010 | 20 | X | X | A | 23,5 | 20120330 | 100450 | 20120330 | 100450 | PFAHLBE | 0 | ||||||||||||||||||||||||||
30000217566 | 8010 | 30 | X | X | A | 2,9 | 20120330 | 100450 | 20120330 | 100450 | PFAHLBE | 0 | ||||||||||||||||||||||||||
30000217566 | 8010 | 40 | X | X | A | 6,7 | 20120330 | 100450 | 20120330 | 100450 | PFAHLBE | 0 |
There are no errors in it_return, but the values are missing, also there is no evaluation.
Whats my mistake?
2012 Mar 30 9:33 AM
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
2012 Mar 30 11:11 AM
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...