sap-abap

Provides ABAP syntax references and patterns for classic and ABAP Cloud development.

Updated May 18, 2026
One-click install
npx skills add https://github.com/Melik1986/axon-erp-api --skill sap-abap-melik1986
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sap-abap
Source: https://github.com/Melik1986/axon-erp-api/tree/main/cursor/skills/sap-abap
Command: npx skills add https://github.com/Melik1986/axon-erp-api --skill sap-abap-melik1986

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? ABAP developers frequently need accurate syntax for internal tables, ABAP SQL, RAP, CDS views, and constructor expressions across different release versions, and must know which constructs are allowed in ABAP Cloud versus classic systems. ## Core Features & Use Cases - Comprehensive Language Reference: Covers internal tables, ABAP SQL, object-oriented ABAP, constructor expressions, dynamic programming, string processing, and exception handling with runnable code examples. - Version Compatibility Guidance: Annotates features by ABAP release (7.40 SP02 through ABAP Cloud) and provides 7.40-compatible alternatives for newer syntax. - Modern Development Patterns: Documents RAP/EML, CDS view entities, AMDP, authorization checks, ABAP Unit testing, and ABAP Cloud released APIs such as the XCO library. - Use Case: When migrating a classic report to ABAP Cloud, ask how to replace sy-datum, WRITE, and DESCRIBE TABLE with released APIs and get the correct XCO-based replacements. ## Quick Start Ask how to write a sorted internal table lookup with a secondary key in ABAP Cloud-compatible syntax.

Frequently Asked Questions about sap-abap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read an internal table line safely in ABAP?▼

Use table expressions with OPTIONAL or DEFAULT, such as VALUE #( itab[ key = value ] OPTIONAL ), or check first with line_exists( itab[ key = value ] ). This avoids the CX_SY_ITAB_LINE_NOT_FOUND exception raised by direct access to a missing line.

What is the difference between classic ABAP and ABAP Cloud?▼

ABAP Cloud restricts the language to released SAP APIs and prohibits statements like WRITE, MOVE...TO, DESCRIBE TABLE, and sy-datum. Use the XCO library for date and time, if_oo_adt_classrun for output, and RAP for transactional scenarios.

Which ABAP release supports REDUCE and FILTER operators?▼

REDUCE and FILTER require ABAP 7.40 SP08 or higher. Most other constructor operators like VALUE, NEW, CONV, COND, and SWITCH are available since 7.40 SP02, while FINAL inline declarations require 7.50.

How do I implement authorization checks in a RAP application?▼

Implement get_global_authorizations for operation-level checks and get_instance_authorizations for instance-level checks in the behavior handler. Use AUTHORITY-CHECK with the relevant object and ACTVT codes, and return if_abap_behv=>auth-allowed or auth-unauthorized.

Can I use Common Table Expressions in ABAP SQL on 7.40?▼

No, WITH statements (CTEs) require ABAP 7.51 or higher. On 7.40 systems, use subqueries or select into temporary internal tables and combine results in ABAP instead.

Why does my ABAP code fail the cloud readiness check?▼

Common causes are using sy-datum or sy-uzeit instead of cl_abap_context_info or XCO methods, WRITE statements instead of out->write, and unreleased APIs. Run ATC with the ABAP_CLOUD_READINESS variant in ADT to list all findings.