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

why does table look empty in debug mode ?

Former Member
0 Likes
846

Hello,

when i am debugging in sap, it seems that some tables are empty, for exmaple, when i want to see the contents of table "DOCUMENTFILES" when i am in debug mode, i see that it is empty, but if i check the contents of "DOCUMENTFILES-FILE_ID" i get an answer/value, so why is that the table appears to be empty when there is actually information in it ?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
726

Hi hassan,

DOCUMENTFILES-FILE_ID shows the contents of the work area DOCUMENTFILES.

Even if the table is empty the work area might contain some value, as a result of a select in to work area.. or some read statement..

regards

satesh

3 REPLIES 3
Read only

Former Member
0 Likes
726

In the Debug mode, plz use the syntax :

DOCUMENTFILES[]

You'll directly see if empty or not...

Erwan

Read only

Former Member
0 Likes
727

Hi hassan,

DOCUMENTFILES-FILE_ID shows the contents of the work area DOCUMENTFILES.

Even if the table is empty the work area might contain some value, as a result of a select in to work area.. or some read statement..

regards

satesh

Read only

bettinasilveira
Participant
0 Likes
726

Like the other posters said, you are seeing a value in the WA, but that doesn't mean that the table has information in it.

That data you are seeing could be an old value or maybe it's part of a future row and the program is filling the row at that moment.

Hope this helps you...