Application Development 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: 

Report

Former Member
0 Kudos

hello all,

i have developed one report,for that i created one tr.code(ZTRN). my requirement is when ever end user or developer run the same report by SE38 tr.code, the message (pls run the report by ZTRN transaction) has to display. for this on which event i need to provide coding and what codi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check the value of SY-TCODE.

6 REPLIES 6

former_member206439
Contributor
0 Kudos

Hi

please check once Authorization object for that T-code.

Former Member
0 Kudos

Check the value of SY-TCODE.

Former Member
0 Kudos

hi pravin,

1. you can do like this



initialization.

if sy-tcode <> 'ZTRN'
message 'Pls run the report using....'. type 'E'.
endif.

PS : sy-tcode NE 'ZTRN'

(not equal to)

regards,

amit m.

Former Member
0 Kudos

Hi,

initialization.

if sy-tcode <> 'ZTCODE'.

message 'Run the report using transaction ZTCODE' type 'S'.

endif.

Former Member
0 Kudos

there are several ways to do this

1. can write logic in exit EXIT_SAPLWBABAP_010 this exit is for SE38 transaction write user ristriction for ur program in this exit include ZXSEUU29.

2. u can try authorization check.

3. can include role for particular user.

Former Member
0 Kudos

Hi,

in the START-OF-SELECTION.

you can raise your message.

Regards,

Venkat