2007 Apr 23 5:06 PM
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.
2007 Apr 23 5:27 PM
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.
2007 Apr 23 5:08 PM
Hi
Use the transaction SUIM and try to know
other wise check in the tables CDHDR and CDPOS
reward if useful
regards
Anji
2007 Apr 23 5:22 PM
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.
2007 Apr 23 5:14 PM
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.
2007 Apr 23 5:15 PM
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
2007 Apr 23 5:27 PM
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
2007 Apr 23 5:35 PM
Thank you very much Narendran Muthukumaran,
this works!!! and this is what i was looking for.
Thaks for everyboby too.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |