<?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 to execute an ABAP dynamically? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823988#M1956122</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;you can create a report using ABAP keyword INSERT REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can call fm RFC_GENERATE_REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that you can SUBMIT this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can also create the main report with an include. insert only the include report, generate the main report and submit 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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 07:21:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-07-27T07:21:32Z</dc:date>
    <item>
      <title>How to execute an ABAP dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823985#M1956119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;How to execute an ABAP code directly within the ABAP code[transport]?&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I have to inject the ABAP code in the run-time to transport and has to execute it.&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I am not looking for SUBMIT, CALL, PERFORM as this is not solving my use case.&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Sample : &lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; ABAPFunction (write:/ 'Hello World')&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Thanks&lt;/P&gt;&lt;P style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 12:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823985#M1956119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-25T12:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute an ABAP dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823986#M1956120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to explain your requirement further. What do you mean by: &lt;SPAN style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;inject the ABAP code in the run-time to transport?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, check if this document helps your requirement: &lt;A __default_attr="143849" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="XPRA - Execute ABAP Program Automatically After Transport Request Import" href="https://community.sap.com/"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 12:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823986#M1956120</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-07-25T12:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute an ABAP dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823987#M1956121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My application uses JCO library to interact with SAP. &lt;SPAN style="font-size: 10pt;"&gt;Currently we install a program on SAP box and we call it at the runtime using JAVA interface. We take input of ABAP code from our customer and pass on to SAP using the JAVA interface (SAP JCO). Then we embed the already installed function module.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now, we cannot install the program on the SAP side and embed the user ABAP code. So we want to dynamically pass the ABAP code at the SAP side and execute it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:09:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823987#M1956121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-27T07:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute an ABAP dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823988#M1956122</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;you can create a report using ABAP keyword INSERT REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can call fm RFC_GENERATE_REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that you can SUBMIT this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can also create the main report with an include. insert only the include report, generate the main report and submit 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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823988#M1956122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-27T07:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute an ABAP dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823989#M1956123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that should help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/abapdocu_70/en/ABAPINSERT_REPORT.htm" title="https://help.sap.com/abapdocu_70/en/ABAPINSERT_REPORT.htm"&gt;https://help.sap.com/abapdocu_70/en/ABAPINSERT_REPORT.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;REPORT ZTMP_R_DYN_GEN.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DATA lt_source TYPE stringtab.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;APPEND 'REPORT ZTMP_R_REPORT.' TO lt_source[].&lt;/P&gt;
&lt;P&gt;APPEND 'WRITE ''TEST REPORT''.' TO lt_source[].&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;INSERT REPORT 'ZTMP_R_REPORT' FROM lt_source[].&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;SUBMIT ztmp_r_report.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 07:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823989#M1956123</guid>
      <dc:creator>ziolkowskib</dc:creator>
      <dc:date>2016-07-27T07:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute an ABAP dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823990#M1956124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me tell you, whoever designed this solution is trying to push you into hell. If you were in my company, you will never pass audit. What you are designing puts untested code into production system, which can potentially even damage system configuration and steal critical data. &lt;SPAN style="font-size: 10pt;"&gt;(Read: &lt;/SPAN&gt;&lt;A href="https://en.wikipedia.org/wiki/Code_injection" style="font-size: 10pt;" title="https://en.wikipedia.org/wiki/Code_injection"&gt;Code injection&lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, in a controlled fashion, this is possible in SAP (Read: &lt;A href="https://help.sap.com/abapdocu_70/en/ABAPGENERATE_SUBROUTINE_POOL.htm" title="https://help.sap.com/abapdocu_70/en/ABAPGENERATE_SUBROUTINE_POOL.htm"&gt;GENERATE SUBROUTINE POOL&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 13:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-an-abap-dynamically/m-p/11823990#M1956124</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-07-27T13:14:47Z</dc:date>
    </item>
  </channel>
</rss>

