‎2018 Jan 22 9:16 AM
Hi all,
I want to compare the source code of a program between SIDs. However, the source code of the program I want to compare contains multiple "include" statements. I am therefore wondering whether SAP code compare functionality exists which automatically compares all included programs (and possibly, functions) as well.
I am aware of SE38 Version management remote compare, SE39 split compare, and SREP. I am however not sure whether these functionalities also consider the included objects.
Many thanks.
Best regards, Niamor
‎2018 Jan 22 3:49 PM
No. There is nothing built in that does this. I do remember a blog that included a custom program exactly for this functionality.
‎2018 Jan 24 12:52 PM
Thanks Matthew.
I will do a search on the program.
I was thinking of another approach: retrieving the ABAP source code using (multiple) Remote function calls. Functions I have identified so far are "RFC_READ_REPORT" and RFC_READ_DEVELOPMENT_OBJECT. I am not sure however whether these are the ones to go with.
Thank you
‎2018 Jan 25 9:34 AM
You can simplify matters using FM SVRS_GET_REPS_FROM_OBJECT (locally and remote) to get the code, and then SVRS_COMPUTE_DELTA_REPS to get the differences between the local and remote code. This is what the program RSVRSDC3 uses.
‎2018 Sep 04 12:11 PM
You can compare entire classes in Eclipse, which I've found to be very useful.
‎2018 Jan 24 1:29 PM
What is wrong with SREP? Compare a package and it should all be included. Or if your packages are too big (not good), use the appropriate selection criteria to limit the results to the report and includes you want.
‎2018 Sep 04 11:00 AM
Hi all,
FYI: Given TCODE restrictions I have used function "RPY_PROGRAM_READ" to download the program code.
Best regards