on 10-24-2007 12:23 PM
Hi All
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
Kristof
I have send an OSS tot SAP and there development team is looking to this problem
Kristof
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The entries we have solved by removing the DEQUEUE_ALL function in a method.
Still we receive somethimes errors in the workflow log
Temporary error in result processing of work item <n>
Message no. SWP030
Error when loading component: Work item <n> locked
Message no. SWP034
Work item <n> locked by user WF-BATCH (enqueue error)
Message no. WL605
Kristof,
We are occasionally getting a similar enqueue error message sent to the workflow admin account. The workitems seem to have processed normally...the error message is generated for some reason. We get a normal userid instead of WF-BATCH but everything else is the same.
Have you found any reason/solution for this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arghadip
Thanks for your reply
I have read the Thread but this doesn't help me.
The 2nd task is created and moved to a new folder in the SBWP and there the user can execute the task. But this should be a advance in dialog task. The actual agent is found and linked to the second task.
When this occurs I see messages in SM21.
Kristof
Take away the COMMIT statement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If I recall correct it is a no-no to call COMMIT WORK inside methods. Sorry, I can't give you a reference for that off the top of my head.
Unless my memory is playing tricks on me I most likely recall it either from the ASUG mailing list for workflow or from the workflower's bible (Practical Workflow for SAP).
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.