2006 Mar 03 2:08 PM
Hello to everybody,
Can anyone please tell me the best way to deactivate an executable program?
The target is not to delete the program but to make sure that nobody (including SUPERUSER) is able to execute the program in the productive SAP-System. We plan to save sources of unused programs by deactivating.
Thanks
Jörg
2006 Mar 03 2:17 PM
So if I get you correctly, you want to stop anyone from executing the programm in production, or in any system?
I don´t know of a standard way to do so, but if the programs should only be deactivated in production and if they are customer-programms, try
if sy-sysid = production.
leave program.
endif.
2006 Mar 03 2:13 PM
2006 Mar 03 2:21 PM
Hello Madhu,
thanks for your help.
Our department decided not to solve the problem by authorization checks because some background users have nearly all authorities. So we have to look for an other solution.
regards
Jörg
2006 Mar 03 2:13 PM
Hi,
There is no way to deactivate the execution of a program.. you can create an Authorization group & tie the report to it in the Program Attributes.. this way you can restrict it from being used..
Regards,
Suresh datti
2006 Mar 03 2:26 PM
Hello Suresh datti,
thanks. An authorisation group will restrict the usage of the programs. This is an elegant solution to restrict the usage without any additional programming. But we like to unable the executability of the program. Do you habe any other idea?
Regards
Jörg
2006 Mar 03 2:17 PM
So if I get you correctly, you want to stop anyone from executing the programm in production, or in any system?
I don´t know of a standard way to do so, but if the programs should only be deactivated in production and if they are customer-programms, try
if sy-sysid = production.
leave program.
endif.
2006 Mar 03 2:19 PM
Hi,
Pl take a look at the program RSCSAUTH. It has got very good documentation and can be used to restrict execution without having to change the Program attributes too..
Regards,
suresh Datti
2006 Mar 03 2:51 PM
So if I get you correctly, you want to stop anyone
from executing the programm in production, or in any
system?
I don´t know of a standard way to do so, but if the
programs should only be deactivated in production and
if they are customer-programms, try
if sy-sysid = production.
leave program.
endif.
Hi Ute Schroeder,
you are right. The focus is on customer created programs and i want to stop the execution of some programs in any system.
There is a way to do this by programming but I would favor a solution without additional programming.
A programming solution could be to include an Errormessage just at the beginning of the program.
Thanks for your helping hand.
Jörg
2006 Mar 03 3:48 PM
You can do this at the initialization event:
REPORT ztest NO STANDARD PAGE HEADING LINE-SIZE 255
MESSAGE-ID 00.
INITIALIZATION.
MESSAGE e001 WITH 'This program may not be executed'.Rob
2006 Mar 06 1:03 PM
Hi Rob,
this is the way I will do. I discussed above. Thanks for your solution.
Regards
2006 Mar 06 2:43 PM