Enqueue for work item <n> deleted by called application
We upgraded from 4.6C till ECC6.0 and from then we receive occasionaly messages in SM21: Enqueue for work item 000001198539 deleted by called application.
This results in problems when 2 dialog task are executes after each other. Somethimes the second taks is not executed. I find in the log the following errors:
- Temporary error in result processing of work item 000001199739
- Error when loading component: Work item 000001198388 locked
- Work item 000001198388 locked by user WF-BATCH (enqueue error)
This is the head of the WF that's locked..
We implemented all relevant OSS notes regarding the message, but still we receive those messages (notes 1040693 - 1050793 etc) We are on support package SAPKB70012.
I have checked the code in our custom WF and in some background task we use a DEQUEUE_ALL. Can this be the problem? The WF worked perfectly in 4.6C.
CALL FUNCTION 'ENQUEUE_EFBKPF' EXPORTING * MODE_BKPF = 'E' * MANDT = SY-MANDT bukrs = i_bukrs belnr = i_belnr gjahr = i_gjahr * X_BUKRS = ' ' * X_BELNR = ' ' * X_GJAHR = ' ' * _SCOPE = '2' _wait = 'X' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3 . IF sy-subrc <> 0. RAISE locked. ENDIF. UPDATE vbsegk SET zlspr = i_zlspr WHERE ausbk = i_bukrs AND belnr = i_belnr AND gjahr = i_gjahr. * and ( zlspr = 'A' or zlspr = 'Y' ) . COMMIT WORK AND WAIT. CALL FUNCTION 'DEQUEUE_ALL' EXPORTING _synchron = 'X'.
Any help appriciated