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

Security and Code !!

Former Member
0 Likes
824

Hi Experts ,

I have a custom progrmme , where in the initial screen user give a particular Plant and sales org combi . If the  combination for the group of users (maintained by authorization obj )for that particular plant and sales Org is permissible he/she can go to next screen . In the next screen he can see a list of T-Codes (standard sap) with radio buttons and can execute the same .

Now my requirement is .. I created a new Plant and sales Org and have a grp of authorized users . Now I want when a user enter that particular combination of New Plant and sales Org he can see some "extra" Tcodes in the 2nd Tcodes.These tcodes wont be visible by other grp of user .How can I achieve this via ABAP code.

Thanks

MM_SD

7 REPLIES 7
Read only

deependra_shekhawat3
Contributor
0 Likes
789

Hi MM,

One question, Before creating new plant/sales org combination how did you get Tcodes on next screen ?

Have you defined auth. group to tcode also ?

Thanks

Deependra

Read only

0 Likes
789

Hi Deependra ,

Its via a module Pool programme. If Ist screen satisfy it then only goes to next one which will show the Tcodes .

Thanks

MM_sD

Read only

0 Likes
789

Please use concept of authorization object for the same. The User who have this authorization will be able to view next screen

Nabehet

Read only

0 Likes
789

Hi Nabheet ,

Thanks for your suggestion . The 2nd screen (That contain List Of Tcodes) is visible by all users , only the users with that new Sales Org and Plants will view extra Tcodes in the 2nd screen . Are you saying this can be managed by using authorisation Objects?

Thanks

MM_sD

Read only

0 Likes
789

Hello MM_SD,

Before that, can you please explain how exactly you are getting list of Tcodes in second screen? Which table you are hitting to get that list.

In ideal scenario, it should be something like, based on Authorization group you are getting list of tcodes to be displayed, so for new Plant-PO combination also, it should be via Authorization group.

In other words, there should be a different authorization group assigned to extra tcodes(which is not assigned to other tcodes) and new combination of Plant / PO should have this Authorization group.

Warm regards,.

Shyam

Read only

0 Likes
789

Yes i believe so. In PBO i put an auhtoirzation check and if it passes i display the extra value.

Nabheet

Read only

0 Likes
789

Ok Thanks all whai I understand need to create a new Authorisation code for new combination of Sales Org and plant and list of Tcodes .