<?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: Select  statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3568218#M858759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create an intermediate table in which xblnr has the same type of belnr...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can do the for all entries in new_table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Mar 2008 11:10:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-16T11:10:45Z</dc:date>
    <item>
      <title>Select  statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3568217#M858758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; This select statement showing an error 'coz type of vbeln and XBLNR is different. Hw to correct this error. PLz help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;             posnr&lt;/P&gt;&lt;P&gt;             matnr&lt;/P&gt;&lt;P&gt;             FROM lips&lt;/P&gt;&lt;P&gt;             INTO TABLE t_lips&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN t_mkpf&lt;/P&gt;&lt;P&gt;             WHERE vbeln EQ t_mkpf-xblnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2008 10:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3568217#M858758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-16T10:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select  statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3568218#M858759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create an intermediate table in which xblnr has the same type of belnr...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can do the for all entries in new_table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2008 11:10:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3568218#M858759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-16T11:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select  statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3568219#M858760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While creating internal tables for both tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare XBLNR and VBELN of 16 characters in size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xblnr(16) type c&lt;/P&gt;&lt;P&gt;vbeln(16) type c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2008 11:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3568219#M858760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-16T11:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select  statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3568220#M858761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anu,&lt;/P&gt;&lt;P&gt;Check below mandatory conditions when u r using for all entries.&lt;/P&gt;&lt;P&gt;1. Have to check driver table is initial or not before using for all entries(IF NOT t_mkpf[] IS INTIAL). Other wise if driver table is initial then the select will select all the entries of the data base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. At least one condition from for all entries table has to be there in the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Field type and length of driver and driven tables must be same(Error in ur case is because of this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort the driver table and delete the adjacent duplicates from the driver table by the fields in the where clause for improving the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case &lt;STRONG&gt;to solve ur problem&lt;/STRONG&gt; u have to take one more internal table. In this u have to declare the field vbeln as mkpf-xblnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_lipstemp,&lt;/P&gt;&lt;P&gt;              vbeln type mkpf-vbeln,&lt;/P&gt;&lt;P&gt;            END OF t_lipstemp.&lt;/P&gt;&lt;P&gt;DATA: i_lipstemp     TYPE STANDARD TABLE OF t_lipstemp,&lt;/P&gt;&lt;P&gt;           wa_lipstemp TYPE t_lipstemp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH i_lipstemp[].&lt;/P&gt;&lt;P&gt;LOOP AT t_mkpf INTO wa_mkpf.&lt;/P&gt;&lt;P&gt;CLEAR wa_lipstemp.&lt;/P&gt;&lt;P&gt;wa_lipstemp-vbeln = wa_mkpf-xblnr.&lt;/P&gt;&lt;P&gt;APPEND wa_lipstemp TO i_lipstemp.&lt;/P&gt;&lt;P&gt;CLEAR wa_mkpf.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT i_lipstemp[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SORT i_lipstemp BY vbeln.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM i_lipstemp COMPARING vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;matnr&lt;/P&gt;&lt;P&gt;FROM lips&lt;/P&gt;&lt;P&gt;INTO TABLE t_lips&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN t_lipstemp&lt;/P&gt;&lt;P&gt;WHERE vbeln EQ t_lipstemp-vbeln.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2008 11:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3568220#M858761</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-03-16T11:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select  statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3568221#M858762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln posnr matnr FROM lips INTO TABLE t_lips&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN t_mkpf&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE vbeln EQ t_mkpf-xblnr+0(10).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cordialement,&lt;/P&gt;&lt;P&gt;Chaouki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2008 14:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/3568221#M858762</guid>
      <dc:creator>chaouki_akir</dc:creator>
      <dc:date>2008-03-16T14:14:24Z</dc:date>
    </item>
  </channel>
</rss>

