<?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: Transient programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transient-programs/m-p/6672348#M1448199</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;&lt;/P&gt;&lt;P&gt;Transient programs are mainly used when you don't know the exact program or table structure until run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you created one dynamic internal table and you want to delete the table records based on one field which is created in run time. Here you don't know the field name..In this you need t write the transient programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GENERATE SUBROUTINE POOL source_code NAME run_time_prog_name MESSAGE msg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing : You can create more than &lt;STRONG&gt;36&lt;/STRONG&gt; transient program at one instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subhankar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Subhankar Garani on Feb 23, 2010 8:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2010 07:16:15 GMT</pubDate>
    <dc:creator>Subhankar</dc:creator>
    <dc:date>2010-02-23T07:16:15Z</dc:date>
    <item>
      <title>Transient programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transient-programs/m-p/6672346#M1448197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone of you please explain me the concept and real life usage of transient programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does transient programs affect memory consumption?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&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;Prosenjit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 06:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transient-programs/m-p/6672346#M1448197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T06:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transient programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transient-programs/m-p/6672347#M1448198</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;I will list some important features of transient programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are used when,&lt;/P&gt;&lt;P&gt;1. &lt;/P&gt;&lt;P&gt;Frequent change of dynamic input data&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;code generation of a subroutine pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and only accessible in internal mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to generate transient program &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: code TYPE TABLE OF string,
prog TYPE program,
msg(120) TYPE c,
lin(10) TYPE c,
wrd(10) TYPE c,
off(3) TYPE c.
APPEND 'PROGRAM SUBPOOL.' TO code.
APPEND 'FORM DYN1.' TO code.
APPEND 'WRITE / ''Hello, I am a temporary subroutine!''.' TO code.
APPEND 'ENDFORM.' TO code.
GENERATE SUBROUTINE POOL code NAME prog MESSAGE msg
LINE lin WORD wrd OFFSET off.
IF sy-subrc &amp;lt;&amp;gt; 0.
WRITE: / 'Error during generation in line', lin,
/ msg, / 'Word:', wrd, 'at offset', off.
ENDIF.
PERFORM dyn1 IN PROGRAM (prog).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer ABAP 351 for more details .. &lt;/P&gt;&lt;P&gt;hope this information helps ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 06:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transient-programs/m-p/6672347#M1448198</guid>
      <dc:creator>manthanraja</dc:creator>
      <dc:date>2010-02-23T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Transient programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transient-programs/m-p/6672348#M1448199</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;&lt;/P&gt;&lt;P&gt;Transient programs are mainly used when you don't know the exact program or table structure until run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you created one dynamic internal table and you want to delete the table records based on one field which is created in run time. Here you don't know the field name..In this you need t write the transient programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GENERATE SUBROUTINE POOL source_code NAME run_time_prog_name MESSAGE msg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing : You can create more than &lt;STRONG&gt;36&lt;/STRONG&gt; transient program at one instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subhankar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Subhankar Garani on Feb 23, 2010 8:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 07:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transient-programs/m-p/6672348#M1448199</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2010-02-23T07:16:15Z</dc:date>
    </item>
  </channel>
</rss>

