Skip to Content

Any Reusable ideas in ABAP Development?

Hi Experts,

Can anyone provide any reusable ideas, that can be implemented in ABAP development (Eg: Reports, FM's)

So that they can be reused directly in different projects which saves our time.

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Oct 29, 2015 at 07:17 AM

    Hi Naveen,

    One can go for an auto Technical Specification generator for a Report/FM inputted to the Tool.

    This can help in quick delivery of Objects.

    Thanks and Regards,


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Naveen Maroju

      Hi Naveen,

      I also have not developed one yet too 😊.

      So, cannot provide technical details for realizing the idea.

      But, to start with one needs to identify what all details are required for the Technical specification and what all can be retrieved on the basis of Program/FM. Refer to below link.

      Also, one needs to start with simpler forms/subroutines/FM and check how to retrieve the required details corresponding to them from the standard SAP tables/FMs.

      As far as text part for the Processing Logic is concerned, the same needs to be handled via Code.

      And depending upon the ABAP Keywords/Tokens, the text needs to be framed.

      One should check how the ABAP Compiler/ABAP Stack/ABAP Debugger works to find out important FMs/ finalize a problem resolution approach.

      Say for below select query, TS text needs to be written in the below format.

      It will be certainly complex but is not impossible.


         select *

         from mara

          into table lt_mara

         where matnr in s_matnr[].

      TS Text

      Details are retrieved from table MARA on the basis of material number entered on selection screen.

      Thanks and Regards,


  • Oct 29, 2015 at 01:20 PM

    Hello Naveen,

    Some ideas -

    1. Have an automatic comment generator report/class which will embed comments in the developed objects.

    2. Have an automatic transport release background job. (This has to be thoroughly cross reviewed and triggered from an ID which has due authorizations).

    3. Use ATC and SCI Variants. This will make first level of code review automatic.


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 09, 2015 at 06:19 PM


    One thing that I really like to use is table TSE05.

    Here is an example - We receive many program requests for BDC, now the common steps for my BDC's are:-

    1. Get Excel file path from the user (file which contains the data to be passed to BDC)
    2. Upload the data from given Excel file
    3. Validate uploaded data
    4. Run BDC if the uploaded data passed the validations
    5. Display appropriate errors if the data did not pass the validations

    Of course there will be multiple lines of code attached to each step.

    So I have a generic program which updates table TSE05 with following data

    APP_OBJ   = 'ABAP'

    KEYWORD = 'CODE_FOR_BDC' (or something like that)

    POSITION  = Sequential number assigned to each line of code

    LINE          = ABAP code (one database record for each line of code)

    Once the TSE05 table is updated, you can access it in the editor by pressing CTRL+F6 and entering

    CODE_FOR_BDC in 'Other Pattern'. This will insert all the lines of the code that you entered in TSE05 into your editor.

    This is just one example, you can do the same for say Comment header in each program, or a generic code for ALV creation, etc.

    In short, create an ABAP program to update the TSE05 table as per your ABAP team standards and then carry those programs to every project you go. Run the programs once at each new project. Eventually you will leave a trail of nicely standardized code at each of the projects for the ABAPers who inherit your programs.

    Hope this helps.


    Add comment
    10|10000 characters needed characters exceeded

  • Oct 29, 2015 at 08:21 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 09, 2015 at 04:38 PM

    Why not initiate a process to discuss about re-using existing program/code before creating a new program/code. Of course this is not a tool to develop in SAP, but being proactive to avoid clones.



    Add comment
    10|10000 characters needed characters exceeded