# QPL1_INSPECTION_LOT_CREATE — Create Inspection Lot

> Internal QM function that creates an inspection lot from the lot data in QALS_IMP and the control data in RMQED_IMP. Custom programs use it to create manual or special lots when no standard trigger exists, but it is not a released BAPI. Check SUBRC and E_PRUEFLOS after the call and commit the work yourself.

- Modules: QM
- Type: Function module
- Function group: QPL1
- Remote-enabled (RFC): No
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/qpl1-inspection-lot-create/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| QALS_IMP | QALS | Inspection lot data (QALS) | Yes |
| RMQED_IMP | RMQED | Additional control data (RMQED) | Yes |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| E_PRUEFLOS | QALS-PRUEFLOS | Inspection lot number created |
| E_QALS | QALS | Inspection lot data (result) |
| E_KZSKIPLOT | QALS-INSMK | Stock type for inspection |
| E_SKIP_TO_STOCK | QALS-KZSKIPLOT | Skip lot indicator |
| SUBRC | SY-SUBRC | Return code |

## Call template (ABAP)

```abap
CALL FUNCTION 'QPL1_INSPECTION_LOT_CREATE'
  EXPORTING
    qals_imp = lv_qals_imp
    rmqed_imp = lv_rmqed_imp
  IMPORTING
    e_prueflos = lv_e_prueflos
    e_qals = lv_e_qals
    e_kzskiplot = lv_e_kzskiplot
    e_skip_to_stock = lv_e_skip_to_stock
    subrc = lv_subrc.
```

## Related tables

QALS

