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

how to know who is modifying a document

Former Member
0 Likes
2,196

Hello everybody.

I would like to know how can i know who is modifying a document, using a transaction (whatever), in the case that it is happening; by using a function module or something like that.

thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,847

Hi,

You can use the Function module ENQUEUE_READ to get the list of entries that are locked..

In the internal table ENQ that is returned check if there is an entry for the document...

Ex..

FOr purchasing document check for EKKO in the column GNAME and CLIENT + purchase order number in the column GARG...

IF there is a entry...which means some body is processing that purchase order..

In the field GUNAME..You will get the user name that is processing the document..

Thanks,

Naren

Hello everybody.

I would like to know how can i know who is modifying a document, using a transaction (whatever), in the case that it is happening; by using a function module or something like that.

thank you.

6 REPLIES 6
Read only

Former Member
0 Likes
1,847

Hi

Use the transaction SUIM and try to know

other wise check in the tables CDHDR and CDPOS

reward if useful

regards

Anji

Read only

0 Likes
1,847

I think i have not explain my problem in a proper way:

In a user exit, I have to check if the document that I'm working on it i'ts open by other user (right now in runtime) with other instance of the program.

In other words: I want something that I'll give a transaction and a document number and it give to me who is working with the transaction over the document that I have passed.

You know what I meen?

Thank you very much and excuse my poor english skill.

Read only

Former Member
0 Likes
1,847

Hi Marcos,

You can know that who is modifying a particuler document using Transaction SM12. But here you don't find from which transaction is is doing that.

Regards,

Satya.

Read only

Former Member
0 Likes
1,847

Hi,

You can check who all modified a document. after going in change mode through a transaction, there will be an option in menu, Environment changes, this will give you list of user who all modified along with changed fields.

thanks,

sksingh

Read only

Former Member
0 Likes
1,848

Hi,

You can use the Function module ENQUEUE_READ to get the list of entries that are locked..

In the internal table ENQ that is returned check if there is an entry for the document...

Ex..

FOr purchasing document check for EKKO in the column GNAME and CLIENT + purchase order number in the column GARG...

IF there is a entry...which means some body is processing that purchase order..

In the field GUNAME..You will get the user name that is processing the document..

Thanks,

Naren

Read only

0 Likes
1,847

Thank you very much Narendran Muthukumaran,

this works!!! and this is what i was looking for.

Thaks for everyboby too.