Online ABAP Editor
Draft and review ABAP modules with syntax highlighting tuned for enterprise maintenance workflows.
Completions appear as you type; press Ctrl+Space to open the list. Tab expands snippets where available. Find: Ctrl+F (Cmd+F on Mac). Format: toolbar button or Ctrl+Shift+B for supported languages.
Choose editor font size in pixels
Draft and review ABAP modules with syntax highlighting tuned for enterprise maintenance workflows.
Related technologies: SAP NetWeaver, SAP HANA, Open SQL, BAPI integrations — see also SQL Editor, JSON Editor.
Starter snippet
REPORT zdemo_hello.
DATA: lt_material TYPE TABLE OF mara,
ls_material TYPE mara.
SELECT matnr, mtart, ersda
FROM mara
INTO TABLE lt_material
UP TO 10 ROWS.
LOOP AT lt_material INTO ls_material.
WRITE: / ls_material-matnr, ls_material-mtart.
ENDLOOP.Structured program
IDENTIFICATION DIVISION.
PROGRAM-ID. ABAP.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-COUNT PIC 9(4) VALUE 0.
PROCEDURE DIVISION.
DISPLAY 'START'.
STOP RUN. Variables
DATA lv_count TYPE i. CONSTANTS lc_max TYPE i VALUE 100.Loops
LOOP AT lt_tab INTO ls_row. ENDLOOP.Functions / methods
METHODS / FORMs: PERFORM subroutine USING p_input.Comments
* line comment " inline commentData definitions
01 WS-RECORD.
05 WS-ID PIC X(10).
05 WS-AMT PIC 9(7)V99.PERFORM loop
PERFORM VARYING WS-I FROM 1 BY 1
UNTIL WS-I > 10
DISPLAY WS-I
END-PERFORM Batch read loop
* ABAP batch skeleton
READ INPUT-FILE
AT END SET EOF-FLAG TO TRUE
NOT AT END
PERFORM PROCESS-RECORD
END-READ - Can I run ABAP programs here?
- This page is an editor with ABAP highlighting and snippets. Execution requires an SAP application server; use it to draft and download source.
- Does formatting match SAP GUI?
- The format action re-indents text; final alignment should be checked against your system’s pretty-printer settings.