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

New debugger - DIFF Tool

former_member186444
Participant
0 Likes
564

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.

3 REPLIES 3
Read only

former_member186444
Participant
0 Likes
514

anyone ?

Read only

0 Likes
514

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á

Read only

former_member189009
Active Participant
0 Likes
514

This message was moderated.