2023 Feb 24 6:53 AM
Is there a possibility to format whole package ( pretty printer ) at once, and activate everything after, without doing everything manually?
2023 Feb 24 8:29 AM
2023 Feb 24 8:42 AM
All classes, reports, interfaces inside package. Format it with pretty printer then activate it. Without doing everything manually.
2023 Feb 24 9:32 AM
You may possibly adapt this program which I used to check if the Pretty Printer was applied to a list of classes and programs of abap2xlsx.
2023 Feb 24 10:27 AM
Hi alhodzic,
This Program Will Erase All Your Objects in Package,
TABLES: TADIR.
PARAMETERS: p_pack TYPE TADIR-DEVCLASS.
DELETE FROM TADIR
WHERE DEVCLASS eq p_pack.
Thank You,
Suggu Sandeep.
2023 Feb 24 10:44 AM
The function modules PRETTY_PRINT_PROGRAM and PRETTY_PRINTER (called by PRETTY_PRINT_PROGRAM) do the work.
So you could write a program to get all the source code connected to a package, pretty print it and then activate it. READ REPORT and INSERT REPORT would be needed. You'd also have to find the includes (for example) of every class.
Probably quicker to do it manually. Or explain to developers that if they don't want to be ex-developers they need to pretty print their source code as mandated in the standards.
2023 Feb 24 1:56 PM
It might be possible for you to adapt the program that I used to check if the Pretty Printer had been applied to a list of classes and programs that were part of abap2xlsx to fit your specific requirements.