Search code examples
abapsap-data-dictionary

How to extract program sub-objects from SE80?


Does anyone know how to extract program list objects from package. Classes,fileds,screend ? or in which the tables can I find this information. Like in the picture below... is there any way?

enter image description here


Solution

  • There is no single class or FM to fulfill your requirement, but you can combine several approaches for implementing the requirement:

    1. RS_PROGRAM_INDEX FM, where you put program name into PG_NAME parameter

    It will list all types and data declarations, along with the subroutines!

    1. RS_GET_ALL_INCLUDES FM will list all program includes if existent
    2. REPOSITORY_ENVIRONMENT_RFC remote-enabled FM which lists all types, data declarations and all function and interface calls in the report codebase. It should be called like:

      OBJ_TYPE -> PROG
      OBJECT_NAME -> <report>
      

    If all this is not suffcicient, you can use ABAP READ REPORT statement which fetches report full source code into internal table, and then you can analyze it with Regex or any other tool.