<?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: validate my select stmt please in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638854#M1092042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove that space check from where condition. after the select delete if you want&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * " kunnr name2 j_3astcu
FROM kna1
INTO corresponding fields of TABLE gt_kna1
FOR ALL ENTRIES IN gt_soldto1
WHERE ( name2 LIKE 'Store#%'
OR name2 LIKE 'Store%' )
OR  j_3astcu = gt_soldto1-store_no 
OR LAND1 = 'US'.
if sy-subrc eq 0,
 delete gt_kna1 where j_3astcu = ''.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2008 03:20:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-17T03:20:28Z</dc:date>
    <item>
      <title>validate my select stmt please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638850#M1092038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my below select stmt,&lt;/P&gt;&lt;P&gt;I don't want to select when j_3astcu  is SPACE&lt;/P&gt;&lt;P&gt;I mean when gt_soldto1-store_no is SPACE i don't want that value to be selected ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I apply this logic below ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT gt_soldto1[] IS INITIAL.&lt;/P&gt;&lt;P&gt;       SELECT *                " kunnr name2 j_3astcu&lt;/P&gt;&lt;P&gt;         FROM kna1&lt;/P&gt;&lt;P&gt;         INTO corresponding fields of TABLE gt_kna1&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN gt_soldto1&lt;/P&gt;&lt;P&gt;        WHERE ( name2   LIKE 'Store#%'&lt;/P&gt;&lt;P&gt;        OR      name2   LIKE 'Store%' )&lt;/P&gt;&lt;P&gt;        OR   ( j_3astcu  &amp;lt;&amp;gt; SPACE&lt;/P&gt;&lt;P&gt;        AND    j_3astcu  = gt_soldto1-store_no )&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    AND   LAND1     = 'US'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        OR   LAND1     = 'US'.&lt;/P&gt;&lt;P&gt;     ENDIF.   "   IF NOT gt_soldto[] IS INITIAL.&lt;/P&gt;&lt;P&gt;HELP ME PLEASE. &lt;/P&gt;&lt;P&gt;THANKS IN ADV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 01:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638850#M1092038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T01:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: validate my select stmt please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638851#M1092039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the follwoing in where  as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; *j_3astcu &lt;STRONG&gt;NE SPACE&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND j_3astcu = gt_soldto1-store_no )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rest in where condition you know better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 01:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638851#M1092039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T01:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: validate my select stmt please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638852#M1092040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used &lt;/P&gt;&lt;P&gt;OR ( j_3astcu  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;NE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; SPACE&lt;/P&gt;&lt;P&gt;but it is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 02:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638852#M1092040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T02:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: validate my select stmt please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638853#M1092041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why you have  'OR' in the where condition? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;paste your statement again, and tell what you want to do with that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 02:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638853#M1092041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T02:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: validate my select stmt please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638854#M1092042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove that space check from where condition. after the select delete if you want&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * " kunnr name2 j_3astcu
FROM kna1
INTO corresponding fields of TABLE gt_kna1
FOR ALL ENTRIES IN gt_soldto1
WHERE ( name2 LIKE 'Store#%'
OR name2 LIKE 'Store%' )
OR  j_3astcu = gt_soldto1-store_no 
OR LAND1 = 'US'.
if sy-subrc eq 0,
 delete gt_kna1 where j_3astcu = ''.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 03:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638854#M1092042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T03:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: validate my select stmt please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638855#M1092043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will the below stmt helps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * " kunnr name2 j_3astcu&lt;/P&gt;&lt;P&gt;FROM kna1&lt;/P&gt;&lt;P&gt;INTO corresponding fields of TABLE gt_kna1&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_soldto1&lt;/P&gt;&lt;P&gt;WHERE ( name2 LIKE 'Store#%'&lt;/P&gt;&lt;P&gt;OR name2 LIKE 'Store%' )&lt;/P&gt;&lt;P&gt;OR  (   j_3astcu  NE SPACE&lt;/P&gt;&lt;P&gt;AND  j_3astcu = gt_soldto1-store_no )&lt;/P&gt;&lt;P&gt;OR LAND1 = 'US'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;(   j_3astcu  NE SPACE
AND  j_3astcu = gt_soldto1-store_no )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of deleting ?&lt;/P&gt;&lt;P&gt;Sorry .&lt;/P&gt;&lt;P&gt;THANKS IN ADV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 02:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638855#M1092043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T02:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: validate my select stmt please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638856#M1092044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
" OR condition will help you..? i am doubtful. if it true or false , it will select the record
OR ( j_3astcu NE SPACE
AND j_3astcu = gt_soldto1-store_no )&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 03:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-my-select-stmt-please/m-p/4638856#M1092044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T03:39:41Z</dc:date>
    </item>
  </channel>
</rss>

