<?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: Export Source Code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-source-code/m-p/3421156#M821633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;saving it in a package will ensure that you have a backup if something happens to the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however if something happens to the server, then both the copies will be lost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a more complete approach would be to save it in a request, release the request and take the generated files with you (keep it on your personal PC for example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. go to tcode se80 and create a package&lt;/P&gt;&lt;P&gt;2. when it prompts to save create a new request and save this number&lt;/P&gt;&lt;P&gt;3. enter description and click on save and then ok&lt;/P&gt;&lt;P&gt;4. now go to se38 and create your program (or use the one you wish to backup) and assign the package created above and put the same request number&lt;/P&gt;&lt;P&gt;5. if the program already exists and is assigned to a local object/different package, then follow the path &amp;#147;goto-&amp;gt; object directory entry&amp;#148; and put the above created package and request number&lt;/P&gt;&lt;P&gt;6. go to tcode se09 and make sure that &amp;#147;modifiable and released&amp;#148; are checked and click on display&lt;/P&gt;&lt;P&gt;7. Do the syntax check and consistency checks on the requests and release&lt;/P&gt;&lt;P&gt;8. go to tcode cg3y and download the data and CO files to your local pc from the following paths.&lt;/P&gt;&lt;P&gt;--&amp;gt; Data: E:\usr\sap\trans\data\R903789.IEC&lt;/P&gt;&lt;P&gt;--&amp;gt; CO: E:\usr\sap\trans\cofiles\K903789.IEC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure that your request is not a local request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie: when the request is filled, the 'Target' field should be filled&lt;/P&gt;&lt;P&gt;If the search help does not return any results, you will need to contact your Basis team to allow you to create such a request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the name I gave in the previous post was just an example&lt;/P&gt;&lt;P&gt;the format is...&lt;/P&gt;&lt;P&gt;Data file -&amp;gt; R&amp;lt;request number&amp;gt;.&amp;lt;system id&amp;gt;&lt;/P&gt;&lt;P&gt;Co file -&amp;gt; K&amp;lt;request number&amp;gt;.&amp;lt;system id&amp;gt;&lt;/P&gt;&lt;P&gt;This is for importing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. Go to the Sever in which the request is to be imported&lt;/P&gt;&lt;P&gt;10. Go to transaction CG3Z and upload the data and co files to the respective folders on that server&lt;/P&gt;&lt;P&gt;11. Go to transaction STMS&lt;/P&gt;&lt;P&gt;12. Go to Overview -&amp;gt; Imports &lt;/P&gt;&lt;P&gt;13. Double click on the system (eg: CE6) &amp;lt;-- your sysid&lt;/P&gt;&lt;P&gt;14. Go to Extras -&amp;gt; Other Requests -&amp;gt; Add&lt;/P&gt;&lt;P&gt;15. Choose the request number (which will be the same as the one you created in the old server) and click on Ok&lt;/P&gt;&lt;P&gt;16. If a similar message is displayed as follows, click on &amp;#145;Yes&amp;#146;&lt;/P&gt;&lt;P&gt;&amp;#145;Transport request IECK903 attach to import queue CE6&amp;#146; &lt;/P&gt;&lt;P&gt;17. Your request number will get added to the list&lt;/P&gt;&lt;P&gt;18. Select it and go to Request -&amp;gt; Import&lt;/P&gt;&lt;P&gt;19. Choose your client (same as client on the current server) (you can fiddle with other options in the Options tab&lt;/P&gt;&lt;P&gt;20. Click on Ok and if a similar message is shown as follows, click on Yes&lt;/P&gt;&lt;P&gt;The import is being executed with the following options&lt;/P&gt;&lt;P&gt;Asynchronous:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leave transport request in queue &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import transport request IECK903789 into system CE6&lt;/P&gt;&lt;P&gt;client 100?&lt;/P&gt;&lt;P&gt;21. A &amp;#145;Truck&amp;#146; symbol will be shown in the Status column&lt;/P&gt;&lt;P&gt;22. Click on Refresh till the truck changes to a yellow triangle&lt;/P&gt;&lt;P&gt;23. Right click on the request and click on logs to view any errors or messages&lt;/P&gt;&lt;P&gt;24. If no errors then transport is successful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 09:13:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T09:13:36Z</dc:date>
    <item>
      <title>Export Source Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-source-code/m-p/3421153#M821630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I'm new in ABAP development.  What is the fastest way to save the ABAP program source code??  Most of my program has dependency with other.  I don't want to export it one by one in ABAP editor.  Any suggestion??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 08:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-source-code/m-p/3421153#M821630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T08:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export Source Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-source-code/m-p/3421154#M821631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try running this utility :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zaRs&lt;/P&gt;&lt;P&gt;   no standard page heading&lt;/P&gt;&lt;P&gt;   line-size  95 .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;perform f_get_pgm.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  if not i_include[] is initial.&lt;/P&gt;&lt;P&gt;    clear v_index.&lt;/P&gt;&lt;P&gt;    loop at i_include into wa_include&lt;/P&gt;&lt;P&gt;      clear   : i_pgm.&lt;/P&gt;&lt;P&gt;      refresh : i_pgm.&lt;/P&gt;&lt;P&gt;      read report wa_include-txt into i_pgm.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      v_date = sy-datum.&lt;/P&gt;&lt;P&gt;      v_time = sy-uzeit.&lt;/P&gt;&lt;P&gt;      concatenate 'C:\Backup_' v_date '_' v_time into v_file.&lt;/P&gt;&lt;P&gt;      call function 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          filename = v_file&lt;/P&gt;&lt;P&gt;          filetype = 'ASC'&lt;/P&gt;&lt;P&gt;          mode     = 'A'&lt;/P&gt;&lt;P&gt;        tables&lt;/P&gt;&lt;P&gt;          data_tab = i_pgm.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;form f_get_pgm.&lt;/P&gt;&lt;P&gt;  call function 'RFC_READ_REPORT'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      program = p_rname&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      qtab    = i_pgm.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  describe table i_pgm lines v_lines1.&lt;/P&gt;&lt;P&gt;  wa_include-txt = p_rname.&lt;/P&gt;&lt;P&gt;  append wa_include to i_include.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  if not i_pgm[] is initial.&lt;/P&gt;&lt;P&gt;    clear v_index.&lt;/P&gt;&lt;P&gt;    loop at i_pgm into wa_pgm.&lt;/P&gt;&lt;P&gt;      v_index = sy-tabix.&lt;/P&gt;&lt;P&gt;      translate wa_pgm to upper case.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      split wa_pgm-txt at '"' into wa_pgm-txt v_comment.&lt;/P&gt;&lt;P&gt;      if wa_pgm-txt(1) ne '*' and&lt;/P&gt;&lt;P&gt;          wa_pgm-txt cs 'INCLUDE'.&lt;/P&gt;&lt;P&gt;        replace '.' with space into wa_pgm-txt.&lt;/P&gt;&lt;P&gt;        condense wa_pgm-txt .&lt;/P&gt;&lt;P&gt;        split wa_pgm-txt at space into v_comment v_comment1.&lt;/P&gt;&lt;P&gt;        move v_comment1 to wa_include.&lt;/P&gt;&lt;P&gt;        append wa_include to i_include.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    message i001 with text-001.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear v_index.&lt;/P&gt;&lt;P&gt;  if not i_include[] is initial.&lt;/P&gt;&lt;P&gt;    loop at i_include into wa_include.&lt;/P&gt;&lt;P&gt;      v_index = sy-tabix.&lt;/P&gt;&lt;P&gt;      select obj_name from tadir&lt;/P&gt;&lt;P&gt;                             into tadir-obj_name&lt;/P&gt;&lt;P&gt;                             up to 1 rows&lt;/P&gt;&lt;P&gt;                             where obj_name eq  wa_include-txt&lt;/P&gt;&lt;P&gt;                             and   pgmid    eq 'R3TR'&lt;/P&gt;&lt;P&gt;                             and   object   eq 'PROG'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      endselect.&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;        delete i_include index v_index.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " f_get_pgm&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:07:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-source-code/m-p/3421154#M821631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export Source Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-source-code/m-p/3421155#M821632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess ABAP standard report RSINCL00 fits your needs. Just enter the name of your main program and mark &lt;STRONG&gt;all&lt;/STRONG&gt; check boxes including the check box entitles with "Output Source" and execute it. As a result you will see the complete source code of nearly every part of ABAP source included and used in the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points, if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-source-code/m-p/3421155#M821632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export Source Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-source-code/m-p/3421156#M821633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;saving it in a package will ensure that you have a backup if something happens to the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however if something happens to the server, then both the copies will be lost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a more complete approach would be to save it in a request, release the request and take the generated files with you (keep it on your personal PC for example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. go to tcode se80 and create a package&lt;/P&gt;&lt;P&gt;2. when it prompts to save create a new request and save this number&lt;/P&gt;&lt;P&gt;3. enter description and click on save and then ok&lt;/P&gt;&lt;P&gt;4. now go to se38 and create your program (or use the one you wish to backup) and assign the package created above and put the same request number&lt;/P&gt;&lt;P&gt;5. if the program already exists and is assigned to a local object/different package, then follow the path &amp;#147;goto-&amp;gt; object directory entry&amp;#148; and put the above created package and request number&lt;/P&gt;&lt;P&gt;6. go to tcode se09 and make sure that &amp;#147;modifiable and released&amp;#148; are checked and click on display&lt;/P&gt;&lt;P&gt;7. Do the syntax check and consistency checks on the requests and release&lt;/P&gt;&lt;P&gt;8. go to tcode cg3y and download the data and CO files to your local pc from the following paths.&lt;/P&gt;&lt;P&gt;--&amp;gt; Data: E:\usr\sap\trans\data\R903789.IEC&lt;/P&gt;&lt;P&gt;--&amp;gt; CO: E:\usr\sap\trans\cofiles\K903789.IEC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure that your request is not a local request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie: when the request is filled, the 'Target' field should be filled&lt;/P&gt;&lt;P&gt;If the search help does not return any results, you will need to contact your Basis team to allow you to create such a request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the name I gave in the previous post was just an example&lt;/P&gt;&lt;P&gt;the format is...&lt;/P&gt;&lt;P&gt;Data file -&amp;gt; R&amp;lt;request number&amp;gt;.&amp;lt;system id&amp;gt;&lt;/P&gt;&lt;P&gt;Co file -&amp;gt; K&amp;lt;request number&amp;gt;.&amp;lt;system id&amp;gt;&lt;/P&gt;&lt;P&gt;This is for importing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. Go to the Sever in which the request is to be imported&lt;/P&gt;&lt;P&gt;10. Go to transaction CG3Z and upload the data and co files to the respective folders on that server&lt;/P&gt;&lt;P&gt;11. Go to transaction STMS&lt;/P&gt;&lt;P&gt;12. Go to Overview -&amp;gt; Imports &lt;/P&gt;&lt;P&gt;13. Double click on the system (eg: CE6) &amp;lt;-- your sysid&lt;/P&gt;&lt;P&gt;14. Go to Extras -&amp;gt; Other Requests -&amp;gt; Add&lt;/P&gt;&lt;P&gt;15. Choose the request number (which will be the same as the one you created in the old server) and click on Ok&lt;/P&gt;&lt;P&gt;16. If a similar message is displayed as follows, click on &amp;#145;Yes&amp;#146;&lt;/P&gt;&lt;P&gt;&amp;#145;Transport request IECK903 attach to import queue CE6&amp;#146; &lt;/P&gt;&lt;P&gt;17. Your request number will get added to the list&lt;/P&gt;&lt;P&gt;18. Select it and go to Request -&amp;gt; Import&lt;/P&gt;&lt;P&gt;19. Choose your client (same as client on the current server) (you can fiddle with other options in the Options tab&lt;/P&gt;&lt;P&gt;20. Click on Ok and if a similar message is shown as follows, click on Yes&lt;/P&gt;&lt;P&gt;The import is being executed with the following options&lt;/P&gt;&lt;P&gt;Asynchronous:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leave transport request in queue &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import transport request IECK903789 into system CE6&lt;/P&gt;&lt;P&gt;client 100?&lt;/P&gt;&lt;P&gt;21. A &amp;#145;Truck&amp;#146; symbol will be shown in the Status column&lt;/P&gt;&lt;P&gt;22. Click on Refresh till the truck changes to a yellow triangle&lt;/P&gt;&lt;P&gt;23. Right click on the request and click on logs to view any errors or messages&lt;/P&gt;&lt;P&gt;24. If no errors then transport is successful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-source-code/m-p/3421156#M821633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:13:36Z</dc:date>
    </item>
  </channel>
</rss>

