abap-performance-ecc

Identify inefficient database access and internal table patterns in ABAP code for SAP ECC.

Updated Apr 29, 2026
One-click install
npx skills add https://github.com/LeON-W666/ABAP-Remote-FS-for-Codex --skill abap-performance-ecc-leon-w666
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: abap-performance-ecc
Source: https://github.com/LeON-W666/ABAP-Remote-FS-for-Codex/tree/main/client/media/skills/abap-performance-ecc
Command: npx skills add https://github.com/LeON-W666/ABAP-Remote-FS-for-Codex --skill abap-performance-ecc-leon-w666

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you improve the runtime performance of ABAP programs on SAP ECC by finding slow database access patterns and internal table inefficiencies that commonly cause bottlenecks.

Core Features & Use Cases

  • ECC-focused database access guidance: recommends SELECT patterns (no SELECT *, WHERE-first, restrained JOINs, cautious FOR ALL ENTRIES, correct buffering usage) to reduce round-trips and avoid expensive SQL constructs on traditional databases.
  • Internal table and loop optimization: helps choose HASHED/SORTED/standard types appropriately, use efficient lookups, and reduce O(n*m) nested-loop behavior.
  • Anti-pattern detection and fixes: targets common ECC performance pitfalls such as SELECT in loops, bypassing buffer unnecessarily, misaligned WHERE clauses for indexes, and inefficient string concatenation in loops.
  • Use Case: Improve a material or logistics report that currently does SELECT SINGLE inside loops and joins too many tables by redesigning the data retrieval and lookup logic for Oracle/DB2/MS SQL/MaxDB-backed ECC systems.

Quick Start

Ask the AI to optimize the provided ABAP code for an ECC system by checking database access, buffering usage, internal table types, and loop logic for common performance anti-patterns.

Frequently Asked Questions about abap-performance-ecc

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

FAQPage Schema
How do I optimize ABAP code for slow SELECT statements in SAP ECC?

To optimize ABAP code for slow SELECT statements in SAP ECC, minimize database round-trips by avoiding SELECT *, restrict JOINs, and use SELECT SINGLE with buffered tables to reduce expensive SQL constructs on traditional databases.

Why are my nested loops causing performance issues in ABAP?

Nested loops cause ABAP performance issues due to O(n*m) complexity. Fix this by choosing HASHED or SORTED internal tables and applying efficient lookup structures to optimize loop and string handling logic.

What is the best way to use internal tables for ABAP performance on ECC?

The best way to optimize internal tables for ABAP performance is selecting HASHED or SORTED types for large datasets, applying efficient lookups, and avoiding misaligned WHERE clauses to prevent full table scans on ECC databases.

Does this ABAP performance optimization work for Oracle and DB2 databases?

Yes, this ABAP performance optimization applies to traditional database systems including Oracle, DB2, MSSQL, and MaxDB, providing ECC-specific rules to mitigate expensive SQL constructs and improve overall runtime.

When should I avoid using FOR ALL ENTRIES in ABAP ECC development?

You should be cautious with FOR ALL ENTRIES in ABAP ECC development when it bypasses table buffering or duplicates data, preferring buffered-table reads and restrained JOINs to minimize expensive database round-trips.

How do I fix ABAP anti-patterns like SELECT inside loops?

Fix ABAP anti-patterns like SELECT inside loops by redesigning data retrieval to fetch records in bulk, applying WHERE-first patterns, and utilizing SORTED or HASHED internal tables for subsequent in-memory lookups.