2015 Feb 18 10:48 AM
Hi,
My requirement is as follows,
I need to allow only one instance of program to run for one user.
For this I need a table or function module from which I can get the list of programs run by a userid.
Thanks and regards,
Pavan.
2015 Feb 18 11:12 AM
Hi Pavan,
There are two points you are looking for.
Pavan Bandaru wrote:
I need to allow only one instance of program to run for one user.
For this I need a table or function module from which I can get the list of programs run by a userid.
Thanks and regards,
Pavan.
If you going to block particular t-code user wise means, you can do it by set and reset the value of CINFO field in TSTC Table itself.
For all the T-codes, I don't have an idea.
Regards
Rajkumar Narasimman
Hi,
My requirement is as follows,
I need to allow only one instance of program to run for one user.
For this I need a table or function module from which I can get the list of programs run by a userid.
Thanks and regards,
Pavan.
2015 Feb 18 10:59 AM
STAD tcode will give you statistical records of SAP Workload.
You may activate SQL trace before running STAD & then check the tables which are fetched by STAD in SQL trace.
2015 Feb 18 11:06 AM
Hi,
I need a table of FM, so that I can use in program.
Thanks and regards,
Pavan.
2015 Feb 18 11:12 AM
Hi Pavan,
There are two points you are looking for.
Pavan Bandaru wrote:
I need to allow only one instance of program to run for one user.
For this I need a table or function module from which I can get the list of programs run by a userid.
Thanks and regards,
Pavan.
If you going to block particular t-code user wise means, you can do it by set and reset the value of CINFO field in TSTC Table itself.
For all the T-codes, I don't have an idea.
Regards
Rajkumar Narasimman
2015 Feb 18 11:42 AM
hI,
My requirement is while running a zprogram i need to check that if the same user is already running the program, I should not allow the second run.
2015 Feb 18 11:58 AM
2015 Feb 18 1:54 PM
This method works, but it is better to create your own structure. If you then have issues, you can clearly see in SM12 to what the lock refers.
2015 Feb 18 11:49 AM
Hi,
An untested idea....
Create a lock object for table with a key like USR01 (to be on the safe side...) .
The table will have no data in it (it is only used for reference).
And then you can use this lock object on employee level using the lock parameters.
Regards.
2015 Feb 18 11:55 AM
Create a STRUCTURE with three fields - mandt, user and program. Create a lock object on that structure. Use ENQUEUE and DEQUEUE to place and remove locks.
2015 Feb 18 11:58 AM
2015 Feb 18 11:58 AM
2015 Feb 18 12:19 PM
Hi Pavan,
You can check with the below FM.
TH_WPINFO
Thanks & Regards
Richa
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |