‎2012 Mar 13 2:34 PM
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
‎2012 Mar 13 2:59 PM
Hi,
Do you want the program to behave differently for different tcodes or for different users?
Regards,
Aravind
‎2012 Mar 13 8:28 PM
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
‎2012 Mar 13 9:38 PM
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
‎2012 Mar 14 7:22 AM
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