‎2008 Aug 26 12:14 PM
hello experts give the solution to my question.
1. i crated an internal table it's consists only one field ,
however i deleted the data in internal table. but it gives the output to me.
ex:
loop at itab.
delete itab.
write 😕 itab-field.
endloop.
however it gives the output.
‎2008 Aug 26 12:28 PM
loop at itab.
delete itab.
write 😕 itab-field.
endloop.
When loop is executed, the data is been read from the body of the internal table and is been stored in the header part.
Now, you are deleting the body data but not the header data, so when you are trying to print, it gets printed from the header data.
Do this way.
loop at itab.
delete itab.
clear itab.
write 😕 itab-field.
endloop.
‎2008 Aug 26 12:19 PM
Hello
this code write the header value if you do'nt want to write
you have write "clear itab." before write satement
Thanks
‎2008 Aug 26 12:26 PM
In your code, delete itab deletes the body. But as the Header consists of value you are getting the output. Just debug and see. You can understand.
‎2008 Aug 26 12:28 PM
loop at itab.
delete itab.
write 😕 itab-field.
endloop.
When loop is executed, the data is been read from the body of the internal table and is been stored in the header part.
Now, you are deleting the body data but not the header data, so when you are trying to print, it gets printed from the header data.
Do this way.
loop at itab.
delete itab.
clear itab.
write 😕 itab-field.
endloop.
‎2008 Aug 26 12:34 PM