Read Dynpro / Screen Source
sap_get_screen_sourceNeed to inspect a dynpro's PBO/PAI logic? Fetch the screen flow source directly by specifying the ABAP program and screen number, revealing the processing blocks that drive screen behavior.
Instructions
Read the flow logic (PBO/PAI) source code of a dynpro/screen. Screens are separate from program source — this is the screen ABAP (not the element list).
Args:
program (string): the program owning the screen.
screen_number (int or string): e.g. 100, '0100'.
response_format.
Returns (json): { program, screenNumber, sourceUri, source, lineCount }.
Examples:
"Read screen 100 of ZPROG" -> program='ZPROG', screen_number=100. Notes:
Returns only the flow logic (PBO/PAI). The screen layout (element list) is not available via ADT.
404 means the screen doesn't exist on this program.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| program | Yes | Program name (e.g. 'ZPROG', 'SAPMV45A'). | |
| screen_number | Yes | Screen number as an integer or string (e.g. 100 or '0100'). | |
| response_format | No | Output format: 'markdown' (human-readable, default) or 'json' (structured). | markdown |