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

Accessing a restricted T-code through the 'Z' tcode

Former Member
0 Likes
1,774

Hi ,

I do not have authorization for a particular tcode 'FB09'. When I create a 'Z' tcode though SE93 and assign 'FB09' to it , I can make a workaround and access the transaction .

This works in Development Server .

But the same thing does not work in the Production Server .

What is the reason behind this ?

Thanks and regards ,

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
953

hi Prabhu,

I sometimes have the same problem and use the following small program:

REPORT z_test.

PARAMETERS : p_tcode TYPE tcode.

AT SELECTION-SCREEN.

SELECT COUNT( * ) FROM tstc

WHERE tcode EQ p_tcode.

IF sy-subrc NE 0.

MESSAGE e398(00) WITH 'Transaction does not exist!'.

ENDIF.

START-OF-SELECTION.

CALL TRANSACTION p_tcode.

what you have to know is that CALL TRANSACTION does not check the authority to the transaction code (while LEAVE TO TRANSACTION does). If it still fails (because of authority), it means that there are more authority checks (in the program, which you call through CALL TRANSACTION).

hope this helps

ec

6 REPLIES 6
Read only

Former Member
0 Likes
953

The roles what U have in development and Production will be

certainly different ..

Read only

0 Likes
953

The same authorizations are there in both servers .

Read only

0 Likes
953

Check for User Roles , Profiles and missing authorizations

for the user in both the servers ...

Read only

Former Member
0 Likes
953

First goto the SE93 and enster FB09 press dispaly to see the how they are defined.same way u have to create Z tcode with entries similar to the FB09. if authorization specified for only transaction code(FB09) then it will work.

some case they restrict at program levet in that case it is not possible to access.

Read only

JozsefSzikszai
Active Contributor
0 Likes
954

hi Prabhu,

I sometimes have the same problem and use the following small program:

REPORT z_test.

PARAMETERS : p_tcode TYPE tcode.

AT SELECTION-SCREEN.

SELECT COUNT( * ) FROM tstc

WHERE tcode EQ p_tcode.

IF sy-subrc NE 0.

MESSAGE e398(00) WITH 'Transaction does not exist!'.

ENDIF.

START-OF-SELECTION.

CALL TRANSACTION p_tcode.

what you have to know is that CALL TRANSACTION does not check the authority to the transaction code (while LEAVE TO TRANSACTION does). If it still fails (because of authority), it means that there are more authority checks (in the program, which you call through CALL TRANSACTION).

hope this helps

ec

Read only

Former Member
0 Likes
953

Replies do not solve the issue