<?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: data type mismatch in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786784#M1309218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you can take one more variable say ORGEH2 of character type with length 45.&lt;/P&gt;&lt;P&gt;Loop at  it_org.&lt;/P&gt;&lt;P&gt;pass the value of ORGEH to ORGEH2 (ORGEH2 = ORGEH)&lt;/P&gt;&lt;P&gt;modify it_org with index transporting ORGEH2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this you can write your code as mentioned in your mail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepa Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2009 12:46:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-17T12:46:56Z</dc:date>
    <item>
      <title>data type mismatch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786783#M1309217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;my query is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  sobid objid FROM hrp1001 INTO TABLE it_var&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN it_org&lt;/P&gt;&lt;P&gt;  WHERE sclas EQ 'O' AND&lt;/P&gt;&lt;P&gt;        otype EQ 'D' AND&lt;/P&gt;&lt;P&gt;        seqnr = it_org-seqnr AND&lt;/P&gt;&lt;P&gt;        sobid = it_org-orgeh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sobid is &lt;/P&gt;&lt;P&gt; sobid TYPE hrp1001-sobid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and orgeh is &lt;/P&gt;&lt;P&gt;pa0001-orgeh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now error is &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; When you use the addition "FOR ALL ENTRIES IN itab", the fields "SOBID"
and "IT_ORG-ORGEH" must have the same type and the same length.
   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bcoz SOBID is char type (45) and ORGEH is numeric (8).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to remove the error?&lt;/P&gt;&lt;P&gt;Is there any way other than FOR all entries to write this query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786783#M1309217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: data type mismatch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786784#M1309218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you can take one more variable say ORGEH2 of character type with length 45.&lt;/P&gt;&lt;P&gt;Loop at  it_org.&lt;/P&gt;&lt;P&gt;pass the value of ORGEH to ORGEH2 (ORGEH2 = ORGEH)&lt;/P&gt;&lt;P&gt;modify it_org with index transporting ORGEH2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this you can write your code as mentioned in your mail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepa Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786784#M1309218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: data type mismatch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786785#M1309219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; SELECT  sobid objid FROM hrp1001 INTO TABLE it_var&lt;/P&gt;&lt;P&gt;&amp;gt;   FOR ALL ENTRIES IN it_org&lt;/P&gt;&lt;P&gt;&amp;gt;   WHERE sclas EQ 'O' AND&lt;/P&gt;&lt;P&gt;&amp;gt;         otype EQ 'D' AND&lt;/P&gt;&lt;P&gt;&amp;gt;         seqnr = it_org-seqnr AND&lt;/P&gt;&lt;P&gt;&amp;gt;         sobid = it_org-orgeh.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt; bcoz SOBID is char type (45) and ORGEH is numeric (8).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define one more filed sobid in your internal table it_org with type as sobid.&lt;/P&gt;&lt;P&gt;Now loop at it_org and assign the value of it_org-orgeh to it_org-sobid and modify the internal table.&lt;/P&gt;&lt;P&gt;after this write your select query  as -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  sobid objid FROM hrp1001 INTO TABLE it_var&lt;/P&gt;&lt;P&gt;   FOR ALL ENTRIES IN it_org&lt;/P&gt;&lt;P&gt;   WHERE sclas EQ 'O' AND&lt;/P&gt;&lt;P&gt;         otype EQ 'D' AND&lt;/P&gt;&lt;P&gt;         seqnr = it_org-seqnr AND&lt;/P&gt;&lt;P&gt;         sobid = it_org-sobid.                       " Changed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786785#M1309219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: data type mismatch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786786#M1309220</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;Take one TEMP field in IT_ORG with length 45. Before writing this select statement, move ORGEH to temp field and then use TEMP instead of ORGEH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_org.&lt;/P&gt;&lt;P&gt;it_org-temp = it_org-orgeh.&lt;/P&gt;&lt;P&gt;modify it_org transporting temp.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT sobid objid FROM hrp1001 INTO TABLE it_var&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_org&lt;/P&gt;&lt;P&gt;WHERE sclas EQ 'O' AND&lt;/P&gt;&lt;P&gt;otype EQ 'D' AND&lt;/P&gt;&lt;P&gt;seqnr = it_org-seqnr AND&lt;/P&gt;&lt;P&gt;sobid = it_org-TEMP. -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;Change here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786786#M1309220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: data type mismatch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786787#M1309221</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;Use extra variable like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:lv_orgeh type hrp1001-sobid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move orgeh to lv_orgeh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT sobid objid FROM hrp1001 INTO TABLE it_var&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_org&lt;/P&gt;&lt;P&gt;WHERE sclas EQ 'O' AND&lt;/P&gt;&lt;P&gt;otype EQ 'D' AND&lt;/P&gt;&lt;P&gt;seqnr = it_org-seqnr AND&lt;/P&gt;&lt;P&gt;sobid = lv_orgeh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil d&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786787#M1309221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: data type mismatch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786788#M1309222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only way is to add another field to your internal table of the required type or else declare an internal table having fields SEQNR and ORGEH where ORGEH is of char (45). Now append all the values from the internal table IT_ORG to this internal table and use it for retriving data from HRP1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Susanta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 16:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-mismatch/m-p/5786788#M1309222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T16:36:00Z</dc:date>
    </item>
  </channel>
</rss>

