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

message when table is locked...

Former Member
0 Likes
653

Hi,

I have a requirement wherein when a table is locked, i am not able to allow multiple users to access the same record for modification. This works fine. But I want to display the appropriate info like 'user XXX s currently editing this record", similar to how we get messages when we try to edit a sales order etc.

How to retrieve the info that which user is currently editing that record ?

thks

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
608

May be you can call this fm


      call function 'ENQUEUE_READ'
        exporting
          gclient = sy-mandt
          gname   = w_gname
          garg    = w_garg
          guname  = w_guname
        tables
          enq     = i_seqg3temp.

return table have all the info.

2 REPLIES 2
Read only

Former Member
0 Likes
608

Hi,

The enqueue function module returns the user name in the system field sy-msgv1.

Regards,

Darren

Read only

former_member194669
Active Contributor
0 Likes
609

May be you can call this fm


      call function 'ENQUEUE_READ'
        exporting
          gclient = sy-mandt
          gname   = w_gname
          garg    = w_garg
          guname  = w_guname
        tables
          enq     = i_seqg3temp.

return table have all the info.