Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

READ REPORT - External systems

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

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

0 Kudos

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!