ABAP Program to find Orphan Includes in SAP
Posted by Admin, under ABAP, Sample CodeA simple ABAP program to find orphaned includes. These are includes that are no longer referenced by programs and provides a useful housekeeping tool.
ABAP Tutorials, Guides, Training, Manuals
A simple ABAP program to find orphaned includes. These are includes that are no longer referenced by programs and provides a useful housekeeping tool.
The program below shows OOPS concept implementation in ALV. ALV is created inside the Custom Container, which acts as wrapper for ALV. For both ALV and Custom Container, Objects has been created from the respective classes.
Its a program I found while browsing. It can prove handy at beginner level.
Download source code: zjoiner
Following code helps you download you SAP programs and relevant objects from SAP to your PC.
Download source code: Mass Download 144.620
Source: http://www.dalestech.com
This program takes an existing ABAP report, and does the following:move comments to the end of the line. Added because pretty printer in 4.6 no longer does this
- Adds comments (table name) for the tables listed after a TABLES statement if the line has not been commented already.
- Adds comments (field name) for data elements, parameters, and select-options that are defined using the LIKE or FOR statement
- For ENDLOOP/ENDSELECT adds comment identify the LOOP/SELECT that is being closed
- For FORM/ENDFORM adds comment identify the FORM that is being closed
- Checks to ensure that the program being modified is either a Local Private Object, or on a transport that belongs to the person running this program. This is to help prevent screwups.
- Calls function PRETTY_PRINTER to do the SAP standard pretty print after the custom comments have been created.
- Attempts to move comments to the end of the line. Added because pretty printer in 4.6 no longer does this.
Continue Reading…