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

Comparing Programs

Former Member
0 Likes
929

Hi

I have been asked to write a program that compares various BW Objects across systems. For most of these I can find a generated program. Has anyone ever tried to compare these before?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
905

Hi,

if you want you write your own program:

there is a FM <b>RFC_READ_REPORT</b> to read the source of a report from a remote system.

Good luck...

Stefan

8 REPLIES 8
Read only

Former Member
0 Likes
905

hi,

if you want to compare the two programs means goto Se39 tranasction

cheers,

sasi

Read only

Former Member
0 Likes
905

HY,

U CAN GO TO UTILITIES->MORE UTILITIES-> SPLITSCREEN EDITOR.

REGARDS,

KARTIKEY.

Read only

Former Member
0 Likes
906

Hi,

if you want you write your own program:

there is a FM <b>RFC_READ_REPORT</b> to read the source of a report from a remote system.

Good luck...

Stefan

Read only

0 Likes
905

Thank you Stefan, I can see now that I can get the source code from another system. But do I really have to loop thru' line by line to compare the code ?

Read only

0 Likes
905

Hi Jill,

thanks for the points.

The easiest way is to compare if the source is equal:

if it_sourcetab1[] <> it_sourcetab2[].
...  
endif.

or do want do have a detailed report of the difference?

Regards,

Stfan

Read only

0 Likes
905

Unfortunately I have to report on every difference !

Read only

0 Likes
905

Hi Jill,

I took a look in your system and found the FM

<b>RS_VERS_COMPARE_TAB</b>

for this.

Regards,

Stefan

Read only

Former Member
0 Likes
905

Hi,

You could have the old and new programs in internal tables (by using the RFC), and then compare as follows:

If itab1[] = itab2[].

<code>

Endif.

You will still have to loop through line by line for the changed programs, but with the above statement you will at least be able to eliminate the ones that have not changed.

Hope this helps.

Sudha