Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

order lock problem

Former Member
0 Likes
723

hi friends .

i m facing problem with locking order.

CALL FUNCTION 'ENQUEUE_ESORDER'

EXPORTING

mode_aufk = 'S'

aufnr = number

_wait = 'X'

EXCEPTIONS

foreign_lock = 1

system_failure = 2

OTHERS = 3 .

CALL FUNCTION 'DEQUEUE_ESORDER'

EXPORTING

aufnr = number.

COMMIT WORK.

i have to get message

Ordernumber 100001001 locked by user suresh.

How to get this?

Plz give necessary suggestions.

4 REPLIES 4
Read only

Former Member
0 Likes
609

Hello Vijay-

Just delete the lock entries for the corresponding user in SM12 .

Cheers,

~Srini....

Read only

0 Likes
609

i have to get message.

Order number 100001001 locked by user user_id.

after using enqueue_esorder if any person is using that order.

Read only

0 Likes
609

Hi,

That message automatically comes when u lock a sales order and somebody tries to change that sales order in VA02.

Where exactly do u want that message.

Thanks,

Anon

Read only

0 Likes
609

i want that message to be displayed in separate log file (internal table).