Help us improve
Share bugs, ideas, or general feedback.
From sapcli-abap-tools
Creates a temporary ABAP class to run, syntax-check, and execute ABAP code snippets including Function Modules and complex queries.
npx claudepluginhub jfilak/sapcli-claude-plugin --plugin sapcli-abap-toolsHow this skill is triggered — by the user, by Claude, or both
Slash command
/sapcli-abap-tools:abap-snippetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
I create a temporary ABAP class implementing the interface `IF_OO_ADT_CLASSRUN`
Assists with ABAP code for SAP systems: internal tables, structures, ABAP SQL, OOP, RAP, CDS views, EML statements, ABAP Cloud, strings, dynamic programming, RTTI/RTTC, field symbols, data references, exceptions, unit testing.
Checks ABAP code quality with abaplint static analysis and Clean ABAP manual review. Lints syntax, validates best practices, and helps configure abaplint.json.
Creates new ABAP programs (Report, CRUD, ALV, Batch) with Main+Include structure supporting OOP or Procedural paradigms using a multi-phase coding and QA pipeline.
Share bugs, ideas, or general feedback.
I create a temporary ABAP class implementing the interface IF_OO_ADT_CLASSRUN
and put your ABAP code snippet into implementation of the method IF_OO_ADT_CLASSRUN~MAIN.
I run syntax check for the temporary class and if there are no syntax errors, I execute
the method IF_OO_ADT_CLASSRUN~MAIN and print the output of the execution into
the standard output.
echo "out->write( |Hello, { sy-uname }!| )." | sapcli abap run -
sapcli abap run - <<EOF
out->write( |Hello, { sy-uname }!| ).
out->write( |Current date is { sy-datum }| ).
EOF
First create a file snippet.abap with the following content:
out->write( |Hello, { sy-uname }!| ).
out->write( |Current date is { sy-datum }| ).
Then run the code snippet from the file:
sapcli abap run snippet.abap