Search Repository Objects
sap_search_objectsSearch the ABAP repository for objects by name pattern with wildcards, returning matching programs, classes, tables, CDS, and more with type and package details.
Instructions
Quick-search the ABAP repository for objects (programs, classes, interfaces, function modules, tables, CDS, packages, etc.) by name pattern.
Args:
query (string): Name pattern; '' is a wildcard (e.g. 'ZFI', 'CL_POST').
max_results (number): 1-200 (default 50).
response_format ('markdown' | 'json').
Returns (json): { query, count, objects: [{ uri, type, name, packageName?, description? }] }. 'type' is the ADT type code, e.g. PROG/P (program), CLAS/OC (class), INTF/OI (interface), FUGR/FF (function module), TABL/DT (table), DDLS/DF (CDS).
Examples:
"Find custom FI programs" -> query 'ZFI*'.
"Locate the T001 table" -> query 'T001'.
Don't use to read source (use sap_get_source) or table data (use sap_read_table). Error Handling:
Empty list -> no objects match the pattern; broaden the wildcard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search pattern; '*' acts as a wildcard. E.g. 'ZFI*', 'CL_*POSTING*', 'T001'. | |
| max_results | No | Maximum objects to return (1-200, default 50). | |
| response_format | No | Output format: 'markdown' (human-readable, default) or 'json' (structured). | markdown |