Skip to Content
0
Former Member
May 09, 2010 at 09:18 AM

Can not converted to be a charter-type field

95 Views

Hi everyone,

As i m new in abap . i wrote this code and received charter type error.

&----


*& Report ZT11

*&

&----


*&

*&

&----


REPORT ZT11.

DATA: aa type lfa1.

tables lfa1.

select * from lfa1 into aa where lifnr > 'Z' .

write / aa.

endselect.

if sy-subrc <> 0.

write / 'No records found'.

endif.

error is

'AA' can not converted to a character-type field.

plz help to reslove the error .

thanks in advance.

Edited by: Faisal Abbasi on May 9, 2010 11:19 AM