<?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: Where's the syntax error exist? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2638004#M607083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check whether ur internal table is with or with out heder line.  if it is with out header line then ur syntax is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n try like this&lt;/P&gt;&lt;P&gt;DELETE TABLE &amp;lt;itab&amp;gt; WITH TABLE KEY &amp;lt;k1&amp;gt; = &amp;lt;f 1&amp;gt; ... &amp;lt;k n&amp;gt; = &amp;lt;f n&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:DELETE ITAB_YMIT00100 FROM [WORKAREA] WITH KEY SOBKZ IN (' ','K').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when it is with header line then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:DELETE ITAB_YMIT00100 WITH KEY SOBKZ IN (' ','K').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF HELPFUL REWARD SOME POINTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH REGARDS,&lt;/P&gt;&lt;P&gt;suresh aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2007 05:03:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-26T05:03:28Z</dc:date>
    <item>
      <title>Where's the syntax error exist?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2637999#M607078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following statement exists an error:&lt;/P&gt;&lt;P&gt;DELETE ITAB_YMIT00100 WHERE SOBKZ  IN (' ','K').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Message:&lt;/P&gt;&lt;P&gt;Comma without preceding colon(after DELETE?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the above error, I do not know why?&lt;/P&gt;&lt;P&gt;So I have to change the statement and pass debug.&lt;/P&gt;&lt;P&gt;DELETE ITAB_YMIT00100 WHERE SOBKZ = ' ' OR SOBKZ = 'K'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 02:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2637999#M607078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T02:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Where's the syntax error exist?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2638000#M607079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In DELETE statement's WHERE you cannot use this form of IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you need to do is create RANGE object, similar to select-options. Then you can use it in .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: range_sobkz type tange of sobkz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;range_sobkz-low = ' '.&lt;/P&gt;&lt;P&gt;append range_sobkz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;range-sobkz-low = 'K'.&lt;/P&gt;&lt;P&gt;append range_sobkz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use&lt;/P&gt;&lt;P&gt;DELETE ITAB_YMIT00100 WHERE SOBKZ IN range_sobkz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 02:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2638000#M607079</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-26T02:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Where's the syntax error exist?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2638001#M607080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Basically SAP doesnt support first syntax.&lt;/P&gt;&lt;P&gt;Basic syntax for delete is &lt;/P&gt;&lt;P&gt;DELETE TABLE &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;DELETE TABLE &amp;lt;itab&amp;gt; WITH TABLE KEY &amp;lt;k1&amp;gt; = &amp;lt;f 1&amp;gt; ... &amp;lt;k n&amp;gt; = &amp;lt;f n&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can write 'IN' in select statement like,&lt;/P&gt;&lt;P&gt;select * from ... where a in (...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 03:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2638001#M607080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T03:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Where's the syntax error exist?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2638002#M607081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DELETE ITAB_YMIT00100 WHERE &amp;lt;b&amp;gt;SOBKZ  =  '  '  OR  SOBKZ  =  'K'&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement is correct and only thing is you should give space in between them then you will get tha desired result .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It usefull .&lt;/P&gt;&lt;P&gt;if it is usefull reward pionts.&lt;/P&gt;&lt;P&gt;khalid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 04:57:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2638002#M607081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T04:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Where's the syntax error exist?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2638003#M607082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 05:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2638003#M607082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T05:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Where's the syntax error exist?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2638004#M607083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check whether ur internal table is with or with out heder line.  if it is with out header line then ur syntax is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n try like this&lt;/P&gt;&lt;P&gt;DELETE TABLE &amp;lt;itab&amp;gt; WITH TABLE KEY &amp;lt;k1&amp;gt; = &amp;lt;f 1&amp;gt; ... &amp;lt;k n&amp;gt; = &amp;lt;f n&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:DELETE ITAB_YMIT00100 FROM [WORKAREA] WITH KEY SOBKZ IN (' ','K').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when it is with header line then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:DELETE ITAB_YMIT00100 WITH KEY SOBKZ IN (' ','K').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF HELPFUL REWARD SOME POINTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH REGARDS,&lt;/P&gt;&lt;P&gt;suresh aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 05:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-s-the-syntax-error-exist/m-p/2638004#M607083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T05:03:28Z</dc:date>
    </item>
  </channel>
</rss>

