Hi All,
I find many SM58 entries logged against the program RSM13000 with message 'User is locked. Please notify the person responsible' .
For the FMs 'SWW_WI_CREATE_VIA_EVENT' and 'SWW_WI_CREATE_VIA_EVENT_IBF'
the Workflow_local_100 destination is maintianed.
Request you to advice what needs to be checked to stop such errors.
*similarly against the program RSWWDHEX with message 'R/3 logon failed' for function module 'SWW_WI_STATUS_SET_READY'.
Thanks in advance.
Request clarification before answering.
Hi,
I guess the user "WF-Batch" is locked. Check in SU01 and unlock.
Peter
--
Points always appreciated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
All the problems sound in relation with the user <i><b>WF-BATCH</b></i>, which system automatically creates as you do the workflow customization with the transaction <i><b>SWU3</b></i>.
So first of all verify the creation of this user by consulting the workflow administrator. Also, find the following weblog link written by me, which will talk more about the SWU3 settings -
/people/sapna.modi/blog/2007/02/19/workflows-for-dummies--introductionpart-i
Secondly, for lock issue, first try to delete manually the WF-BATCH lock entries from SM12 transaction and see whether the problem is resolved or not forever.
If it doesn't happen, then you might have to delete the WF-BATCH entry programmatically from SM12 for the given workflow key. Kindly find the following code for this -
*----------------------------------------------------------------------*
* Logic for Deletion of WF Lock for User 'WF-Batch' *
*----------------------------------------------------------------------*
CALL FUNCTION 'ENQUE_READ'
EXPORTING
GCLIENT = SY-MANDT
GNAME = ' '
GARG = ' '
GUNAME = 'WF-BATCH'
TABLES
ENQ = LT_LOCK_LIST.
* Key for the BOR object
LV_INSTID = ZBOR_KEY.
SELECT * FROM SWW_WI2OBJ
INTO TABLE LT_WF_LOCK_ID
WHERE INSTID = LV_INSTID.
SORT LT_WF_LOCK_ID BY CREA_TMP DESCENDING.
* Read the internal table for the Workflow Task
READ TABLE LT_WF_LOCK_ID
WITH KEY WI_RH_TASK = 'ZTASK_ID'
INTO LS_WF_LOCK_ID.
CONCATENATE SY-MANDT LS_WF_LOCK_ID-TOP_WI_ID INTO LV_LOCK_ARG.
READ TABLE LT_LOCK_LIST WITH KEY GARG = LV_LOCK_ARG INTO LS_LOCK_LIST.
IF SY-SUBRC = 0.
MOVE LS_LOCK_LIST TO LS_LOCK_DEL.
APPEND LS_LOCK_DEL TO LT_LOCK_DEL .
* Delete the log entry for WF-BATCH for the given workflow
CALL FUNCTION 'ENQUE_DELETE'
EXPORTING
CHECK_UPD_REQUESTS = 1
SUPPRESS_SYSLOG_ENTRY = ' '
TABLES
ENQ = LT_LOCK_DEL.
ENDIF.
*----------------------------------------------------------------------*
* End of Logic for Deletion of WF Lock for User 'WF-Batch'
*----------------------------------------------------------------------*Hope this helps you.
PS If the answer solves your query, plz close the thread by marking it Solved and rewarding each reply.
Regards<b></b><i></i>
Message was edited by:
Sapna Modi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi vijay:
Yes I think also is the user WF-BATCH also check the parameters, roles and profiles for this user.
It should be something like SAP ALL, ask your basis about this, make a test with SAP ALL and then modified how the basis prefer.
Also check the language, I have the a similar problem and it was all of this
Best Regards,
Jessica
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.