<?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: Syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/7104913#M1509000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can you please provide the SYNTAX ERROR message you are geting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jul 2010 04:32:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-23T04:32:25Z</dc:date>
    <item>
      <title>Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/7104911#M1508998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Please correct the following syntax:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;delete lt_cdpos where (TABNAME NE 'ANLC') 
AND (FNAME NOT IN('ANLN1','BUKRS','ANLKL','TXT50','TXA50','SERNR','AKTIV','KOSTL',
'GSBER','PRCTR','INVZU','ANLUE','STORT','ORD41','AIBN1',
'ZZIVNR','ZZLCL','DEAKT','ZZPRT','ZZODNR','XSTIL','AFABE','AFABG',
'NDJAR','NDPER','AFASL','INVNR','IVDAT','HERST','ZZCONTRACT','XLOEV','SCHRW','MENGE','POSNR2')).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_cdpos is the internal table and i want all the records &lt;/P&gt;&lt;P&gt;where either tabname = ANLC or FNAME = all the values mentioned above. &lt;/P&gt;&lt;P&gt;I was wanting to delte the records where this condition is not satisfied, but it is giving me syntax error. Please rectify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do not offer rewards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jul 22, 2010 3:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 18:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/7104911#M1508998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-22T18:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/7104912#M1508999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NOT IN doesn't work in DELETE statements...use  AND FNAME NE 'NNNN' for each value!  Looks like we selected WAY too much data from CDPOS...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 19:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/7104912#M1508999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-22T19:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/7104913#M1509000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can you please provide the SYNTAX ERROR message you are geting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 04:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/7104913#M1509000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-23T04:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/7104914#M1509001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Try your logic like the below code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data : t_rseg TYPE STANDARD TABLE OF rseg.

data  w_belnr TYPE belnr_d.

RAnges : r_belnr FOR w_belnr.

delete t_rseg where gjahr NE '2009' 
AND belnr NOT IN r_belnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 04:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/7104914#M1509001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-23T04:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/7104915#M1509002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fill the ranges table &amp;amp; use the range table to delete the data: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: it_cdpos TYPE STANDARD TABLE OF cdpos,
      r_delete TYPE RANGE OF fieldname,
      wa_delete LIKE LINE OF r_delete.

PERFORM f_fill_range USING:
'ANLN1','BUKRS','ANLKL','TXT50','TXA50','SERNR',
'AKTIV','KOSTL','GSBER','PRCTR','INVZU','ANLUE','STORT','ORD41','AIBN1',
'ZZIVNR','ZZLCL','DEAKT','ZZPRT','ZZODNR','XSTIL','AFABE','AFABG',
'NDJAR','NDPER','AFASL','INVNR','IVDAT','HERST','ZZCONTRACT','XLOEV',
'SCHRW','MENGE','POSNR2'.

DELETE it_cdpos WHERE tabname NE 'ANLC' AND fname NOT IN r_delete.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  F_FILL_RANGE
*&amp;amp;---------------------------------------------------------------------*
FORM f_fill_range USING ip_field TYPE fieldname.

  wa_delete-sign = 'I'.
  wa_delete-option = 'EQ'.
  wa_delete-low = ip_field.
  APPEND wa_delete TO r_delete.
  CLEAR wa_delete.

ENDFORM.                    "F_FILL_RANGE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 04:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/7104915#M1509002</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-07-23T04:58:06Z</dc:date>
    </item>
  </channel>
</rss>

