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

Debugging: Show Values in Field of Type Hashed Table?

Former Member
0 Likes
3,181

HI All,

could anybody pls. explain which buttons to click to show the records in a field of Type Hashed Table?

See screenshot: How can I values in line # 1 (XT_MESSAGE_DATA)

Thanks

Regards

Mario

HI All,

could anybody pls. explain which buttons to click to show the records in a field of Type Hashed Table?

See screenshot: How can I values in line # 1 (XT_MESSAGE_DATA)

Thanks

Regards

Mario

8 REPLIES 8
Read only

Former Member
0 Likes
2,887

Hi Mario,

Hashed tables are better as compared to other 2 type of tables . they basically work on the principal of Hash Key.

The prerequisite for an hashed table is that we need to specify the Key for that table, which is unique for each record in the table.

Now based on this key the system based on a hashing algorithm automatically generates a hash key which is used to access the records in the table.

It would be helpful , but as i said about the prerequisite , go for it if in your internal table there are fields which can ask as key , so as to uniquely identify each record.

Check this link out:-

<Link to random website removed>

Message was edited by: Gareth Ryan Please don't post links to external sites like this.

Read only

0 Likes
2,887

Hi Ramdas,

Have you actually read the question?

You have posted a short semi-explanation for what hashed tables are and then linked off to some random website.  The OP is asking for help with debugging where they are using hashed tables, not what hashed tables are.

In future, I'd suggest you actually read the question properly before trying to answer.

Cheers,

G.

Read only

0 Likes
2,887

i find in the regular debug view, stick a couple of square brackets at the end of the itab variable and then double click the itab variable - is often a fast way to see the contents...just one of a few methods

lt_data[]

Read only

0 Likes
2,887

Hi Gareth,

My bad. Sorry for that

Read only

0 Likes
2,887

Hi Steve,

I did what you said; but I can't see the entries in the ITAB:

After (1) i made a doubleclilck

Regards

Mario

Read only

0 Likes
2,887

hmm, well that is strange.

in that first window you pasted, under variable

I would do something like

GT_ITAB[1]

1 being the index number for the row of the table you want to read - and it would display it a structure view after you double click


Read only

Clemenss
Active Contributor
0 Likes
2,887

Hi Mario,

what happens when you double-click on the value field?

Regards,

Clemens

Read only

Former Member
0 Likes
2,887

yes, I find field value is also useful if the variable name does not work - especially with tables that are defined with reference

So also try Clemens suggestion - it is with reference as I can see the -> dref assignment.

This will show you the whole table.