# BAPI_INSPOPER_GETDETAIL — Read Inspection Operation Details

> Reads detail data of an inspection operation: characteristic requirements, recorded results, samples, single values and inspection points. It is used by result recording front ends and reports that compare specifications with results. Set only the READ_ flags you need to keep the call fast.

- 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-getdetail/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| INSPLOT | BAPI2045L2-INSPLOT | Inspection lot number | Yes |
| INSPOPER | BAPI2045L2-INSPOPER | Inspection operation number | Yes |
| READ_INSPPOINTS | BAPI2045S1-IND_X_OR_BLANK | Read inspection points | - |
| READ_CHAR_REQUIREMENTS | BAPI2045S1-IND_X_OR_BLANK | Read characteristic requirements | - |
| READ_CHAR_RESULTS | BAPI2045S1-IND_X_OR_BLANK | Read characteristic results | - |
| READ_SAMPLE_RESULTS | BAPI2045S1-IND_X_OR_BLANK | Read sample results | - |
| READ_SINGLE_RESULTS | BAPI2045S1-IND_X_OR_BLANK | Read single results | - |
| INSPPOINT_FROM | BAPI2045L4-INSPPOINT | Inspection point from | - |
| MAX_INSPPOINTS | BAPI2045S1-MAXROWS | Maximum number of inspection points | - |
| CHAR_FILTER_NO | BAPI2045S1-FILTER | Characteristic filter | - |
| CHAR_FILTER_TCODE | BAPI2045S1-FILTER_TCODE | Characteristic filter by transaction | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| OPERATION | BAPI2045L2 | Inspection operation data |
| INSPPOINT_REQUIREMENTS | BAPI2045D5 | Inspection point requirements |
| RETURN | BAPIRET2 | Return messages |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| INSPPOINTS | BAPI2045L4 | Inspection points | - |
| CHAR_REQUIREMENTS | BAPI2045D1 | Characteristic requirements | - |
| CHAR_RESULTS | BAPI2045D2 | Characteristic results | - |
| SAMPLE_RESULTS | BAPI2045D3 | Sample results | - |
| SINGLE_RESULTS | BAPI2045D4 | Single results | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_INSPOPER_GETDETAIL'
  EXPORTING
    insplot = lv_insplot
    inspoper = lv_inspoper
  IMPORTING
    operation = lv_operation
    insppoint_requirements = lv_insppoint_requirements
    return = lv_return
  TABLES
    insppoints = lt_insppoints
    char_requirements = lt_char_requirements
    char_results = lt_char_results
    sample_results = lt_sample_results
    single_results = lt_single_results.
```

## Related tables

QAMR, QAMV, QAPP, QASR

