‎2010 Aug 06 7:00 PM
Hi Experts,
I have to compare programs from two different systems. I cannot use version (this is not an option).
I can do READ REPORT to read each line of code and compare, however is there a FM or RFC that will allow me to read code in another system.
Is there a RFC or BAPI that will allow me to do this? Please be more specific and detailed as I am new to SAP and ABAP.
Thank you,
Rahim.
‎2010 Aug 06 7:19 PM
Experts,
I did find RFC_READ_REPORT, however nothing happens when I test it in SE37.
When I looked at the source code: everything is commented and I don't want to change standard SAP FM.
FUNCTION RFC_READ_REPORT.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(PROGRAM) LIKE SY-REPID
*" EXPORTING
*" VALUE(SYSTEM) LIKE SY-SYSID
*" VALUE(TRDIR) LIKE TRDIR STRUCTURE TRDIR
*" TABLES
*" QTAB STRUCTURE D022S
*"----------------------------------------------------------------------
* REFRESH QTAB.
* READ REPORT PROGRAM INTO QTAB.
* SELECT SINGLE * FROM TRDIR WHERE NAME = PROGRAM.
* SYSTEM = SY-SYSID.
ENDFUNCTION.
Any Ideas?
Edited by: Rahim Kassam on Aug 6, 2010 8:20 PM
‎2010 Aug 06 7:39 PM
Experts,
So I did figure out that RFC_READ_REPORT is not released yet.
However, my question still stands, how do I access source code from different system?
Thanks,
Rahim.
‎2010 Aug 06 7:47 PM
Hi,
Use the T.Code : SE39( split screen editor) and use the "Compare different systems" option to compare the report in two different systems.
Only constraint is the RFC Destinations needs to be created.
Regards,
Prabakaran.S
‎2010 Sep 21 6:57 PM
The note 931423 says that you need the function RFC_READ_REPORT is no longer recommended.
You need to use RPY_PROGRAM_READ function. I tested it and it works fine.
Hope it helps!