Abap
Abap
General
Workbench Program maintenance Screen Painter Menu Painter Transactions ABAP/4 Query Translation menu
ABAP/4 (SE38)
Change/Display Variants Attributes (Logical Data Bases) Documentation Text Elements Program Directory Copy/Rename/Delete Development Test
Development/Test
Run-time Analysis Extended Syntax Check Program References Pretty Printer Find Source String
ABAP/4 Editor
Check/Generate Insert Statement Split Line/Copy/Move... Fetch Position Goto Menu Utilities (Local/Global Search) Upload/Download Set/Display Breakpoints Printing (Only a part ...)
Insert Statement
Select * from Call Function Message Write Others e.g. Comment (*, **1, *f, *m ...)
ABAP/4 Debugger
Single Step/Execute/Continue Table (PgUp/PgDn/Format E,C,X) Click on fields (Change Contents or Display) Scroll in program source Goto Menu Set/Delete Breakpoint (Breakpoint At)
ABAP/4 Programming
= Event-driven programming language Working with Reports Report Syntax and layout Declaring and Processing data Events and Flow Control Subroutines Reading and Processing Internal tables/Database tables Selection criteria and Parameters Working with Logical Databases Interactive Reporting
Key Words
Events: Concept
LFA1 LFB1
0000000001
0000000002
0001
0002
0001
0002
LFC1
1990
1991
...
...
1990
1991
...
...
GET LFA1. " processing block WRITE: ... . IF LFA1-LAND1 = 'D'. ... ENDIF. GET LFB1. WRITE: ... . END-OF-SELECTION. WRITE: 'Total:', ... . " processing block
Subroutines
Definition Calling Subroutines Passing data between subroutines/reports (INCLUDE, PERFORM X(Y),...) Function Modules
Simple Reading
SELECT * FROM T005T WHERE LAND1 EQ 'D'. WRITE: T005T-SPRAS, T005T-NATIO. ENDSELECT. SELECT * FROM <dbtab> INTO TABLE <itab> [WHERE ...] [ORDER BY ...]. Note that there is no ENDSELECT here. SELECT * FROM <dbtab> APPENDING TABLE <itab> [WHERE ...] [ORDER BY ...]. If the operation was successful, the system field SY-SUBRC is set to 0, otherwise to 4. SELECT SINGLE * FROM <dbtab> WHERE ... In this case, the WHERE condition may contain only equality conditions linked using AND. You have to specify the primary key in full.
ABAP/4 Course