Application Development 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: 

How to know who has locked the material master field ?

Former Member
0 Kudos

Hi,

I am trying to update a field in Material Master.

Now if some user has locked the field I want to send him a email automatically that unlock the material master.

Now my question can we know like who has locked the material master ?

Second question is how do I send an automatic email to him regarding this ?

Relevant points will be given surely.

Tushar.

6 REPLIES 6

Former Member
0 Kudos

hi tushar,

For your 2nd question,we can implement a workflow which automatically triggers an email when the field attributes are changed.

anand.

Former Member
0 Kudos

hi

execute FM ENQUE_READ

Read table ENQ Which returns all the object locked.

Read the table with field GNAME as 'MARA'.

you get complete history of the Lock record..

you will alsoget the the user who is locking it.

get the user name and can send a mail using a FM..

for you to try testing:

goto SE37 and enter ENQUE_READ FM

and execute...try locking MM02 transaction.

check the values.

Thanks

Balu

andreas_mann3
Active Contributor
0 Kudos

Hi,

1) mm03 - environment - display changes

2) read changes/locks with fm CHANGEDOCUMENT_READ

regards Andreas

0 Kudos

use the following FM to see who has locked it

ENQUEUE_E_PDTC_MARA

and then, may be instead of a mail, you can send a pop up to the user telling him to unlock it using FM

TH_POPUP

Regards

Raja

0 Kudos

Hello,

Check FM ENQUEUE_READ. this gives the list of all the objects locked for a user. If you do not give the user ID, then you get all the objects locked in the system.

Regards, Murugesh AS

0 Kudos

Can anybody give information about WAIT Concept in this 'ENQUEUE_E_PDTC_MARA' function moudle?