Download presentation
Presentation is loading. Please wait.
Published byJemima Kelley Modified over 9 years ago
1
SAP DEVELOPMENT BASICS Bohuslav Tesar
2
TRAINING OVERVIEW Amazing life of ABAP developer ;) SAP introduction ABAP basics ABAP Reporting
3
AMAZING LIFE OF ABAP DEVELOPER ;)
4
SAP SYSTEM
5
SAP MODULES
6
SYSTEM ARCHITECTURE
7
SYSTEM LANDSCAPE
8
SAP USER INTERFACE / TRANSACTION
9
ROLE BASED MENU (TECHNICAL NAMES)
10
SAP DEVELOPMENT - ABAP Advanced Business Application Programming For SAP enhancement, reports, interfaces Customizing vs. programming
11
ARCHITECTURE OF ABAP RUN
12
SE80 – ABAP WORKBENCH
13
CREATION OF PACKAGE
14
CREATION OF PROGRAM
15
BEGINNING OF ABAP, BASIC COMMANDS Basic rules: Every command lines end with ‘.’ After finishing of program you should make a check of CODE e.g. CTRL+F2 Then you have to activate the report e.g. CTRL+F3 You can run the report by F8. Commands: Write e.g. Write ‘Hello world’. Skip. Uline. Use F1 to see possible parameters for each command
16
EXERCISE 1 1. Create package ‘zts_bas_XX.’ 2. Create report ‘zts_hello_world_xx’ 3. Report should display message ‘Hello world’. 4. Write more lines of code 5. Change color 6. Make some separation lines
17
BASIC ELEMENTS IN ABAP Data types Definition of Data objects Basic commands in ABAP Debugging
18
STANDARD TYPES IN ABAP Predefined types Final / complete D, date, format YYYYMMD, length 8 T, time, format HHMMSS, length 6 I, integer, length 4 bytes F, float, length 8 STRING, string with floating length XSTRING, hexadecimal string with floating length
19
STANDARD TYPES IN ABAP Predefined types Final / complete C, string of characters N, Numeric string X, hexadecimal string P, number with decimals
20
DATA DEFINITION
21
EXERCISE 2 1. Create report ‘zts_bc_xx’ 2. Prepare some two numbers, which will be initially filled 3. Practice some calculation operation with this two numbers 4. Create string and concatenate string / substrings
22
PARAMETERS – USER INPUTS
23
EXERCISE 3 1. Create simple calculator
24
ABAP BASIC COMMANDS - BRANCHES
25
ABAP BASIC COMMANDS - LOOPS
26
OTHER DATA OBJECTS Constants CONSTANTS Defined type Parameter Value is obligatory Text symbols Multilanguage, translation Own repository object
27
LOCAL DATA TYPES IN ABAP
28
ABAP DICTIONARY – GLOBAL DATA TYPES
29
DATA TYPE DEFINITION
30
DATA DEFINITION
31
ABAP RUNTIME
32
ABAP BASIC COMMANDS
33
ABAP BASIC COMMANDS – DIALOG MESSAGES
34
ABAP DEBUGGING - BREAK POINT
35
ABAP DEBUGGING - /H
36
ABAP DEBUGGING - WATCH POINT
37
COMPLEX DATA OBJECTS Definition of structure a using of structure Definition of internal table a working with internal table Analyze of complex data objects in debugger
38
STRUCTURES DEFINITION Global type Local type
39
STRUCTURE – GLOBAL DEFINITION
40
STRUCTURE – USE
41
STRUCTURE – LOCAL DEFINITION
42
COPY OF STRUCTURE CONTENT
43
STRUCTURE EXAMPLE
44
DEFINITION AN USING OF INTERNAL TABLE Basic attributes Type of line Key Type of table Standard Sorted Hashed
45
ATTRIBUTES OF INTERNAL TABLE
46
TYPES OF INTERNAL TABLE
47
INTERNAL TABLE GLOBAL DEFINITION
48
INTERNAL TABLES – LOCAL DEFINITION
49
INTERNAL TABLES – INDEPENDENT DEFINITION
50
INTERNAL TABLES – POSSIBLE DEFINITION
51
INTERNAL TABLE – DEFINITION STRUCTURE OF DATA OBJECTS
52
INTERNAL TABLES - OPERATION
53
INTERNAL TABLES – OPERATION – MULTIPLE RECORDS
54
INTERNAL TABLES – OPERATION - EXAMPLE
55
INTERNAL TABLE -LOOP
56
INTERNAL TABLE –LOOP WITH CONDITION
57
INTERNAL TABLE – LOOP WITH KEY
58
SORTING AND CLEARING OF INTERNAL TABLES
59
INTERNAL TABLE - COLLECT
60
INTERNAL TABLE WITH / WITHOUT HEADER LINE
61
DATABASE TABLES AND DATA DICTIONARY
62
DATA MODEL EXAMPLE
63
FIELD OF TABLE
64
TECHNICAL STRUCTURE OF TABLE
65
TABLE IN DATA DICTIONARY
66
USING OBJECTS OF DATA DICTIONARY
67
TRANSPARENT TABLE – IN SAP
68
HELP A SEARCH HELP
69
RETRIEVING DATA FROM TRANSPARENT TABLES
70
SELECT FROM TABLE
71
SELECT SINGLE RECORD
72
SELECT SINGLE 2 ND EXAMPLE
73
SELECT – ENDSELECT (SELECT IN THE LOOP)
74
SELECT AS FETCH ARRAY – NO STATEMENT ENDSELECT
75
SELECT CLIENT SPECIFIC
76
INTERACTIVE SELECT WITH USER PARAMETER
77
READING MULTIPLE DATA TABLES
78
JOIN TABLES CONDITION
79
JOIN TABLES EXAMPLE
80
CHANGE ACCESS TO DATABASE
81
MODULARIZATION TECHNIQUES Processing blocks that are called from ABAP programs: Subroutines (local modularization) Function modules (global modularization) Methods (Object oriented can be local or global )
82
SUBROUTINES – LOCAL MODULARIZATION
83
SUBROUTINES – PARAMETERS LOCAL AND GLOBAL USING VALUE(par1) - Call by value CHANGING VALUE(par1) - Call by value and result CHANGING, USING par1 - Call by reference
84
SUBROUTINES – PARAMETERS LOCAL AND GLOBAL
85
FUNCTION MODULES (GLOBAL MODULARIZATION) Generally stored in SAP function library Function modules are organized in function groups
86
FUNCTION MODULES - INTERFACE
87
FUNCTION MODULE USING IN PROGRAM
88
FUNCTION MODULE DEFINITION
89
FUNCTION MODULE – CALL IN REPORT
90
FUNCTION MODULE – CALL IN REPORT, EXCEPTION
91
FUNCTION MODULE - CREATION Create function group Create function module BAPI
92
INCLUDE
93
AUTHORIZATION CHECK
94
AUTHORIZATION CHECK - PROGRAM
95
STANDARD SYSTEM MONITORING
96
EVENT IN ABAP
97
EVENT EXAMPLE
98
EVENTS IN MORE DETAIL
99
AT LINE-SELECTION EXAMPLE
100
LOOP AT SCREEN
101
AT SLECTION SCREEN
103
AT SELECTION-SCREEN ON HELP-REQUEST FOR
104
TRANSACTION - LIST SE80 – Abap workbench SE37 – Function builder BAPI – transaction for BAPI overview SE38 / SA38 – report execution SE11 – DATA DICTIONARY SE10 – Transport management
105
TRANSPORTING AND PRINCIPALS
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.