QM Function module Used the same way in S/4HANA

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.

Function group
QPL1
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
QALS_IMPQALSInspection lot data (QALS)Yes
RMQED_IMPRMQEDAdditional control data (RMQED)Yes

Exporting parameters

ParameterTypeDescription
E_PRUEFLOSQALS-PRUEFLOSInspection lot number created
E_QALSQALSInspection lot data (result)
E_KZSKIPLOTQALS-INSMKStock type for inspection
E_SKIP_TO_STOCKQALS-KZSKIPLOTSkip lot indicator
SUBRCSY-SUBRCReturn code

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

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

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report