cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jay_Kamdar
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

JL23
Active Contributor

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