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

Report

Former Member
0 Likes
617

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
Read only

Former Member
0 Likes
572

Check the value of SY-TCODE.

6 REPLIES 6
Read only

former_member206439
Contributor
0 Likes
572

Hi

please check once Authorization object for that T-code.

Read only

Former Member
0 Likes
573

Check the value of SY-TCODE.

Read only

Former Member
0 Likes
572

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.

Read only

Former Member
0 Likes
572

Hi,

initialization.

if sy-tcode <> 'ZTCODE'.

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

endif.

Read only

Former Member
0 Likes
572

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.

Read only

Former Member
0 Likes
572

Hi,

in the START-OF-SELECTION.

you can raise your message.

Regards,

Venkat