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

Regarding running program details

Former Member
0 Likes
1,554

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.

1 ACCEPTED SOLUTION
Read only

rajkumarnarasimman
Active Contributor
0 Likes
1,524

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

11 REPLIES 11
Read only

SharathYaralkattimath
Contributor
0 Likes
1,524

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.

Read only

0 Likes
1,524

Hi,

I need a table of FM, so that I can use in program.

Thanks and regards,

Pavan.

Read only

rajkumarnarasimman
Active Contributor
0 Likes
1,525

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

Read only

0 Likes
1,524

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.

Read only

0 Likes
1,524

Hi Pavan,

That might be useful for you.

Regards,

Amol

Read only

0 Likes
1,524

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.

Read only

rosenberg_eitan
Active Contributor
0 Likes
1,524

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.

Read only

matt
Active Contributor
0 Likes
1,524

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.

Read only

akshatrander1990
Explorer
0 Likes
1,524

This message was moderated.

Read only

former_member205488
Active Participant
0 Likes
1,524

This message was moderated.

Read only

Former Member
0 Likes
1,524

Hi Pavan,

You can check with the below FM.

TH_WPINFO

Thanks & Regards

Richa