πΌ Chapter 1 – ABAP Basics Refresher
π§ What is ABAP?
ABAP (Advanced Business Application Programming) is SAP’s core language for building reports, forms, enhancements, interfaces, and data conversions.
It runs inside the SAP Application Server and directly interacts with the SAP database.
π‘ Think of ABAP as the translator between business processes and SAP’s database.
⚙️ Program Structure
Explanation:
-
REPORT→ start of an executable program. -
WRITE→ outputs text or data. -
.→ every ABAP statement ends with a period.
⚠️ Missing a period (.) causes a syntax error.
π― Try it: Display your name and today’s date using SY-DATUM.
π§© Chapter 2 – DATA vs TYPES
π‘ TYPES = blueprint. DATA = object built from that blueprint.
π§ Define type → create variable → fill values → display output.
π Chapter 3 – Data Dictionary (DDIC)
π‘ Main Objects
-
Tables – Physical storage of data
-
Data Elements – Field descriptions
-
Domains – Data type, length, value range
-
Views – Logical combination of tables
-
Structures – Combine fields (no data storage)
π T-Codes: SE11 | SE12 | SE14
⚙️ Example: ZEMPLOYEES table → domain ZEMP_ID (CHAR 10) + data element ZE_EMP_ID.
π§Ί Chapter 4 – Internal Tables
π§ Why Internal Tables?
They act as dynamic arrays holding multiple records in memory.
π‘ STANDARD TABLE is default; use SORTED or HASHED for faster lookups.
π― Add an IF inside the loop to print only employee 102.
π§© Chapter 5 – Modularization (Keep Code Clean)
πͺ Types
-
Subroutines – local to program
-
Function Modules – reusable globally (SE37)
-
Includes – split code into files
π₯️ Subroutine Example
π₯️ Function Module Example
π‘ Subroutines = simple local;
Function Modules = global and managed in SE37.
π Chapter 6 – Reports & Selection Screens
⚙️ Simple Report
⚙️ Select-Options
π― Add a checkbox and conditionally display data when checked.
π€ Chapter 7 – ALV Reports
ALV = ABAP List Viewer → formatted, interactive output.
π‘ Use CL_SALV_TABLE for modern OO ALV reports.
π¨ Chapter 8 – IDocs & Interfaces
π§ What is an IDoc?
An Intermediate Document is a structured format for data exchange between SAP systems or external partners.
Flow:
-
Outbound: SAP → IDoc → Partner
-
Inbound: Partner → IDoc → SAP
π Tables – EDIDC (Control), EDID4 (Data), EDIDS (Status)
π T-Codes – WE02 (View), WE19 (Test)
π§ Chapter 9 – Debugging & Tips
⚙️ Debugging Basics
-
/h→ Start debugger -
F5/F6/F8 → Step into/over/run
-
Watch variables and tables
-
Use conditional breakpoints
⚠️ Never debug production without authorization.
π― Chapter 10 – Quick Cheat Sheet
| Task | Keyword / T-Code |
|---|---|
| Create Program | SE38 |
| Function Module | SE37 |
| Data Dictionary | SE11 |
| Table Entries | SE16N |
| Debug Mode | /h |
| Transport Organizer | SE10 |
| Object Navigator | SE80 |
No comments:
Post a Comment