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

How to compare ABAP Code?

Former Member
0 Likes
8,245

Hi All,

I have 2 ABAP programs. How could I compare these 2 programs to see differences?

Thanks,

Kishan

1 ACCEPTED SOLUTION
Read only

christian_wohlfahrt
Active Contributor
0 Likes
4,603

Hi Kishan!

Take SE39 (or SE38 - Utilities - Split screen editor).

Regards,

Christian

8 REPLIES 8
Read only

abdul_hakim
Active Contributor
0 Likes
4,603

Hi

In version management u can compare the 2 versions of the same program.But i don't think u have the option to compare two different programs.

Abdul

Read only

0 Likes
4,603

Thanks Hakim,

Please does anyone know how to compare 2 ABAP programs?

I need it urgently.

Thanks,

Kishan

Read only

0 Likes
4,603

Hi,

Go to SE39 and specify the ABAP Programs you want to compare in "Program on Left" and "Program on Right" fields.There you have the option to choose the active,inactive version as well.

Just try this.

Abdul

Read only

0 Likes
4,603

Hi



Use Read report
*-Source code
DATA: BEGIN OF IT_SOURCE1 OCCURS 0,
        LINE(200) TYPE C,
      END OF IT_SOURCE1.
*-Source code
DATA: BEGIN OF IT_SOURCE2 OCCURS 0,
        LINE(200) TYPE C,
      END OF IT_SOURCE2.
loop.
READ REPORT <b>REPID1</b> INTO <b>IT_SOURCE_tmp</b>.
 APPEND LINES OF IT_SOURCE_tmp TO IT_SOURCE.
endloop.
loop.
READ REPORT <b>REPID2</b> INTO <b>IT_SOURCE_tmp</b>.
 APPEND LINES OF IT_SOURCE2_tmpTO IT_SOURCE2.
endloop.

if it_source1[] <> it_source2[].
message..
endif.

Read only

christian_wohlfahrt
Active Contributor
0 Likes
4,604

Hi Kishan!

Take SE39 (or SE38 - Utilities - Split screen editor).

Regards,

Christian

Read only

Former Member
0 Likes
4,603

Kishan,

You can do that. take a look at transaction code SE39.

Regards,

Ravi

note : Reward the posts that help you.

Read only

Former Member
0 Likes
4,603

Use SE39, Split screen editor

Hope it helps,

Regards,

Bikash

Read only

Former Member
4,603

Hi,

You can compare 2 Programs,

Go to SE39 Transaction code and give the program names and click the Display, then it will shows 2 reports, then you can find out the Differences.

if you want to compare Programs in 2 Different systems use the RFC..

<u><b>1)</b></u> Start SE39

<u><b>2)</b></u> Choose Compare different systems

<u><b>3)</b></u> Enter both program names and the RFC destination of

the remote program

<u><b>4)</b></u> Choose Display

the system show the differences in blue colour

for more information -->

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-998...

search Compare in this link, you will get more information

Hope you got what you want

Regards

Sudheer