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

Authorization object for customized tcode

Former Member
0 Likes
2,865

Hi all,

I have customized table for data maintenance to be allowed for access only for user controlled by sales area level using autho object V_VBAK_VKO. We wont give SM30 to the user, so I have created new tcode for the customized table.

My basis advises me to create customised program to call the customized table and include the above autho object in the program.

Is these the way to do authorization for customized table?

thanks alots

Sania

3 REPLIES 3
Read only

Former Member
0 Likes
959

Normally, the security never provides the access to SM30 and SM31 transactions. There are couple of ways.

(1) You can create a parameter transactions ( based on SM30). The user will still need the authorization of S_TABU_DISP object and will not have SM30 TCODE in his/her role. Instead he will have the new tcode in the role.

(2) You can use the function module VIEW_MAINTENANCE_CALL ( I am not logged on, FM name may be off). It gives the same functionality as SM30.

In the table maintenance generator you can use events ( SE54). One of the events is for authority check. You can put code over there to perform AUTHORITY-CHECK on V_VBAK_VKO.

I hope it helps.

Please award point, if it really helps.

Read only

Former Member
0 Likes
959

U can do it. Goto SE11 and enter the table name. Now, from menu choose Utilities-->table maintenance generator..Here specify the authorization group and activate the same.

Now, U can assign users to this specified authorization group. so that onlt those users can access the table for maintenance.

Hope this works for u.

Pl. award appropriate points.

Read only

Former Member
0 Likes
959

Hi alia,

1. How did u create the new tcode ?

2. One way is to create new tcode thru se93;

the tcode has to be of type :

TRANSACTION WITH PARAMETERS:

(5TH Radio Button)

3. This Tcode will use SM30,

and it will directly call the

maintenace dialog of your table.

4. After doing this,

a) Enter SM30 in field Transaction

b) Tick the Skip Initial screen.

c) Press ENTER.

d) SCROLL DOWN THE SCREEN. (there u will see a table control )

e) Enter the following values

VIEWNAME MYVIEWNAME

UPDATE x

f) save and execute the tcode.

5. For Authorisation object,

make sure to assign the tcode to that role only

using the authorisatin object.

(some care needs tobe taken here)

I hope it helps.

Regards,

Amit M.