Abap code writing

From marcellourbani/vscode_abap_remote_fs · View interactive version

Abap code writing is an AI agent skill from the GitHub repository marcellourbani/vscode_abap_remote_fs. Structured process for building ABAP solutions. Use BEFORE writing any ABAP code — reports, classes, function modules, enhancements, or full processes. Guides through requirement validation, system exploration, architecture planning, research of existing objects, and detailed design before any code

How to use this skill

Skill file

ABAP Code Writing Process

Follow this process in order whenever building ABAP solutions. Do NOT skip steps. Do NOT start writing code until Step 6.

Before designing, writing, or modifying ABAP code, read the abap-code-review-helper skill in full (skip if skill is unavailable), unless its complete contents are already available in your current context. Apply it throughout the task, including checks of existing code, without reporting passed checks. This applies equally to the main agent working without subagents.

Ask questions at ANY step if something is unclear — it is always better to clarify early than to rewrite later.


Step 1: Understand the Requirement

Before anything else, demonstrate that you understand what the user is asking for.

Actions:

Do NOT proceed until the user confirms your understanding is correct.

Example response:

"Here's my understanding: You need a report that reads material master data for a given plant, filters by material type, and outputs an ALV grid with columns [X, Y, Z]. It should support multiple selection for plant and material type. Is this correct? A few questions: (1) Should it include cross-plant materials? (2) Do you need export to Excel? (3) Any authorization checks beyond standard?"


Step 2: Explore the SAP System

Once requirements are confirmed, understand what you're working with.

Actions:

If standard functionality can be enhanced, recommend that approach. Custom code should be the last resort.


Step 3: Architecture & High-Level Plan

If custom development is needed, plan the architecture BEFORE any code.

Actions:

Present this as a capability breakdown — not specific object names yet. Those come after research.

Example:

Capabilities needed:

1. Read sales order data from SAP tables

2. Validate order data against business rules

3. Calculate pricing (may reuse existing pricing FM/class?)

4. Send confirmation email to customer

5. Update custom status table

6. Log all processing steps for audit


Step 4: Research Existing Objects

For each sub-task identified in Step 3, search the SAP system for reusable objects.

Actions:

NEVER assume an object exists or guess its parameters. Every object and every parameter must be verified against the live system.

Run searches in parallel when possible — search for multiple sub-tasks simultaneously.

Report findings to the user: "For email sending, I found ZCL_EMAIL_HELPER=>SEND which takes X, Y, Z. For pricing, there's no existing custom object but standard FM PRICING_GET_CONDITIONS exists."


Step 5: Detailed Code-Level Plan

Now — using research results from Step 4 — define the concrete architecture and detailed design.

Actions:

Share this detailed plan with the user for confirmation before writing code.


Step 6: Write the Code

Only NOW do you write code.

Rules:

If you discover during coding that you need an object you haven't researched, STOP and go back to Step 4 for that object before continuing.


Key Principles

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.