SAP Function BAPI_INSPOPER_RECORDRESULTS - Confirm Inspection Results

Parameter Reference Type Length Default Optional Text
HANDHELD_APPLICATION BAPI2045L5-HANDHELD_APPLICATION C 6 SPACE X QM Handheld: Application
INSPLOT BAPI2045L2-INSPLOT N 12 Inspection Lot Number
INSPOPER BAPI2045L2-INSPOPER C 4 Inspection Operation Number
INSPPOINTDATA BAPI2045L4 u 421 X Inspection Point Data

Parameter Reference Type Length Text
RETURN BAPIRET2 u 548 Return Value

Parameter Reference Length Optional Text
CHAR_RESULTS BAPI2045D2 328 X Inspection Result - Characteristic Level
RETURNTABLE BAPIRET2 548 X Error Messages
SAMPLE_RESULTS BAPI2045D3 336 X Inspection Result: Sample Level
SINGLE_RESULTS BAPI2045D4 268 X Insp. result-single value level

Functionality
You can use this method to confirm the result of a quality inspectionfor an inspection operation or inspection point. The followingfunctions are supported:
Creating an inspection point
Closing an inspection point
Changing inspection point data
Recording inspection results at characteristic level (summarized)
Recording inspection results at sample level (summarized)
Recording inspection results at single value level
You define within an inspection operation whether you work with orwithout inspection points. In accordance with this specification, theparameter INSPPOINTDATA is required or optional.

Key fields
As an instance method, the instance key fields INSPLOT and INSPOPER arealready entered when you call up this method. Both these fields arecontained in all used data structures. However, these are ignored atconfirmation. All results for the current instance are automaticallyassigned.
The same applies to inspection point processing. All results areassigned to the specified inspection point independent ofSAMPLERESULTS-INSPSAMPLE and SINGLERESULTS-INSPSAMPLE.

Sequence for the confirmations
This method can be called up several times for an operation instance.If you switch to another operation instance, the confirmation isconsidered complete for the previous instance, and no moreconfirmations can be made for this instance before a COMMIT WORK(BapiService.TransactionCommit).
If an external program wants to make confirmations for severalinspection lots and operations, we recommend that these confirmationsare sorted according to the inspection lot and operation.

Procedure if there are errors
If errors occur during confirmation, these are entered in the tableRETURNTABLE and the parameters RETURN. If the table RETURNTABLEcontains several entries, message E026(Q5) 'Errors occured duringconfirmation' is entered in the RETURN parameter.
In addition to the entries in RETURNTABLE, an application lot isupdated with the defective data records. RETURN-LOG_NO contains thenumber of the application log.

Notes
To access this method, all authorizations are required that arenecessary for executing transaction QE11.

Description
INCLUDE BAPI_TABLE

Error messages that cancel the function
Type ID Number Message
E Q5 002 You do not have the authorization to executetransaction &
E Q5 003 Inspection lot & could not be read
E Q5 006 Operation & for inspection lot & could notbe read
E Q5 019 Operation & for inspection lot & is not unique
E Q5 025 Operation & for inspection lot & is nolonger allowed

Error messages from subordinate method calls
In such cases, the defect message E026(Q5) is issued. For more details,see the table RETURNTABLE.
Type ID Number Message
E Q5 026 Errors occured during confirmation

Description
During results recording with a handheld device, the handheldapplication is transferred in this parameter. In this case, furtherinspections are made and the status is updated in the handheld cockpit.

Description
Inspection lot number

Description
Number of the inspection operation

Description
This parameter contains data for the inspection point.

Description
This table contains the characteristic results.

Description
INCLUDE BAPI_TABLE
Type ID Number Message
E Q5 002 You do not have the authorization to performtransaction &
E Q5 003 Inspection lot & could not be read
E Q5 006 Operation & for inspection lot & could not beread
E Q5 019 Operation & for inspection lot & is not unique
E Q5 025 Operation & for inspection lot & is no longerallowed

Description
This table contains the sample results.

Description
This table contains the single results.