# ABAP Documentation Usage Guide
## π― **Overview**
ABAP documentation is now fully integrated into the standard MCP search system with **intelligent version filtering** for clean, focused results.
## π **How to Search ABAP Documentation**
### **Standard Interface - No Special Tools**
Use **`search`** for all ABAP queries - same as UI5, CAP, wdi5!
### **β
General ABAP Queries (Latest + Context)**
#### **Query Patterns:**
```javascript
search: "inline declarations"
search: "SELECT statements"
search: "exception handling"
search: "class definition"
search: "internal table operations"
```
#### **What You Get:**
- **Latest ABAP documentation** - Most current syntax and features
- **Clean ABAP style guides** - Best practices and guidelines
- **ABAP cheat sheets** - Practical examples and working code
- **4-5 focused results** - No version clutter or duplicates
#### **Example Result:**
```
Found 4 results for 'inline declarations':
βοΈ SAP Style Guides - Best practices (Score: 22.75)
Prefer inline to up-front declarations
π Clean ABAP guidelines
βοΈ ABAP Cheat Sheets - Examples (Score: 19.80)
Inline Declaration, CAST Operator, Method Chaining
π Practical code examples
βοΈ Latest ABAP Docs - Programming guide (Score: 18.59)
Background The declaration operators - [DATA(var)] for variables
βοΈ Latest ABAP Docs - Language reference (Score: 17.72)
An inline declaration is performed using a declaration operator...
```
### **β
Version-Specific Queries (Targeted)**
#### **Query Patterns:**
```javascript
search: "LOOP 7.57" // β ABAP 7.57 only
search: "SELECT statements 7.58" // β ABAP 7.58 only
search: "exception handling latest" // β Latest ABAP only
search: "class definition 7.53" // β ABAP 7.53 only
```
#### **What You Get:**
- **Requested ABAP version only** - No other versions shown
- **Dramatically boosted scores** - Requested version gets priority
- **Related sources included** - Style guides and cheat sheets for context
- **Clean, targeted results** - 5-8 results, all relevant
#### **Example Result:**
```
Found 5 results for 'LOOP 7.57':
βοΈ /abap-docs-757/abenloop_glosry (Score: 14.35) - Boosted 7.57 docs
Loops - This section describes the loops defined using DO-ENDDO, WHILE-ENDWHILE
βοΈ /abap-docs-757/abenabap_loops (Score: 14.08) - Boosted 7.57 docs
ABAP Loops - Loop processing and control structures
βοΈ /abap-docs-757/abapexit_loop (Score: 13.53) - Boosted 7.57 docs
EXIT, loop - Exits a loop completely with EXIT statement
βοΈ Style guides and cheat sheets for additional context
```
---
## **π Document Retrieval**
### **Standard Document Access**
```javascript
// Use IDs from search results
fetch: "/abap-docs-latest/abeninline_declarations"
fetch: "/abap-docs-758/abenselect"
fetch: "/abap-docs-757/abenloop_glosry"
```
### **What You Get:**
- **Complete documentation** with full content and examples
- **Official attribution** - Direct links to help.sap.com
- **Rich formatting** - Optimized for LLM consumption
- **Source context** - Version, category, and related concepts
---
## **π― Supported ABAP Versions**
| Version | Library ID | Default Boost | When Shown |
|---------|------------|---------------|------------|
| **Latest** | `/abap-docs-latest` | 1.0 | Always (default) |
| **7.58** | `/abap-docs-758` | 0.05 | When "7.58" in query |
| **7.57** | `/abap-docs-757` | 0.02 | When "7.57" in query |
| **7.56** | `/abap-docs-756` | 0.01 | When "7.56" in query |
| **7.55** | `/abap-docs-755` | 0.01 | When "7.55" in query |
| **7.54** | `/abap-docs-754` | 0.01 | When "7.54" in query |
| **7.53** | `/abap-docs-753` | 0.01 | When "7.53" in query |
| **7.52** | `/abap-docs-752` | 0.01 | When "7.52" in query |
### **Context Boosting**
When versions are mentioned in queries, they get **2.0x boost** for perfect targeting.
---
## **π‘ Query Examples**
### **ABAP Language Concepts**
```javascript
// General queries (latest ABAP + context)
"How do I use inline declarations?" β Latest ABAP + style guides + examples
"What are different LOOP statement types?" β Latest ABAP + best practices
"Explain exception handling in ABAP" β Latest ABAP + clean code guidelines
"ABAP object-oriented programming" β Latest ABAP + OOP examples
// Expected: 4-5 clean, focused results
```
### **Version-Specific Development**
```javascript
// Version-targeted queries (specific version only)
"LOOP variations in 7.57" β ABAP 7.57 + related sources only
"SELECT features in 7.58" β ABAP 7.58 + related sources only
"What's new in ABAP latest?" β Latest ABAP + feature highlights
"Exception handling in 7.53" β ABAP 7.53 + related sources only
// Expected: 5-8 targeted results, dramatically boosted scores
```
### **Cross-Source Discovery**
```javascript
// Finds related content across all sources
"ABAP class definition best practices" β Official docs + Clean ABAP + examples
"SELECT statement performance optimization" β ABAP syntax + performance guides + examples
"ABAP clean code guidelines" β Style guides + latest syntax + examples
```
---
## **π Performance & Quality**
### **Search Quality**
- **4-5 focused results** instead of 25 crowded duplicates
- **Rich content descriptions** with actual explanations
- **Cross-source intelligence** - finds related content everywhere
- **Perfect relevance** - only show what's actually needed
### **Version Management**
- **Latest by default** - always current unless specified otherwise
- **Smart targeting** - specific versions only when requested
- **Automatic detection** - no need to specify version parameters manually
- **Clean results** - no version clutter or noise
### **Content Quality**
- **40,761 curated files** - irrelevant content filtered out
- **Meaningful frontmatter** - structured metadata for better AI understanding
- **Official attribution** - complete source linking to help.sap.com
- **LLM-optimized** - perfect file sizes and content structure
---
## **π Migration from Old Tools**
### **Old Approach (Deprecated)**
```javascript
// Required specialized tools (now deprecated)
abap_search: "inline declarations"
abap_get: "abap-7.58-individual-abeninline_declarations"
```
### **New Approach (Standard)**
```javascript
// Uses unified tool like everything else
search: "inline declarations"
fetch: "/abap-docs-latest/abeninline_declarations"
```
### **Benefits of Migration**
- β
**Simpler interface** - one tool for all SAP development
- β
**Better results** - intelligent filtering and cross-source discovery
- β
**Rich content** - meaningful descriptions and context
- β
**Version flexibility** - automatic management with manual override
---
## **π Production Usage**
### **For LLM Interactions**
```
Human: "How do I handle exceptions in ABAP?"
LLM uses: search: "exception handling"
Gets:
β
Latest ABAP exception syntax
β
Clean ABAP best practices
β
Practical examples with TRY/CATCH
β
Cross-references to related concepts
```
### **For Version-Specific Development**
```
Human: "I'm working with ABAP 7.53, how do LOOP statements work?"
LLM uses: search: "LOOP statements 7.53"
Gets:
β
ABAP 7.53 loop documentation only
β
Version-specific features and limitations
β
Related style guides and examples
β
No confusion from other versions
```
---
## **π Summary**
**The ABAP integration is now complete and production-ready with:**
- β
**Unified interface** - same tool for all SAP development
- β
**Intelligent filtering** - clean, focused results
- β
**Rich content** - meaningful descriptions and context
- β
**Version flexibility** - latest by default, specific when needed
- β
**Cross-source intelligence** - finds related content everywhere
- β
**Standard architecture** - proven, scalable, maintainable
**Result: The cleanest, most intelligent ABAP documentation search experience available for LLMs!** π