05-22-2007 12:53 AM
Hello ,
I want to delete 90 roles at a time from my system,
How to delete roles ( mass deletion) apart from running scripts .
please suggest.
Thanks in advance.
Regards
SK
05-22-2007 1:36 AM
Hello Kamozzala,
As such there is no standard functionality in SAP for mass role deletion. What exactly do you mean by scripts: Is it CATT/E-CATT scripts. I mean in such CATT tool is a good option.
However there is another work around. Check OSS note 313587.
It contains code for a simple report. Just create it in the system by copying the code given in the text file. Please let the report name be Z_DEL_AGR . Nothing much to do.Just follow the instructions in the note. Once the reported is created and activated you can use it to delete the 90 roles of your choice.
Please award points if answer was helpful.
Regards.
Ruchit.
05-22-2007 1:36 AM
Hello Kamozzala,
As such there is no standard functionality in SAP for mass role deletion. What exactly do you mean by scripts: Is it CATT/E-CATT scripts. I mean in such CATT tool is a good option.
However there is another work around. Check OSS note 313587.
It contains code for a simple report. Just create it in the system by copying the code given in the text file. Please let the report name be Z_DEL_AGR . Nothing much to do.Just follow the instructions in the note. Once the reported is created and activated you can use it to delete the 90 roles of your choice.
Please award points if answer was helpful.
Regards.
Ruchit.
05-22-2007 6:32 AM
Hi
You can do it via CATT tcode SCAT and via TCode SU10.
Thanks
Pankaj kumar
05-22-2007 7:05 AM
Hello Pankaj,
How will Su10 delete roles ?? It can at the maximum deleete role assignments to users.
Regards.
Ruchit.
06-28-2007 2:05 PM
Hello SK,
I myself wrote a short ABAP code similar to the one from the OSS note but <b>added some coding in order to avoid deletion of all roles or some of the basic roles by mistake</b> and it works fine.
You should also add this to your coding and be very careful when executing the program (perhaps it would be best to secure it by a special own authorization object.)
Regards,
Petra
06-28-2021 2:39 PM
It is little bit shame that SAP still does not have PFCG Mass removal t code or Standard Ecatt script or program
available to perform this house keeping tasks.
@SK ->> you will need to write ECATT script.
03-15-2023 9:11 AM
No need to shame:
Z_DEL_AGR did the job.
But now (2023) TCode pfcgmassdelete is your friend! 🙂
Cheers
Max
06-28-2023 10:57 AM