Skip to Content
avatar image
Former Member

READ REPORT - External systems

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 06, 2010 at 06: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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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!