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

Block transaction

carlos_valentini3
Participant
0 Likes
712

Good day to all of the Group.

I have the following situation, a transaction that is executed by Z and ECC via JOB.

Now I need to do the following treatment, when running via JOB

no user can perform the same by ECC.

And one more detail is carried out by the center, if I'm running through the center JOB

1000, can not run at the same center.

But the center 1100 can be performed smoothly.

Is how to do this?

3 REPLIES 3
Read only

ronaldo_aparecido
Contributor
0 Likes
602

In first problem your basis can configure in SM59 in logon group.Its not Abap.

No user can perform the same Program?

Try verify the sy-uname.

I hope Helped You.

Read only

ThomasZloch
Active Contributor
0 Likes
602

Without fully understanding, it sounds like the ABAP lock concept is the answer. Please search for available information on lock objects and how to use them (it's just another DDIC object type).

Thomas

Read only

carlos_valentini3
Participant
0 Likes
602

We have two situations:

1) The lock with "Enqueue" no solution because I can not lock the table, but the execution of the program if another user of the same center, is using the transaction.

2) It is not block per user (profile), the user can be allowed, but if another user in the same center are running the same program will be blocked.