Hi Experts,
I'm using QIRF_GET_DEFECT_ITEMS2 bapi to record defects. But when the bapi is executing it give below errors.
Inspection lot operation not found You must enter an operation for this record type |
Below is the code.
LOOP AT it_defects_display into wa_defects_display.
clear: wa_defects,wa_qmife,wa_location.
read table it_location into wa_location with key kurztextcd = wa_defects_display-kurztextcd.
if wa_inspection_points is not initial.
wa_qmife-satzart = 'Q95'.
else.
wa_qmife-satzart = 'Q91'.
endif.
wa_qmife-prueflos = wa_yarn-prueflos.
wa_qmife-vornr = zst_ny_qm_operations-inspoper.
read table it_defects into wa_defects with key code = wa_defects_display-code.
wa_qmife-fegrp = wa_defects-codegruppe.
wa_qmife-fecod = wa_defects_display-code.
wa_qmife-fekat = wa_defects-katalogart.
wa_qmife-anzfehler = wa_defects_display-noofdefect.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = v_posnr
IMPORTING
OUTPUT = wa_qmife-posnr.
wa_qmife-otkat = wa_location-katalogart.
wa_qmife-otgrp = wa_location-codegruppe.
wa_qmife-oteil = wa_location-code.
APPEND wa_qmife to it_qmife.
v_posnr = v_posnr + 1.
ENDLOOP.
Is anything i'm doing wrong? Pls. help