‎2008 Aug 12 1:21 PM
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
‎2008 Aug 12 1:29 PM
‎2008 Aug 12 1:27 PM
‎2008 Aug 12 1:29 PM
‎2008 Aug 12 1:30 PM
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.
‎2008 Aug 12 1:32 PM
Hi,
initialization.
if sy-tcode <> 'ZTCODE'.
message 'Run the report using transaction ZTCODE' type 'S'.
endif.
‎2008 Aug 12 1:32 PM
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.
‎2008 Aug 12 1:35 PM
Hi,
in the START-OF-SELECTION.
you can raise your message.
Regards,
Venkat