<?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: Execute ABAP command from string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-abap-command-from-string/m-p/5620373#M1280273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might get there by generating a dynamic, temporary program using the ABAP statement GENERATE SUBROUTINE POOL (see online help).&lt;/P&gt;&lt;P&gt;You will have to add data declarations to make an executable subroutine out of these calculations, which will return the final result to the calling program.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. you should make sure that the table holding the ABAP code does not contain malicious statements like "DELETE FROM BSEG WHERE..." or similar &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2009 14:14:14 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2009-05-04T14:14:14Z</dc:date>
    <item>
      <title>Execute ABAP command from string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-abap-command-from-string/m-p/5620372#M1280272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAP experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to generate a file with a o lot of fields that are calculated from other fields. I have a list to detailed each rule.&lt;/P&gt;&lt;P&gt;For example : field 09 = field 05+ field 06+ field 07+ field 08&lt;/P&gt;&lt;P&gt;                     field 15 = (field 05+ field 06) * 0.15 &lt;/P&gt;&lt;P&gt;                     ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to stored the description of each rule in a table in order not to hard code these rules in the program. As the rules are dirfferents, I thought that the best solution was to write directly the ABAP code for the calculation in an external table &lt;STRONG&gt;z_table&lt;/STRONG&gt; like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Field                Instruction
f_09                 f_09 = f_05 + f_06 + f_07 + f_08
f_15                 f_15 = (f_05 + f_06) * 0.15
... &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ask me if it is then possible to execute the content of the string z_table-instruction ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope to be clear. don't hesitate to ask me question if I am unclear.&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 13:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-abap-command-from-string/m-p/5620372#M1280272</guid>
      <dc:creator>cline_jomard-ek</dc:creator>
      <dc:date>2009-05-04T13:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Execute ABAP command from string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-abap-command-from-string/m-p/5620373#M1280273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might get there by generating a dynamic, temporary program using the ABAP statement GENERATE SUBROUTINE POOL (see online help).&lt;/P&gt;&lt;P&gt;You will have to add data declarations to make an executable subroutine out of these calculations, which will return the final result to the calling program.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. you should make sure that the table holding the ABAP code does not contain malicious statements like "DELETE FROM BSEG WHERE..." or similar &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 14:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-abap-command-from-string/m-p/5620373#M1280273</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-05-04T14:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Execute ABAP command from string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-abap-command-from-string/m-p/5620374#M1280274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't need anymore the solution for this.&lt;/P&gt;&lt;P&gt;I used another way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 16:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-abap-command-from-string/m-p/5620374#M1280274</guid>
      <dc:creator>cline_jomard-ek</dc:creator>
      <dc:date>2010-01-19T16:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Execute ABAP command from string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-abap-command-from-string/m-p/5620375#M1280275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please tell us the solution you used or the way you found to solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matías.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 16:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-abap-command-from-string/m-p/5620375#M1280275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T16:41:48Z</dc:date>
    </item>
  </channel>
</rss>

