<?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 Error in select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/9795101#M1779000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ESKN table Packno type numc 10 and&amp;nbsp; in Essr table LBLNI type char 10&lt;/P&gt;&lt;P&gt;when I use the following select select statement then error 'PACKNO and&amp;nbsp; it_essr-lblni must have the same type and same lenth' occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;SELECT&lt;/SPAN&gt; * &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; eskn &lt;SPAN class="L1S52"&gt;INTO&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; it_eskn &lt;SPAN class="L1S52"&gt;FOR&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;ALL&lt;/SPAN&gt; ENTRIES &lt;SPAN class="L1S52"&gt;IN&lt;/SPAN&gt; it_essr &lt;SPAN class="L1S52"&gt;WHERE&lt;/SPAN&gt; packno = it_essr-lblni.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the alternative of this one or how to rectify this error please tell me.&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;Saquib&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Oct 2013 08:13:25 GMT</pubDate>
    <dc:creator>former_member328875</dc:creator>
    <dc:date>2013-10-22T08:13:25Z</dc:date>
    <item>
      <title>Error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/9795101#M1779000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ESKN table Packno type numc 10 and&amp;nbsp; in Essr table LBLNI type char 10&lt;/P&gt;&lt;P&gt;when I use the following select select statement then error 'PACKNO and&amp;nbsp; it_essr-lblni must have the same type and same lenth' occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;SELECT&lt;/SPAN&gt; * &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; eskn &lt;SPAN class="L1S52"&gt;INTO&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; it_eskn &lt;SPAN class="L1S52"&gt;FOR&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;ALL&lt;/SPAN&gt; ENTRIES &lt;SPAN class="L1S52"&gt;IN&lt;/SPAN&gt; it_essr &lt;SPAN class="L1S52"&gt;WHERE&lt;/SPAN&gt; packno = it_essr-lblni.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the alternative of this one or how to rectify this error please tell me.&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;Saquib&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 08:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/9795101#M1779000</guid>
      <dc:creator>former_member328875</dc:creator>
      <dc:date>2013-10-22T08:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/9795102#M1779001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saquib Khan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change data type of lblni to packno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we are comparing any fields, the data type of the both fields should match.&lt;/P&gt;&lt;P&gt;So, please create one more temporary internal table with the field lblni type packno.&lt;BR /&gt;And move the data to that temproray internal table.&lt;BR /&gt;Now use this temproray internal table in the select query of eskn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATA: it_eskn &lt;SPAN class="L0S52"&gt;TYPE &lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;eskn,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_essr &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;essr,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_essr &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;essr.&lt;BR /&gt;&lt;BR /&gt;TYPES: &lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;lty_essr_temp,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblni &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;packno,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;lty_essr_temp.&lt;BR /&gt;&lt;BR /&gt;DATA: lt_essr_temp &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;lty_essr_temp,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_essr_temp &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;lty_essr_temp.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;it_essr &lt;SPAN class="L0S52"&gt;IS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NOT &lt;/SPAN&gt;INITIAL.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;it_essr &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;is_essr.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_essr_temp-lblni&amp;nbsp; = is_essr-lblni.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;/SPAN&gt;ls_essr_temp &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;lt_essr_temp.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLEAR: ls_essr_temp.&lt;BR /&gt;&amp;nbsp; ENDLOOP.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;eskn &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;it_eskn&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ALL &lt;/SPAN&gt;ENTRIES &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;lt_essr_temp&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;packno = lt_essr_temp-lblni.&lt;BR /&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 08:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/9795102#M1779001</guid>
      <dc:creator>hemanth_kumar21</dc:creator>
      <dc:date>2013-10-22T08:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/9795103#M1779002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either change the datatype of lnlni to numc(10) or use conversion exits. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before the select statement, use conversion exit for all values of lblni.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM CONVERSION_EXIT_ALPHA_INPUT and then pass the output of this in the select statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 08:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-select-statement/m-p/9795103#M1779002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-22T08:29:28Z</dc:date>
    </item>
  </channel>
</rss>

