‎2005 Oct 20 9:40 AM
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?
‎2005 Oct 20 9:49 AM
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
‎2005 Oct 20 9:41 AM
hi,
if you want to compare the two programs means goto Se39 tranasction
cheers,
sasi
‎2005 Oct 20 9:45 AM
HY,
U CAN GO TO UTILITIES->MORE UTILITIES-> SPLITSCREEN EDITOR.
REGARDS,
KARTIKEY.
‎2005 Oct 20 9:49 AM
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
‎2005 Oct 20 10:37 AM
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 ?
‎2005 Oct 20 10:52 AM
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
‎2005 Oct 20 10:56 AM
Unfortunately I have to report on every difference !
‎2005 Oct 20 11:16 AM
Hi Jill,
I took a look in your system and found the FM
<b>RS_VERS_COMPARE_TAB</b>
for this.
Regards,
Stefan
‎2005 Oct 20 10:44 AM
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