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 issue

Former Member
0 Likes
750

Dear Abapers,

we have created 4 module pool program with 4 different t-code.

we have clubbed this 4 t-code in one new window

|_________________

| tcode1

| tcode2

| tcode3

| tcode4

|_________________

we need to call a tcode based on authorization

who hav a authorization of company code, plant, project, purchasing group and profit center those only should get the

authorization to call the above 4 tcodes.

when user press the pushbutton on the screen we have to check the authorization

if it satisfy the above criteria then only the corresponding screen should be called.

Regards,

Praphull

5 REPLIES 5
Read only

Former Member
0 Likes
620

whats the question here???

Read only

0 Likes
620

How to do above things?

Read only

0 Likes
620

Debugg the program , in command file put /h then click on tcode1 then debugger will start ,then u can find the authorizations where exact ally check .

Example it will be like this

select * ztable where username = sy-unmae.

if sy-subrc ne 0.

message s000(zz) with 'you are not authorized to access this code'.

else.

call transaction ztcode1.

end if.

Hope this will help you ,

Regards

Siva

Read only

Former Member
0 Likes
620

use FM AUTHORITY_CHECK

Read only

Former Member
0 Likes
620

Closed