Skip to Content

Error Msg 'ME' '083' BAPI_SCHEDULE_MAINTAIN in background mode

Hello ,

While updating the Scheduling Line of a Scheduling Agreement Line item via BAPI_SCHEDULE_MAINTAIN in BACKGROUND mode we get an error message in Job spool as Msg Class ME Msg no 083 Message Enter Plant

and strangely it is processed in Foreground mode without any errors..

This is working in Quality system in Background mode as well as foreground mode

but fails in Production in background mode.


Kindly help:

Code Snippet:

CALL FUNCTION 'BAPI_SCHEDULE_MAINTAIN'
EXPORTING
purchasingdocument = gs_eket-ebeln
TABLES
schedule = gt_schedule
schedulex = gt_schedulex
return = gt_return.

LOOP AT gt_return INTO gs_return.

IF gs_return-type = gc_e OR gs_return-type = gc_a.

gs_save_zdt_plp_sch_qty-succ_flg = gc_e.
gv_err_cnt = gv_err_cnt + 1.
EXIT.

ELSEIF gs_return-type = gc_s.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = abap_true
IMPORTING
return = gs_return2.

CALL FUNCTION 'DEQUEUE_EMEKKOE'
EXPORTING
ebeln = gs_eket-ebeln.

ENDIF.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 14 at 04:30 PM

    Force a dump, send a message type X, this should then probably show how your variables are filled while it ran in background

    Add comment
    10|10000 characters needed characters exceeded