<?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 How to execute code saved in string variable?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-code-saved-in-string-variable/m-p/3369556#M808764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to execute a select which I obtain concatenating several fields into string variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the select is saved in a string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var  = 'select... from ... where...'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is any way to execute that select? ("exec var." or similar??)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 15:59:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-29T15:59:11Z</dc:date>
    <item>
      <title>How to execute code saved in string variable??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-code-saved-in-string-variable/m-p/3369556#M808764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to execute a select which I obtain concatenating several fields into string variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the select is saved in a string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var  = 'select... from ... where...'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is any way to execute that select? ("exec var." or similar??)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 15:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-code-saved-in-string-variable/m-p/3369556#M808764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T15:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute code saved in string variable??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-code-saved-in-string-variable/m-p/3369557#M808765</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;create the select statement in a generated subroutine and pass the values for select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search for  " Dynamic select:  in the forum...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 17:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-code-saved-in-string-variable/m-p/3369557#M808765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T17:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute code saved in string variable??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-code-saved-in-string-variable/m-p/3369558#M808766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Illie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it not be possible to use a simple dynamic SELECT, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  ldo_data   TYPE REF TO data.

FIELD-SYMBOLS:
  &amp;lt;lt_itab&amp;gt;  TYPE TABLE.


CREATE DATA ldo_data TYPE TABLE OF (ld_tabname).
ASSIGN ldo_data-&amp;gt;* TO &amp;lt;lt_itab&amp;gt;.

SELECT * from (ld_tabname) INTO TABLE &amp;lt;lt_itab&amp;gt;
   WHERE (ld_clause_string).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 23:00:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-code-saved-in-string-variable/m-p/3369558#M808766</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-01-29T23:00:33Z</dc:date>
    </item>
  </channel>
</rss>

