List of ABAP Executable Programs in a Package
To get list of ABAP programs in a package, developers can use the sources codes of a report given in this ABAP tutorial. By providing the ABAP repository name of the SAP package, developers can list executable ABAP programs in that given package.
For example, if you want to get the list of ABAP reports (executable programs) in package SABAPDEMOS, the program list will be as seen at the bottom of this tutorial.
Developers can query SAP transparent table TADIR (Directory of Repository Objects) for the list of objects belonging to a ABAP package. You can filter TADIR table data by applying a filter on DEVCLASS (Package) column.
Since the object type or the program type information is in TRDIR system table, we have to join TADIR and TRDIR using the object name fields.
Since I am looking for executable ABAP reports list in a given package, I used SUBC = 1 in WHERE clause of the SELECT query.
SUBC fields stores the data about Program type property of the repository object.
Other possible values of SUBC are:
F Function group,
S Subroutine Pool,
J Interface pool,
K Class pool,
T Type Pool,
X Transformation (XSLT or ST Program),
Q Database Procedure Proxy
And following is the source codes of the ABAP program that SAP developers can use for filtering system tables to get the list of ABAP reports in a specific package.
And the output list of ABAP programs within an package in ABAP Object Repository in SAP