on 05-14-2018 2:19 PM
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.
Force a dump, send a message type X, this should then probably show how your variables are filled while it ran in background
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
8 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.