abap 1.ppt
TRANSCRIPT
MM SDPP Cust. Dev.
Database
Hardware
SAP Kernel / Basis
Operating System
FI/CO
Data Dictionary
HardwareOperating System
DatabaseSAP Kernel / Basis
FI/CO MM PP SD Cust. Dev.
Quickviewer
SAP Query
ABAP
SAPscript Remote
Function Call (RFC)
Business Application
Programming Interface (BAPI)
Development Tools
Report writer
Application Link Enabling
(ALE)Data Transfer Workbench
(DX-WB)
Intermediate Documents
(IDOCS)
Legacy System Migration
Workbench (LSMW)
Business Information Warehouse
Development Tools
Type definitionsStructure
Table typeData elements
DB objects
DB Table
Table
ServicesScreen Poss. Values
F4
Function of the ABAP Dictionary
Dictionary
Table field
Table
Basic Objects of the ABAP
Data Element
uses
uses
Domain
Data Element Difference Between Domain and
= semantic attributes (context / usage)
Personnel No.
P.O. No.
Invoice No.
NUMC10
= technical attributes e.g. data type, length
Example
CARRIDMANDTTable : SPLFI
CONNID AIRPFROM AIRPTO... ...
Data element S_FROMAIRP
Domain S_AIRPID
Two-Level Domain Concept :
Data element S_TOAIRP
AIRPORTACAACEBERLCY
BERDENFRALCYLGW
MUCRTMHAM
COUNTNUM00000005000000040000000100000002
0000000700000001000000030000000100000001
000000020000000600000008
CARRIDLHBAUALH
LHAALHBALH
BALHLH
MANDT001001001001
001001001001001
001001001
001 BA 00000003 LHR
001 LH 00000004 LHR
P123678
1449
10
1213
AIRPORTACAACEBERBERDEN FRA HAMLCYLCYLGW
MUCRTM
LHR 5 LHR 11
Index on AIRPORT
SELECT * FROM
SCOUNTER WHERE
AIRPORT = ‘LHR’.
Binary
search
Structure of an Index
DATABASE
ABAP programSELECT * FROM SBOOKWHERE . . .
R/3 table buffer
Database interface
Data Access using the Buffer
MANDT CARRID CARRNAME CURRCODE Check Table SCARR
MANDT CARRID CONNID . . . Foreign Key Table SPFLI
Foreign key fields
Check field
Key fields
Foreign Keys & Check Tables
ABAP Dictionary
Field1 Field2 Field3 Field4 Field1 Field2 Field3 Field4
Transparent Tables and Structures
Physical definition of a table
Database
Field1 Field2 Field3 Field4Table
Table Structure
F5 F4 F8F7F6F3F2F1
Table 3Table 2Table 1
F8F5F3F2F1
View on datathat isdistributed onmore than onetable
View on the tables
Why do you Need Views?
Maintenance of flights
Carrier
Flight number
. . .
LH
Carrier LH No Depart. City Arrival city0400 Frankfurt New York0402 Frankfurt New York 2402 Frankfurt Berlin
. . . . . . . . .
F4
R/3 Standard Function: Input Help
ABAP Dictionary ABAP Editor Screen Painter Menu Painter Function Builder Object Navigator
ABAP Workbench
=> manage data definitions / services
=> create programs
=> create screens
=> create interface
=> create / test functions
=> organize and manage development environment
Interactive Report
Program
Simple Report
Program
Dialog Program
Batch input program
Types of ABAP Programs
ABAP Syntax
First word is key word
Each statement ends with period
Similar statements can be joined together
You can insert comments
Commands
LIST-HEADINGS
SKIP
NEWPAGE
ULINE
REPORTWRITE FORMAT
Simple Output / Formatting
Examples:SY- DATUM (system date)SY- UZEIT (system time)SU- UNAME (user id)
System Variables
• Declared by the system• Automatically filled by the system
See table SYST for complete list
TEXT - xxx (xxx is a three character string)
‘string’(xxx)
Text Symbols