What problem does it solve?
Finds the safest extension point for a requested SAP behavior change and
recommends which enhancement mechanism to use - so a project does not fail by
modifying the wrong place (copying standard, editing a fragile exit, or missing
the right BAdI). Complements /sap-se19 (which IMPLEMENTS a BAdI): this skill
DECIDES. Three modes, auto-detected: inspect one BAdI / enhancement spot
(classify classic/new/migrated + list implementations via SXS_ATTR / SXC_* /
BADI_IMPL); inspect one SMOD enhancement (components via MODSAP + the CMOD
projects using it via MODACT/MODATTR); or enumerate candidates for a program /
tcode (enhancement spots + implementations in its package, BAdIs it references
via the cross-reference index, and user-exit includes). Classifies and scores
candidates with a TRANSPARENT heuristic (released enhancement interface > BAdI
exit > implicit; avoid standard modification), flags risks (multiple active
implementations, migrated/obsolete BAdIs, no clean enhancement point), and
emits candidates.tsv + existing_implementations.tsv + a recommended plan,
registered in the artifact index. The optional business-intent string is
ADVISORY only - the ranking is structural, not semantic; program-level
enumeration is non-exhaustive (SE84 is). Read-only; never modifies SAP.
Prerequisites: SAP profile saved via /sap-login (RFC); SAP NCo 3.1 (32-bit) in GAC.
argument-hint: "BADI <name> | ENHANCEMENT <smod> | PROGRAM <p> | TCODE <t> ["<intent>"]"
Core Features & Use Cases
- Inspect BAdI/enhancement spots to classify classic/new/migrated faces and list implementations.
- Inspect SMOD/CMOD contexts to enumerate components and active CMOD projects.
- Enumerate candidates for a given program or TCODE by scanning enhancement spots, packages, and references.
- Score and rank options with a TRANSPARENT heuristic; flag risks like multiple active implementations or migrated BAdIs.
- Output artifacts: candidates.tsv, existing_implementations.tsv, risk_findings.tsv/json, and a tailored enhancement-advice.md.
- Provide actionable hand-off steps to implement/extend the chosen mechanism and conduct impact analysis.
Quick Start
Provide a target context (BAdI, SMOD, or PROGRAM) to the advisor and run it to obtain a recommended enhancement path.