Skip to Content
0
Jan 25, 2007 at 06:04 AM

Comparing Operation

23 Views

Hi all,

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.

else.

write : 'wrong'.

endif.

endloop.

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.

Regards,

Ruby.