# BAPI_INSPLOT_GETSTATUS — Read Inspection Lot Status

> Returns the current system and user statuses of an inspection lot with texts in the requested language. It is a lightweight check used before recording results or making a usage decision. LANGUAGE is mandatory in this interface.

- 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-insplot-getstatus/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPI2045D_IL0-INSPLOT | Inspection lot number | Yes |
| LANGUAGE | BAPI2045LA | Language for texts | Yes |

## Exporting parameters

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

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| SYSTEM_STATUS | BAPI2045SS | System statuses | Yes |
| USER_STATUS | BAPI2045US | User statuses | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_INSPLOT_GETSTATUS'
  EXPORTING
    number = lv_number
    language = lv_language
  IMPORTING
    return = lv_return
  TABLES
    system_status = lt_system_status
    user_status = lt_user_status.
```

## Related tables

JEST, QALS

