Read Text Elements
sap_get_text_elementsRead ABAP text elements (text symbols, selection texts, list headings) for programs, classes, or function groups to identify blank selection screens and missing labels.
Instructions
Read a program's / class's / function group's text elements: text symbols (TEXT-nnn), selection texts (parameter/select-option labels), and list headings.
Args:
object_type: 'program' | 'class' | 'function_group'.
object_name (string).
kind (string): one of 'symbols', 'selections', 'headings'; omit for all three.
response_format.
Returns (json): { objectType, objectName, kinds: [{ kind, entries: [{id, text, maxLength?, ddicReference?}], raw, note? }] }. Symbol ids are the 3-character numbers behind TEXT-nnn; selection ids are parameter / select-option names; heading ids are listHeader and columnHeader_1..4.
Examples:
"Why is my selection screen blank?" -> object_type='program', object_name='ZFI_POST', kind='selections'.
"What are ZCL_FOO's text symbols?" -> object_type='class', object_name='ZCL_FOO', kind='symbols'. Notes:
A kind the object does not use returns an empty list, not an error (a class typically has symbols only).
Texts come from the object's ORIGINAL (master) language pool, which is not necessarily English — SAP standard objects often return German.
ddicReference marks a selection text inherited from the DDIC data element rather than maintained locally.
Write them back with sap_set_text_elements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Read only one kind ('symbols' | 'selections' | 'headings'). Omit for all three. | |
| object_name | Yes | Object name (e.g. 'ZFI_POST', 'ZCL_FOO'). | |
| object_type | Yes | 'program', 'class', or 'function_group' (pass the function GROUP name, not a module). | |
| response_format | No | Output format: 'markdown' (human-readable, default) or 'json' (structured). | markdown |