Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Conversion error

Hi,

i have a code lik this

ztabletype is a table structure.

tables : ztable.

data: itab type ztabletype,

wa_itab like line of itab.

select * from ztable into itab where 'condition'.

LOOP AT itab INTO wa_itab.

....

...

ENDLOOP.

I am getting the error "ITAB can not be converted to WA_ITAB".

How to correct this problem?

Rgards,

Mythili

Former Member
Former Member replied

tables : ztable.

data: itab type ztable,
         wa_itab like line of itab.

select * from ztable into table itab where 'condition'.

LOOP AT itab INTO wa_itab.

....
...

ENDLOOP.

or

data: itab type standard table of  ztable,
         wa_itab like lie of itab.

select * from ztable into table itab where 'condition'.

LOOP AT itab INTO wa_itab.

....
...

ENDLOOP.

the above code will work.

put the break point at loop at itab and check whther the data is coming or not to itab.

revert back for further issues

Edited by: vishwa sri hari on Sep 25, 2008 9:54 AM

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question