<?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: how can i write the bellow code using field symbols in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-write-the-bellow-code-using-field-symbols/m-p/4483516#M1061447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2008 14:05:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-15T14:05:59Z</dc:date>
    <item>
      <title>how can i write the bellow code using field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-write-the-bellow-code-using-field-symbols/m-p/4483513#M1061444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : it_mara type table of mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara&lt;/P&gt;&lt;P&gt;            into it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete it_mara where matnr = '100-100'&lt;/P&gt;&lt;P&gt;                         and meins = 'KG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i do the same by using field symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting data into &amp;lt;it_mara&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but &lt;/P&gt;&lt;P&gt;delete &amp;lt;it_mara&amp;gt;  where matnr = '100-100'&lt;/P&gt;&lt;P&gt;                           and    meins = 'KG'.&lt;/P&gt;&lt;P&gt;is showing syntax error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to correct the error ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 13:06:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-write-the-bellow-code-using-field-symbols/m-p/4483513#M1061444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T13:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: how can i write the bellow code using field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-write-the-bellow-code-using-field-symbols/m-p/4483514#M1061445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : it_mara type table of mara.
types: t_mara type standard table of mara.
field-symbols: &amp;lt;it_mara&amp;gt; type t_mara.

select * from mara
into table it_mara.

assign it_mara to &amp;lt;it_mara&amp;gt;.

 
delete &amp;lt;it_mara&amp;gt; where matnr = '100-100'
and meins = 'KG'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 13:09:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-write-the-bellow-code-using-field-symbols/m-p/4483514#M1061445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T13:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: how can i write the bellow code using field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-write-the-bellow-code-using-field-symbols/m-p/4483515#M1061446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think, DELETE does not allows to dynamically define the logical expression for the WHERE clausule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried by filtering data in SELECT statement??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if dataBase = 'MARA'.
append 'MATNR &amp;lt;&amp;gt; '100-100'' to Itab_Where[].
append 'AND MEINS &amp;lt;&amp;gt; 'KG'' to Itab_Where[].
endIf.
...
select * from (dataBase) where (Itab_Where) into table &amp;lt;my_table&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is possible, but I don't know if this fits your requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 13:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-write-the-bellow-code-using-field-symbols/m-p/4483515#M1061446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T13:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: how can i write the bellow code using field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-write-the-bellow-code-using-field-symbols/m-p/4483516#M1061447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 14:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-can-i-write-the-bellow-code-using-field-symbols/m-p/4483516#M1061447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T14:05:59Z</dc:date>
    </item>
  </channel>
</rss>

