‎2008 Aug 28 11:04 AM
I'm just trying out the DIFF tool in the new debugger for the first time. I've set up a small piece of code with deliberate differences between 2 internal tables. It works ok except I've noticed the DIFF tool has not picked up on a difference in content between 2 of the fields in the internal tables. I've pasted in the code i'm using below. VAR3 has different content between the 2 internal tables but this is not picked up when I compare them. If I compare s_t1-var3 and s_t2-var3, however, it does show me the difference as with the comment 'the elements have different contents'. Am I doing somethig wrong here or is this a bug ? Thanks.
types: begin of t1,
var1(10),
var2(20),
var3 type p decimals 2,
end of t1,
begin of t2,
var1(15), "diff length
var2(20) type n, "diff type
var3 type p decimals 2, "diff content
end of t2.
data: t_t1 type table of t1,
s_t1 type t1,
t_t2 type table of t2,
s_t2 type t2.
start-of-SELECTION.
s_t1-var1 = 'test'.
s_t2-var1 = 'test'.
s_t1-var2 = '123'.
s_t2-var2 = '123'.
s_t1-var3 = 22.
s_t2-var3 = 23.
append s_t1 to t_t1.
append s_t2 to t_t2.
‎2008 Aug 28 3:02 PM
‎2008 Aug 28 3:23 PM
Hi!
For me it sais, the tables cannot be compared, because they have different types.
The diff is working only if the tables have exactly the same structure.
(I just tryed it out).
Regards
Tamá
‎2014 Oct 30 2:35 PM