Object Version History
sap_get_revisionsList ABAP object revision history and retrieve source of any prior version to compare changes or restore old code.
Instructions
List the version history (revisions) of an ABAP object, or fetch the source of a specific old version.
Args:
object_type, object_name (and function_group for functions).
version (string): omit to list revisions; supply to read that revision's source.
response_format.
Returns (json): { objectType, objectName, versionsUri, count, revisions: [{ version, author?, updated?, contentUri }], version?, source?, lineCount? }.
Examples:
"What versions exist of ZFI_POST?" -> object_type='program', object_name='ZFI_POST'.
"Show version 00002 of ZFI_POST" -> ..., version='00002'.
"What changed since the last transport?" -> read an old version, then compare with sap_get_source. Notes:
Version records exist only where SAP created them (transport release, SE38/ADT version generation). A freshly created $TMP object may legitimately have none.
Requesting an unknown version returns the list of available version numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Version number from a previous call (e.g. '00000' = oldest entry, or as listed). When given, returns that version's full source instead of the list. | |
| object_name | Yes | Object name (e.g. 'ZFI_POST', 'ZCL_FOO'). | |
| object_type | Yes | Kind of object: 'program', 'include', 'class', 'interface', or 'function'. | |
| function_group | No | Required only when object_type='function': the enclosing function group. | |
| response_format | No | Output format: 'markdown' (human-readable, default) or 'json' (structured). | markdown |