Application Development and Automation 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 only

Problem in comparing two programs in different versions

Former Member
0 Likes
2,348

Hi,

I am migrating abap Programs from version 4.7 to version 5.0 and doing some changes in the code in version 5.0 as per the requirement.

Is there any way to compare these programs.Please help.

Mukesh Kumar

9 REPLIES 9
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,242

Do you mean compare them to the old version, sure, use the version manangement. There will be a button to compare versions.

Regards,

Rich Heilman

Read only

0 Likes
1,242

With split screen, SE39, you can compare 2 programs in teh same machine.

regards

Read only

0 Likes
1,242

Hi Rich,

By that method you can compare your code in same version but in different client,that is if you want to compare between development and QA or DEv and Production.

My requirement is to compare code in two versions 4.7 and 5.0

Read only

0 Likes
1,242

As I said, when you hit the remote comparison, you can choose the system against which you can do the comparison. So, if you have a RFC destination maintained to 4.7 from 5.0, you should be able to compare.

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

Former Member
0 Likes
1,242

I guess you will still have access to 4.7 system. If you can maintain a RFC destination between these system you can do the comparison using SE38 --> Version Management --> Remote Comparison.

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

Former Member
0 Likes
1,242

In your se38 editor. Choose from menu:

Utilities->Version Management.

In the screen that follows, there is a button for remote comparision.

Read only

naimesh_patel
Active Contributor
0 Likes
1,242

Hello,

Use FM SVRS_COMPUTE_DELTA_REPS to compare programs.

Do like:

download the prog from 4.7 as rep_old

download the prog from 5.0 as rep_new

Upload both in one program (which has the FM SVRS_COMPUTE_DELTA_REPS.

you need to pass the source code in texttab_old (rep_old) and texttab_new(rep_new).

You will have a delta in abaptext_delta table of FM.

regards,

Naimesh

Read only

Former Member
0 Likes
1,242

You may get some sort of error message when you try this, but (at least when comparing 4.6C to 4.7), it does return results.

Rob

Read only

Former Member
0 Likes
1,242

we actually go the download route, then use winmerge to compare the text files.

winmerge is open source and available via sourceforge.net. probalbly the best DIFFing program i have ever used.

it is a bit easier for us because we maintain a full copy of each source for each system in the landscape. we started doing this becuase our development system refreshes kept clearing all of the version information. Now, we can easily set the code from any system and version side by side and compare.