sap_list_package_objects
List ABAP repository objects in a development package, grouped by type, with optional filters and subpackage scanning. Use to inventory code for documentation, migration analysis, or code review.
Instructions
List all ABAP repository objects in a development package (DEVCLASS). Returns objects grouped by type: programs (PROG), classes (CLAS), function groups (FUGR), tables (TABL), data elements (DTEL), domains (DOMA), structures (STRU), views (VIEW), etc. Use this to discover and inventory a codebase for documentation, migration analysis, or code review. Supports wildcard package names (e.g., 'Z*' for all Z packages). Also returns sub-packages if they exist. For custom namespace codebases, pass the top-level package and set include_subpackages=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | Development package / DEVCLASS (e.g., 'ZCUSTOM', '/NAMESPACE/PKG') | |
| object_type_filter | No | Optional: filter by object type (e.g., 'PROG', 'CLAS', 'FUGR', 'TABL'). Leave empty for all. | |
| include_subpackages | No | If true, also scan sub-packages (reads TDEVC for hierarchy) |