# BAPI_INSPOPER_RECORDRESULTS — Record Inspection Results

> Records inspection results for one operation of an inspection lot at characteristic, sample or single-value level, like QE01. It is used by LIMS, measuring devices and handheld interfaces that send lab results to SAP. Read the characteristics first with BAPI_INSPOPER_GETCHAR, check RETURN and RETURNTABLE, then call BAPI_TRANSACTION_COMMIT.

- Modules: QM
- Type: BAPI
- Function group: 2045
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-inspoper-recordresults/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| INSPLOT | BAPI2045L2-INSPLOT | Inspection lot number | Yes |
| INSPOPER | BAPI2045L2-INSPOPER | Inspection operation number | Yes |
| INSPPOINTDATA | BAPI2045L4 | Inspection point data | - |
| HANDHELD_APPLICATION | BAPI2045L5-HANDHELD_APPLICATION | Called from handheld application | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRET2 | Return messages |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| CHAR_RESULTS | BAPI2045D2 | Characteristic results | - |
| SAMPLE_RESULTS | BAPI2045D3 | Sample results | - |
| SINGLE_RESULTS | BAPI2045D4 | Single results | - |
| RETURNTABLE | BAPIRET2 | Return message table | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'
  EXPORTING
    insplot = lv_insplot
    inspoper = lv_inspoper
  IMPORTING
    return = lv_return
  TABLES
    char_results = lt_char_results
    sample_results = lt_sample_results
    single_results = lt_single_results
    returntable = lt_returntable.
```

## Related tables

QAMR, QAPP, QASE, QASR

