Skip to content
Skills Library
Programming · Tool integration

anst-guide

/anst-guide

Guides the user through running transaction ANST (Automated Note Search & Customer Code Detection Tool) to capture a runtime enhancement trace for any SAP transaction or program, and exporting the results to xlsx. Use when the user wants to find all enhancements for a tcode and needs to collect the xlsx first. Once the user has the xlsx, hand off to the anst-enhancement-analyser agent. Triggered by: "find all enhancements for <tcode>", "what user exits run in <tcode>", "ANST", "runtime enhancement discovery".

Licence
MIT
Last repository change
26.10.2026

Assessment and security

98/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene13 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Guides the user through running transaction ANST (Automated Note Search & Customer Code Detection Tool) to capture a runtime enhancement trace for any SAP transaction or program, and exporting the results to xlsx. Use when the user wants to find all enhancements for a tcode and needs to collect the xlsx first. Once the user has the xlsx, hand off to the anst-enhancement-analyser agent. Triggered by: "find all enhancements for <tcode>", "what user exits run in <tcode>", "ANST", "runtime enhancement discovery".

Triggers from the description

find all enhancements for <tcode>what user exits run in <tcode>ANSTruntime enhancement discovery
Original author description

Guides the user through running transaction ANST (Automated Note Search & Customer Code Detection Tool) to capture a runtime enhancement trace for any SAP transaction or program, and exporting the results to xlsx. Use when the user wants to find all enhancements for a tcode and needs to collect the xlsx first. Once the user has the xlsx, hand off to the anst-enhancement-analyser agent. Triggered by: "find all enhancements for <tcode>", "what user exits run in <tcode>", "ANST", "runtime enhancement discovery".

How it works

  1. Non-negotiable execution gate
  2. Workflow
  3. Step 0 — Standalone bootstrap
  4. Step 1 — Open ANST
  5. Step 2 — Enter the target
  6. Step 3 — Execute
  7. Step 4 — Perform the transaction
  8. Step 5 — Back to ANST
  9. Step 6 — Select All
  10. Step 7 — Customer Code
Original SKILL.md headings · 74 lines, 557 words
SKILL.md preview
---
name: anst-guide
description: >
  Guides the user through running transaction ANST (Automated Note Search & Customer Code
  Detection Tool) to capture a runtime enhancement trace for any SAP transaction or program,
  and exporting the results to xlsx. Use when the user wants to find all enhancements for a
  tcode and needs to collect the xlsx first. Once the user has the xlsx, hand off to the
  anst-enhancement-analyser agent.
  Triggered by: "find all enhancements for <tcode>", "what user exits run in <tcode>",
  "ANST", "runtime enhancement discovery".
---

# ANST Guide — Collect the Enhancement Trace

For bounded, self-contained support work, use `sap-task-helper` with explicit inputs, allowed writes, and an output contract.

## Non-negotiable execution gate

When ANST analysis is required for the target, its trace, analyser result, and the resulting test cases are recorded prerequisites. The `abapfs_run_playwright_tests` tool verifies them and **will reject every affected case** if any requirement was skipped, deferred, left missing, stale, incomplete, or unverified. Creating a spec in a later phase cannot bypass this validation.

## Workflow

Walk the user through capturing a runtime enhancement trace using SAP transaction **ANST**.

**Why ANST?** It captures every enhancement point actually executed at runtime, regardless of nesting depth — the definitive method for large standard transactions (ME21N, VA01, MIGO, etc.) where static analysis under-reports.

> If the user already has an `.xlsx` exported from the ANST Customer Code screen, do not repeat the collection workflow; delegate analysis of that file directly to the **anst-enhancement-analyser** agent.

---

## Step 0 — Standalone bootstrap

1. Call `abapfs_get_test_folder` first. Treat the returned absolute path as `<TEST_FOLDER>`; never infer it from the workspace or a prior chat. If unset, ask the user to run "ABAP FS: Enable SAP UI Testing Features".
2. Confirm the target transaction/program from the current request. If omitted, inspect `<TEST_FOLDER>/tests/*/test-cases/_index.md`; ask if more than one candidate exists.
3. Call `abapfs_get_connected_systems` and confirm the exact `connectionId` where the trace will be recorded. Ask only if ambiguous.
4. Keep the exported trace under `<TEST_FOLDER>/tests/<PROGRAM>/sources/anst/` with a descriptive timestamped `.xlsx` filename so a new `analyze-and-plan` chat can find it from disk.

## Step 1 — Open ANST

Tell the user to go to transaction `ANST` (Automated Note Search & Customer Code Detection Tool).

## Step 2 — Enter the target

Tell the user to:

- Select the **Transaction** radio button (or **Program** if targeting a report).
- Enter the transaction code or program name in the field that appears.
- Optionally add a **Description** to identify the trace later.

## Step 3 — Execute

Click **Execute**. The target transaction opens inside ANST's trace session.

## Step 4 — Perform the transaction

Tell the user to run through the transaction's flows. Tips:

- **Finish at least one complete flow** (e.g. for ME21N: fill all fields and save a PO). The more flows completed, the more enhancements captured.
- If the transaction has variants (different document types, account assignments, etc.), trigger a few — each may activate different enhancements.
- Finishing is preferred but not mandatory.

## Step 5 — Back to ANST

Press **Back** (F3). ANST shows a tree of Application Components touched during the session.

## Step 6 — Select All

Click the **Select All** button to select every application component in the tree.

## Step 7 — Customer Code

Click the **Customer Code** button. ANST analyses the trace and shows the Customer Code results screen.

## Step 8 — Download to xlsx

Tell the user to:

- Use the export/download function on the Customer Code screen.
- **Save as xlsx only** (not csv, not txt).
- Save under `<TEST_FOLDER>/tests/<PROGRAM>/sources/anst/` and share the full path (for example, `C:\sap-tests\tests\ME21N\sources\anst\me21n_enhancements_20260723_180000.xlsx`).

---

Once you have the path, pass it to the **anst-enhancement-analyser** agent. In the final handoff, repeat `<TEST_FOLDER>`, `<PROGRAM>`, `connectionId`, the absolute xlsx path, and the traced flows so a fresh `analyze-and-plan` chat does not need this conversation.

Versions

The database has no other skills named anst-guide.

Database snapshot: 13.11.2026 · package version d801ddc16e82 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100abap-cli-search
    abap-cli 元数据探查(纯只读)— `search` 定位 / `where-used` 评估重构冲击 / `inspect` 查 metadata+activation+locks / `tcode` 查业务码 / `diff` 比较本地与 SAP / `status` 工作区对账 / `dumps` 列近期 ST22 ABAP runtime dump。use when asking where an object lives / what uses an object / what state is an object in / what…
  • 87badi-enhancement
    Help with BAdI (Business Add-In) development, the ABAP enhancement framework, and the clean core level classification of enhancement techniques. Covers new BAdIs, fallback classes, filter-based BAdIs, enhancement spots, enhancement implementations, key user extensibility,…
  • 100sap-migration-dossier
    Create practical ECC to S/4HANA custom-code migration dossiers for SAP packages, namespaces, object lists, or uploaded extracts. Use when asked to audit custom ABAP for S/4HANA readiness, create a shareable migration-readiness report, combine ATC + unused-code + clean-core…
  • 100xlsx-official
    Generating Excel files with xlsx/exceljs in Node.js. Use when generating .xlsx reports, data exports, dashboards, or spreadsheets from database data.
  • 81progressive-enhancement
    Use when a page must paint before its JavaScript runs.
  • 100sap-testing
    Entry point for the SAP UI test-automation environment. Explains project layout, the configured test folder, available tools, phase workflows, and bounded agent delegation. Use when the user asks about SAP UI testing, Playwright for SAP, writing tests for any ABAP…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.