<?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: different field type error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305457#M504271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change field length of KUNNR in IKNA1 to 90.&lt;/P&gt;&lt;P&gt;Both the queries will work then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 06:22:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-31T06:22:07Z</dc:date>
    <item>
      <title>different field type error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305456#M504270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz solve this query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ERDAT KUNNR NAME1 NAME2 LAND1 REGIO ORT01 PSTLZ SORTL STRAS TELF1 MCOD1 MCOD2 MCOD3 FROM KNA1&lt;/P&gt;&lt;P&gt; INTO CORRESPONDING FIELDS&lt;/P&gt;&lt;P&gt;OF TABLE IKNA1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT CHANGENR CHANGE_IND FROM CDHDR INTO CORRESPONDING FIELDS&lt;/P&gt;&lt;P&gt;OF TABLE ICDHDR for all entries in ikna1  WHERE OBJECTCLAS = 'DEBI' AND&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OBJECTID = IKNA1-KUNNR&amp;lt;/b&amp;gt; AND UDATE IN S_UDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the bolded field are showing error as one is of length 90 and other of 10.&lt;/P&gt;&lt;P&gt;please help how to check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;error&amp;lt;/b&amp;gt; - when using "for all entries in itab" the fields OBJECTID and IKNA-KUNNR must have same type and length&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305456#M504270</guid>
      <dc:creator>Karan_Chopra_</dc:creator>
      <dc:date>2007-05-31T06:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: different field type error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305457#M504271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change field length of KUNNR in IKNA1 to 90.&lt;/P&gt;&lt;P&gt;Both the queries will work then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305457#M504271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T06:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: different field type error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305458#M504272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no i cannot change the length&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305458#M504272</guid>
      <dc:creator>Karan_Chopra_</dc:creator>
      <dc:date>2007-05-31T06:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: different field type error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305459#M504273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then create one more table ikna1_temp, which will have KUNNR length as 90.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IKNA1.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING IKNA1 TO IKNA1_TEMP.&lt;/P&gt;&lt;P&gt;APPEND IKNA1_TEMP.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use the other table in second query.&lt;/P&gt;&lt;P&gt;Because the field type and length has to be same otherwise it will give an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT CHANGENR CHANGE_IND FROM CDHDR INTO CORRESPONDING FIELDS&lt;/P&gt;&lt;P&gt;OF TABLE ICDHDR for all entries in ikna1 WHERE OBJECTCLAS = 'DEBI' AND&lt;/P&gt;&lt;P&gt;OBJECTID = &amp;lt;b&amp;gt;IKNA1_TEMP-KUNNR&amp;lt;/b&amp;gt; AND UDATE IN S_UDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to take similar steps in order to get data from CDHDR table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Darshil Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305459#M504273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T06:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: different field type error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305460#M504274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;create  types,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of ty_knai,&lt;/P&gt;&lt;P&gt;kunnr(90) type c,&lt;/P&gt;&lt;P&gt;name1 type  knai-name1,&lt;/P&gt;&lt;P&gt;name2 type  kna1-name2,&lt;/P&gt;&lt;P&gt;.............&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;mcod3 type knai-mcod3,&lt;/P&gt;&lt;P&gt;end of ty_knai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: iknai type standard table of ty_knai.&lt;/P&gt;&lt;P&gt; now use first select query as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ERDAT KUNNR NAME1 NAME2 LAND1 REGIO ORT01 PSTLZ SORTL STRAS TELF1 MCOD1 MCOD2 MCOD3 FROM KNA1&lt;/P&gt;&lt;P&gt;INTO TABLE IKNA1 .&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;sudha.&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305460#M504274</guid>
      <dc:creator>S0025444845</dc:creator>
      <dc:date>2007-05-31T06:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: different field type error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305461#M504275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While declaring type of ICDHDR &lt;/P&gt;&lt;P&gt;declare kunnr(90) type c.&lt;/P&gt;&lt;P&gt;it will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ruchika&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 07:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305461#M504275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T07:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: different field type error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305462#M504276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx to alll &lt;/P&gt;&lt;P&gt;for helping especially ruchika ..i did the same thing ...its working now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 09:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-field-type-error/m-p/2305462#M504276</guid>
      <dc:creator>Karan_Chopra_</dc:creator>
      <dc:date>2007-05-31T09:09:55Z</dc:date>
    </item>
  </channel>
</rss>

