2009 Apr 28 4:32 PM
hi guys,
how do i avoid locking transactions? upon logging out, transaction is automatically locked under my name... hence preventing others to access the transaction...
how do I avoid locking transaction in my username? thanks!
Rgds,
Mark
2009 Apr 28 4:38 PM
go to sm01 transaction and unlock the transaction.
or
* Getting the Lock Status of User
CALL FUNCTION 'SUSR_USER_LOCKSTATE_GET'
EXPORTING
USER_NAME = W_USR02_BNAME
IMPORTING
LOCKSTATE = W_LOCKSTATE.
IF SY-SUBRC <> 0.
ENDIF.
* Unlock the user
IF W_LOCKSTATE-LOCAL_LOCK = 'L'.
CALL FUNCTION 'BAPI_USER_UNLOCK'
EXPORTING
USERNAME = W_USERNAME "Pass user name to unlock
TABLES
RETURN = T_RETURN.
ENDIF.
Regards,
Prabhudas
hi guys,
how do i avoid locking transactions? upon logging out, transaction is automatically locked under my name... hence preventing others to access the transaction...
how do I avoid locking transaction in my username? thanks!
Rgds,
Mark
2009 Apr 28 4:38 PM
go to sm01 transaction and unlock the transaction.
or
* Getting the Lock Status of User
CALL FUNCTION 'SUSR_USER_LOCKSTATE_GET'
EXPORTING
USER_NAME = W_USR02_BNAME
IMPORTING
LOCKSTATE = W_LOCKSTATE.
IF SY-SUBRC <> 0.
ENDIF.
* Unlock the user
IF W_LOCKSTATE-LOCAL_LOCK = 'L'.
CALL FUNCTION 'BAPI_USER_UNLOCK'
EXPORTING
USERNAME = W_USERNAME "Pass user name to unlock
TABLES
RETURN = T_RETURN.
ENDIF.
Regards,
Prabhudas
2009 Apr 28 4:49 PM
Total Posts: 412
Total Questions: 244 (92 unresolved)
Please clean up your old posts.
Rob
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |