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

enqueue program

Former Member
0 Likes
1,358

hi all,

how to enqueue program , i want to allow only 1 user to run the program

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,045

Hi,

What you can do is create a custom table for users who can run this report and put this customization in IMG.

and in the program read the USER's list who can run this program and then check if SY-UNAME is in this list of USER's if exists then proceed with the program else exit from the program.

Alternatively you can actually assign a transaction to that and control this transaction through Authorization object.

Regards,

Sesh

6 REPLIES 6
Read only

Former Member
0 Likes
1,045

Hi...

Use the FM ENQUEUE_E_TABLE when you want to lock the table..

and use the FM 'DEQUEUE_E_TABLE' to unlock it

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,045

Hi

Using <b>Authorization Concept</b> you can achieve that.

Contact your basis guy for that.

Regards,

Sree

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,046

Hi,

What you can do is create a custom table for users who can run this report and put this customization in IMG.

and in the program read the USER's list who can run this program and then check if SY-UNAME is in this list of USER's if exists then proceed with the program else exit from the program.

Alternatively you can actually assign a transaction to that and control this transaction through Authorization object.

Regards,

Sesh

Read only

0 Likes
1,045

is there any function that can lock program or enqueue program ?

Read only

0 Likes
1,045

Fm to lock the table : ENQUEUE_E_TABLE

Message was edited by:

prasanna rao

Read only

0 Likes
1,045

IF you want only one user to run the program then calla bdc in the startgin of the program, and lock the program using transaction sm01, at the time of exit again call this transaction and unlock the program.

Like this only one user can user it at a time. I have never tried this approach but it should work.

Thanks,

Shweta