Lock document problem

Hi, I have a problem with lock documents. My DB has “Allow document locking” enable, because I need it. When I do double click from view it works fine, but when I try to open with @Command([EditDocument]) command or it LS equivalent, send me a message error “Document lock for [my self]”. Some body can help me please?.

Thanks in advance.

Subject: Lock document problem

With @Command([OpenDocument]) works fine, but with LS equivalent (EditDocument method) doesn´t work, but it´s Ok with first option. Sorry.

Regards.