I have written a code in the following manner.
data : wa type zaett, (zaett is my table)
itab2 type zaett occurs 0 with header line.
write / :sy-uname. (Initial output)
select * from zaett into table itab2.
loop at itab2 into wa.
if wa-username eq sy-uname.
write / wa-username.
write : 'wrong'.
My initial ouput is inf64624 (which is my sy-uname).The table also has inf64624 value in its username field , but in the "if statement "some problem is there it is always giving me output as wrong .wa-username is having the value inf64624 but I think some logical error is there.Please Help.