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: 

Is there any FM available for source code comparison in 2 server

Former Member
0 Kudos

hai

I have to write a report all unmatchmed sources codes between development and production server

is there any Function module available for this

Regards

Jayaanand

1 ACCEPTED SOLUTION

former_member190103
Participant
0 Kudos

Hi Jaya,

we can check it through version comparison.

i think this FM will may help you,

use the FM SVRS_GET_VERSION_REPS_40 for the same..

or

Check badi

CTS_CURRENT_PROJECT

WB_PROCESS_FCODE

These badis gets triggered when a program is activated.

Cheers,

Sravan

7 REPLIES 7

former_member212002
Active Contributor
0 Kudos

I am not sure about availability of any FM for the comparison of source codes.

But have you tried the Split screen editor?

SplitScreen Editor(SE39) uses FM RFC_READ_REPORT / Check include LS_WB_SPLIT_EDITOR_INITIALF01 for more info.


call function 'RFC_READ_REPORT'   "Variante für Releas <4.0
            destination rfcdes-rfcdest
            exporting
                 program = p_repid
*          importing
*               system  = rfcdes-rfcdest
*               trdir   = h_trdir
            tables
                 qtab    = l_tr_72
            exceptions
                 system_failure        = 01 message mess
                 communication_failure = 02 message mess.

Call the above FM for the source and target, and check and compare the values of internal table QTAB for any difference.


Cheers!

Abhinab

Former Member
0 Kudos

Hi,

Go to SE39

click on compare Different system

give program name on both left-justified and Right

give RFC Destination

display

now click on comparison on

Regards,

Mordhwaj

former_member209119
Active Participant
0 Kudos

Hey,

I am not sure if there is any such FM, but as Gajpal suggested either you can use SE39 to compare ABAP code between two different systems, or you can directly do this through SE38.

SE38 --> Utilities --> Versions --> Version management

Click on 'Remote Comparision'. Enter the Target system or RFC destination. Again click on Remote Comparision.

Please check below link. Might be useful for you.

http://abap.sdn-sap.com/2013/01/program-to-download-all-ios-and.html

former_member190103
Participant
0 Kudos

Hi Jaya,

we can check it through version comparison.

i think this FM will may help you,

use the FM SVRS_GET_VERSION_REPS_40 for the same..

or

Check badi

CTS_CURRENT_PROJECT

WB_PROCESS_FCODE

These badis gets triggered when a program is activated.

Cheers,

Sravan

0 Kudos

This message was moderated.

0 Kudos

This message was moderated.

ThomasZloch
Active Contributor
0 Kudos

Did you look at transaction SREPO, this seems to do already what you are trying to create (again). At least you should be able to find out how it is working under the hood by doing some ABAP traces or debugging, and maybe reuse it in your own development.

Thomas