<?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 Warning when selecting from RESB in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-when-selecting-from-resb/m-p/1877171#M368730</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;Below query is giving a warning while doing a syntax check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM RESB WHERE RSNUM = CAUFV-RSNUM &lt;/P&gt;&lt;P&gt;AND NO_DISP = SPACE &lt;/P&gt;&lt;P&gt;AND FLGEX NE SPACE &lt;/P&gt;&lt;P&gt;OR DBSKZ = 'F'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warning : The field "FLGEX" used in the WHERE condition may contain NULL values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This warning appears for all selects on RESB table that is an indexed table where selects are done based on AUFPL or APLZL or VORNR or FLGEX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If only the key fields are used no warning appears and also, the other fields in the above select NO_DISP and DBSKZ give no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They have a customixed secondary index on this table, non unique for columns MANDT and AUFPL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also another INDEX which i think is standard. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just need your help to find out why this warning appears and is there any solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raghunahth L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 08:21:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-10T08:21:23Z</dc:date>
    <item>
      <title>Warning when selecting from RESB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-when-selecting-from-resb/m-p/1877171#M368730</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;Below query is giving a warning while doing a syntax check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM RESB WHERE RSNUM = CAUFV-RSNUM &lt;/P&gt;&lt;P&gt;AND NO_DISP = SPACE &lt;/P&gt;&lt;P&gt;AND FLGEX NE SPACE &lt;/P&gt;&lt;P&gt;OR DBSKZ = 'F'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warning : The field "FLGEX" used in the WHERE condition may contain NULL values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This warning appears for all selects on RESB table that is an indexed table where selects are done based on AUFPL or APLZL or VORNR or FLGEX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If only the key fields are used no warning appears and also, the other fields in the above select NO_DISP and DBSKZ give no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They have a customixed secondary index on this table, non unique for columns MANDT and AUFPL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also another INDEX which i think is standard. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just need your help to find out why this warning appears and is there any solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raghunahth L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-when-selecting-from-resb/m-p/1877171#M368730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T08:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Warning when selecting from RESB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/warning-when-selecting-from-resb/m-p/1877172#M368731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  L Raghunahth  ,&lt;/P&gt;&lt;P&gt;                             See in your select statement....i made a chege it may works...&lt;/P&gt;&lt;P&gt;use single codes ( ' ' )then space  for check for blank in that field...and in WHERE (RSNUM = CAUFV-RSNUM) before that user Inner join for CAUFV table...it may also cause a problem.&lt;/P&gt;&lt;P&gt;like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM RESB INNER JOIN CAUFV ON&lt;/P&gt;&lt;P&gt;RESB&lt;SUB&gt;RSNUM = CAUFV&lt;/SUB&gt;RSNUM&lt;/P&gt;&lt;P&gt; WHERE RSNUM = CAUFV-RSNUM&lt;/P&gt;&lt;P&gt;AND NO_DISP = ' '&lt;/P&gt;&lt;P&gt;AND FLGEX NE ' '&lt;/P&gt;&lt;P&gt;OR DBSKZ = 'F'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;or go for this Statement  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;SELECT * FROM RESB WHERE RSNUM = CAUFV-RSNUM&lt;/P&gt;&lt;P&gt;AND NO_DISP = ' '&lt;/P&gt;&lt;P&gt;AND FLGEX NE ' '&lt;/P&gt;&lt;P&gt;OR DBSKZ = 'F'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Souman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Souman Halder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 09:40:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/warning-when-selecting-from-resb/m-p/1877172#M368731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T09:40:08Z</dc:date>
    </item>
  </channel>
</rss>

