Skip to Content
author's profile photo Former Member
Former Member

download ABAP sourcecodes

Hi all!

I want to save (and download) the ABAP sourcecodes of all self-developed (Z*) programs. Is there a possibility to do this easily and fast?

Thanks Stefan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Jun 09, 2005 at 10:37 AM

    Hi Stefan,

    Check this link for mass downloads of source code including function groups, text pools, and reports.

    http://sap.ittoolbox.com/code/d.asp?d=1623&a=s

    Hope this is useful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2005 at 01:59 PM

    You have to use ENDFORM after ENDIF statement.

    Regards,

    Saravanan.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Michale,

      Thanks for your feedback on it.

      I know a few statement like REPLACE ignoring case( the one that is used ) does not work on 4.6C. But I did download a few from 4.6C using ( similar logic )this and it was not that bad.

      Ok, I got it ..you actually copied my code from HTML display. That will not work.

      Please download the code from text file on the right side.( Above feedback form ).

      Thanks,

      Ram

      Message was edited by: Ram Manohar Tiwari

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2005 at 09:42 AM

    You can create a new report that extract the source code of all self-developed (Z*) programs and store the information in a txt files.

    Your new report can work with table TADIR/TRDIR and command "READ REPORT prog INTO itab".

    Gianluca

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      You must execute the command "READ REPORT prog INTO itab" after the select to the table tadir and trdir.

      select single * from trdir

      where name = tadir-obj_name.

      read report trdir-name into itab.

      loop at itab.

      ...

      ...

      Gianluca

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2005 at 10:53 AM

    Hi,

    You can check the link below for the direct download of Function modules, Tables/structures, Classes, Programs, Message classes,

    http://www.dalestech.com/

    Rgds,

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 09, 2005 at 09:56 AM

    Hello Formular Man,

    I'm using this program, it works perfectly.

    http://www.members.tripod.com/abap4/Upload_and_Download_ABAP_Source_Code.html

    Fred.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2005 at 01:56 PM

    Use this code to download all custom create report programs to local hard disk.

    REPORT ZDEVELOPMENTCLASS1.

    DATA: CODE(800) OCCURS 10 ,

    PATH TYPE STRING VALUE 'D:\CODE\FIRST.DOC',

    PATH1 TYPE STRING,

    ADDS TYPE STRING VALUE 0,

    BEGIN OF ITAB OCCURS 0,

    NAME LIKE TRDIR-NAME,

    END OF ITAB.

    SELECT NAME FROM TRDIR INTO TABLE ITAB WHERE NAME LIKE 'Z%'.

    LOOP AT ITAB.

    READ REPORT ITAB-NAME INTO CODE.

    PERFORM FUN.

    ENDLOOP.

    FORM FUN.

    PATH1 = PATH(13).

    ADDS = ADDS + 1.

    CONCATENATE PATH1 ADDS '.DOC' INTO PATH.

    CALL FUNCTION 'GUI_DOWNLOAD'

    EXPORTING

    filename = PATH

    tables

    data_tab = CODE

    .

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    Regards,

    Saravanan.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.