sap-abap-sql

v0.3.0
run.daslab/sap-abap-sql Checked 9 hours ago Published 3 months ago

Checks and fixes ABAP Open SQL for SAP's ADT data-preview console.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

abap_sql_prepare Prepare a statement before sending it

Call this before sending any SELECT to an SAP ADT data-preview console. Returns the statement to send, or refuses it and names what to change. Fixes the mechanical problems itself and enforces the console's 255-character ceiling.

ParameterTypeDescription
sql *stringA single ABAP Open SQL SELECT statement.

abap_sql_explain Decode a statement the console rejected

The console rejected a statement and its error does not say why. Reports every dialect problem with the correction and a stable rule id, without rewriting anything. Use abap_sql_prepare instead when you just want a statement that works.

ParameterTypeDescription
sql *stringA single ABAP Open SQL SELECT statement.

abap_sql_query Run a statement against a connected system

Prepare a SELECT and run it against the SAP system this server is configured for, returning rows. Only available when SAP_URL, SAP_USER and SAP_PASSWORD are set; without them the other tools still work. Read-only: the data-preview console cannot write. Results are capped at 5000 rows by the console, and a result at the cap is reported as truncated rather than returned as if complete.

ParameterTypeDescription
sql *stringA single ABAP Open SQL SELECT statement.
max_rowsnumberRows to request, up to the console's hard cap of 5000.

abap_sql_rules List the dialect rules

The five ways this dialect differs from standard SQL, each with the correct form. Also delivered in the server instructions, so you likely have them already.