<?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: Help in updating different programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590978#M265947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I set this code up to select from TRDIR where SUBC = 1 (executable program).  I suspect you could do the same for SUBC = M (module pool).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question would be whether or not the INSERT or GENERATE statements worked for other program types.  I haven't tried it for anything other than basic executable reports, but I don't see why it wouldn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per Rich's comment, I would highly recommend you add checks to prevent running with no select-option populated and to prevent updating of non-custom code.  Also, consider adding some audit reporting of objects maintained in case you need to undo an update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Michael Malvey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2006 19:01:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-26T19:01:14Z</dc:date>
    <item>
      <title>Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590968#M265937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I update lots of program in once without having to enter one by one to modidy and activate them? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, If I have to insert one line of code after a Start of selection in different programs ? &lt;/P&gt;&lt;P&gt;I heard there is a way to do that. Does anybody knows? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advanced&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 15:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590968#M265937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T15:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590969#M265938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;From Se38 or se80  Goto menu Environment -&amp;gt; Inactive Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will display a list of objects. Click on programs and select multiple objects by holding shift.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After selecting activate them at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 15:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590969#M265938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T15:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590970#M265939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Imtiaz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your msg but actually what I need to know is not how to activate multiple programs in once.What I need to know is how can I insert the same line code (for example a select, update or delete) in multiple programs in once !? Without having to enter in each program ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you understand what I mean. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;Cristina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 15:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590970#M265939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T15:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590971#M265940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to do the below is to write an ABAP, whereby it reads the report in an internal table....change the internal table depending on your requirement...and insert it back to object repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ REPORT prog INTO itab.&lt;/P&gt;&lt;P&gt;Manipulate itab.&lt;/P&gt;&lt;P&gt;INSERT REPORT prog FROM itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is variation for state to activate and inactive the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 15:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590971#M265940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T15:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590972#M265941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: trdir.

data: begin of t_progs occurs 0,
        name like trdir-name,
      end of t_progs.

data: begin of t_code occurs 0,
        line(72),
      end of t_code.

data: l_line(72),
      l_idx type i.

select-options: s_rprt for trdir-name.

select name into table t_progs
  from trdir where name in s_rprt
               and subc = '1'.

loop at t_progs.
  read report t_progs-name into t_code.

  loop at t_code.

    if t_code-line cs 'start-of-selection'.
      concatenate '''' 'hello' '''' into l_line.
      concatenate 'write: /' l_line '.' into l_line
        separated by space.

      l_idx = sy-tabix + 1.
      insert l_line into t_code index l_idx.
    endif.
  endloop.

  insert report t_progs-name from t_code.
  clear t_code.
  refresh t_code.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 15:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590972#M265941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T15:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590973#M265942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the code. It solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anurag and Imtiaz, thank you both also for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;Cristina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 16:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590973#M265942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T16:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590974#M265943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im sorry Michael, I still have one doubt: after updating hundreds of program this way, how can I automactly activate them in once ?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;Cristina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 18:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590974#M265943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T18:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590975#M265944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would activate them one at a time in the program.  You should be able to use the command GENERATE REPORT to force an activation.  Use the MESSAGE addition to capture any activation errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I used it to update a couple of test programs, I noticed they were still activated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 18:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590975#M265944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T18:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590976#M265945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michale&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again. Do you know if this code also works  for module pool programs ? Because I tried already wiht no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 18:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590976#M265945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T18:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590977#M265946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please be careful, the INSERT REPORT statement is an internal statement, and will not be supported by SAP.  So if you screw up your system, don't plan on getting any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 18:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590977#M265946</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-26T18:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590978#M265947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I set this code up to select from TRDIR where SUBC = 1 (executable program).  I suspect you could do the same for SUBC = M (module pool).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question would be whether or not the INSERT or GENERATE statements worked for other program types.  I haven't tried it for anything other than basic executable reports, but I don't see why it wouldn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per Rich's comment, I would highly recommend you add checks to prevent running with no select-option populated and to prevent updating of non-custom code.  Also, consider adding some audit reporting of objects maintained in case you need to undo an update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Michael Malvey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 19:01:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590978#M265947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T19:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590979#M265948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the warning, at the moment we are just testing how it works and we are planning to update only programs customized for ourselves. &lt;/P&gt;&lt;P&gt;Many thanks anyway.&lt;/P&gt;&lt;P&gt;Br.&lt;/P&gt;&lt;P&gt;Cristina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 19:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590979#M265948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T19:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help in updating different programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590980#M265949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check out function module RPY_PROGRAM_INSERT,  this will give you an idea of the bases that need to be covered.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 19:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-updating-different-programs/m-p/1590980#M265949</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-26T19:24:30Z</dc:date>
    </item>
  </channel>
</rss>

