# BAPI_INSPOPER_GETCHAR — Select Inspection Characteristics

> Returns the inspection characteristics of an inspection lot operation with their key data. It is the usual first step before recording results through an interface. Use the filter parameters to limit the list to open characteristics and check both RETURN and RETURN2.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| INSPLOT | BAPI2045L3-INSPLOT | Inspection lot number | Yes |
| INSPOPER | BAPI2045L3-INSPOPER | Inspection operation number | Yes |
| CHAR_FILTER_NO | BAPI2045S1-FILTER | Characteristic filter | - |
| CHAR_FILTER_TCODE | BAPI2045S1-FILTER_TCODE | Characteristic filter by transaction | - |
| READ_CHARS_WITHOUT_RECORDING | BAPI2045S1-IND_X_OR_BLANK | Include characteristics without result recording | - |
| READ_CHARS_WITH_CLASSES | BAPI2045S1-IND_X_OR_BLANK | Include characteristics with classes | - |
| RES_ORG | BAPI2045D3-RES_ORG | Results origin | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN1 | Return message (BAPIRETURN1) |
| RETURN2 | BAPIRET2 | Return messages (BAPIRET2) |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| INSPCHAR_LIST | BAPI2045L3 | Inspection characteristics found | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_INSPOPER_GETCHAR'
  EXPORTING
    insplot = lv_insplot
    inspoper = lv_inspoper
  IMPORTING
    return = lv_return
    return2 = lv_return2
  TABLES
    inspchar_list = lt_inspchar_list.
```

## Related tables

QAMV

