<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Conversion error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504966#M1065751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My version is 4.6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed as u said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is saying "ztabletype should be a flat structure."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its a table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have many fields in the transparent table.So i dont want to create flat structrure.I &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;want to use the table structure alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mythili&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2008 07:14:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-25T07:14:52Z</dc:date>
    <item>
      <title>Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504960#M1065745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a code lik this&lt;/P&gt;&lt;P&gt;ztabletype is a table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : ztable.&lt;/P&gt;&lt;P&gt;data: itab type ztabletype,&lt;/P&gt;&lt;P&gt;       wa_itab like line of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ztable into itab  where 'condition'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the error "ITAB can not be converted to WA_ITAB".&lt;/P&gt;&lt;P&gt;How to correct this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgards,&lt;/P&gt;&lt;P&gt;Mythili&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 06:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504960#M1065745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T06:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504961#M1065746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : ztable.&lt;/P&gt;&lt;P&gt;data: itab type ztabletype,&lt;/P&gt;&lt;P&gt;wa_itab like line of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ztable into &lt;STRONG&gt;table&lt;/STRONG&gt; itab where 'condition'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504961#M1065746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504962#M1065747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the declaration of wa_itab from like line of itab to itab. Here itab is declared as a table structure and wa_itab as "line of itab"..so there is difference... it wont take it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VIshwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504962#M1065747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504963#M1065748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be your version is 4.6 or 4.7E. In this version generally we are facing this type of problems. &lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : ztable.&lt;/P&gt;&lt;P&gt;data: itab like ztabletype occurs 0,&lt;/P&gt;&lt;P&gt;wa_itab like itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ztable into itab where 'condition'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you. Revert back if you face any problems..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504963#M1065748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504964#M1065749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have missed to type table in this.I have given that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i change the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab like lin of  itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab type itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,its showing itab is unknown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have used like line of similarly before.that time I did not use select query like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mythili&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504964#M1065749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504965#M1065750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can give wa_itab type ztabletype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for itab give itab type ztabletype occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504965#M1065750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504966#M1065751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lakshman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My version is 4.6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed as u said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is saying "ztabletype should be a flat structure."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its a table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have many fields in the transparent table.So i dont want to create flat structrure.I &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;want to use the table structure alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mythili&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504966#M1065751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504967#M1065752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi viswa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change that to type means getting the error" ITAB can not be converted to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_ITAB" at the line LOOP AT...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504967#M1065752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504968#M1065753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables : ztable.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;                                   or &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above code will work.&lt;/P&gt;&lt;P&gt;put the break point at loop at itab and check whther the data is coming or not to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revert back for further issues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vishwa sri hari on Sep 25, 2008 9:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 07:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504968#M1065753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T07:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504969#M1065754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please close the post, if the question is answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 08:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-error/m-p/4504969#M1065754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T08:24:44Z</dc:date>
    </item>
  </channel>
</rss>

