03-10-2015 4:32 PM
Hi experts,
I created an object lock and I want to show a message which contains the username that currently locking the object.
I proceeded this way :
IF sy-subrc = 1.
MESSAGE E000(vaca) with 'The transaction is currently locked by the user : ' SY-UNAME.
ENDIF.
But unfortunately it returns the username of the current user on the system:
e.g : my username is USER111 and I am locking the object.
the USER222 try to access the transaction he gets this : The transaction is currently locked by the user : USER222 !
which is his username not the locking username.
The correct message will contains : The transaction is currently locked by the user : USER111
Thanks.
03-10-2015 4:47 PM
I think all you have to do is comment out the code where you produce the message. Let the FM take care of it.
Rob
03-10-2015 4:47 PM
I think all you have to do is comment out the code where you produce the message. Let the FM take care of it.
Rob
03-10-2015 4:56 PM
03-10-2015 4:53 PM
03-10-2015 4:56 PM