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

One program for two transaction with two authorization objects

Former Member
0 Likes
747

Hello,

I have a program which is being tied to two different transactions. In the program, am controlling a small piece of logic in a different way for one of the transactions(new transaction) and rest remains the same for both the transactions. The program is already using a auth object in the program attributes and in the auth check logic. Now, I would like my new tcode to be executed by a different group of users. How ever, there is a possibility that the existing group already in use will be included in this new group. Basically, I would like to know if there is any concept of sub authorization group set up under one main auth group. If so, I can control to check the sub group if tcode A and check main group if tcode B.

If there is no such option available, is there a way for me to control both transactions in the same program but should be working for two different group of users.

Thanks,

Kiran

4 REPLIES 4
Read only

Former Member
0 Likes
623

Hi,

Do you want the program to behave differently for different tcodes or for different users?

Regards,

Aravind

Read only

0 Likes
623

Hi Aravind,

As mentioned, the input, output and 98% of the logic is same for both transactions. There is one extra bit of validation happening in the other transaction. So, I thought I can use the existing program and plug the new validation by checking if tcode is my new tcode.

Hope this helps.

Thanks,

Kiran    

Read only

0 Likes
623

Hi

If you are using custom authorization object then add a field name called as 'Tcode' in your authorization object and you can check the authorization value of the respective transactions in your program. the same can be assigned in the roles of the users.

Br,

Vijay V

Read only

0 Likes
623

Hi Kiran,

If you are using tcode validation just check sy-tcode =<Tcode> in your code. You can also add roles based on the Tcodes.

Regards,

Aravind