Vous êtes sur la page 1sur 23

Cust.

FI/CO MM PP SD
Dev.

SAP Kernel / Basis


Database
Operating System
Hardware
FI/CO MM PP SD Cust.
Dev.

Data Dictionary

SAP Kernel / Basis


Database
Operating System
Hardware
Development
Development Tools
Tools

Quickviewer SAPscript

SAP Remote Function


Query Call (RFC)
Report
writer Business
Application
ABAP Programming
Interface (BAPI)
Development
Development Tools
Tools

Intermediate
Application Link
Documents
Enabling (ALE)
(IDOCS)
Data Transfer
Workbench
(DX-WB)
Legacy System
Migration Business
Workbench Information
(LSMW) Warehouse
Function
Function of
of the
the ABAP
ABAP Dictionary
Dictionary

DB
DB objects
objects
Type
Type definitions
definitions
Structure
Structure Table
Table

DB
DB Table
Table

Data elements Table


Data elements Table type
type

Services
Services
Poss.
Poss. Values
Values
Screen
Screen
F4
F4
Basic
Basic Objects
Objects of
of the
the ABAP
ABAP
Dictionary
Dictionary

Table
Table
field

uses

Data Element
uses

Domain
Difference
Difference Between
Between Domain
Domain and
and
Data
Data Element
Element

= technical attributes
e.g. data type, length
= semantic attributes
(context / usage)

Personnel No.

NUMC10 P.O. No.

Invoice No.
Two-Level
Two-Level Domain
Domain Concept
Concept ::
Example
Example

Table :: SPLFI
Table SPLFI
MANDT CARRID CONNID ... AIRPFROM ... AIRPTO

Data element S_FROMAIRP Data element S_TOAIRP

 Domain S_AIRPID
Structure
Structure of
of an
an Index
Index

SELECT
SELECT* *FROM
FROM
AIRPORT P MANDT CARRID COUNTNUM AIRPORT
SCOUNTER
SCOUNTERWHERE
WHERE ACA 1 001 LH 00000005 ACA
AIRPORT
AIRPORT==‘LHR’. ACE 2
‘LHR’. 001 BA 00000004 ACE
BER 3 001 UA 00000001 BER
BER 6 001 LH 00000002 LCY
DEN 7 001 BA 00000003 LHR
FRA 8 001 LH 00000007 BER
HAM 14 001 AA 00000001 DEN
Binary LCY 4 001 LH 00000003 FRA
LCY 9 001 BA 00000001 LCY
search LGW 10 001 LH 00000001 LGW
LHR 5 001 LH 00000004 LHR
LHR 11 001 BA 00000002 MUC
MUC 12 001 LH 00000006 RTM
RTM 13 001 LH 00000008 HAM
Index on AIRPORT
Data
Data Access
Access using
using the
the Buffer
Buffer

ABAP
ABAP program
program
SELECT
SELECT ** FROM
FROM SBOOK
SBOOK R/3
R/3 table
table buffer
buffer
WHERE
WHERE .. .. ..

Database
Database interface
interface

DATABASE
DATABASE
Foreign
Foreign Keys
Keys &
& Check
Check Tables
Tables

Foreign key fields

ForeignKey
Foreign Key Table
Table SPFLI
SPFLI
MANDT
MANDT CARRID
CARRID CONNID
CONNID .... ..
Check field

CheckTable
Check Table SCARR
SCARR
MANDT
MANDT CARRID
CARRID CARRNAME
CARRNAME CURRCODE
CURRCODE

Key fields

Transparent
Transparent Tables
Tables and
and Structures
Structures

Table
Table ABAP
ABAP Dictionary
Dictionary Structure
Structure
Field1
Field1Field2
Field2Field3
Field3Field4
Field4 Field1
Field1Field2
Field2Field3
Field3Field4
Field4

Database
Database

Table
Table
Field1
Field1Field2
Field2Field3
Field3Field4
Field4

Physical
Physical definition
definition of
of a
a table
table
Why
Why do
do you
you Need
Need Views?
Views?

View on the tables

F1 F2 F3 F5 F8

View on data
that is F1
F1 F2
F2 F3
F3 F6
F6 F7
F7 F8
F8
F4
F4 F5
F5
distributed on
more than one
table
Table 1 Table 3
Table 2
R/3
R/3 Standard
Standard Function:
Function: Input
Input Help
Help

Carrier
Carrier LH
LH
No Depart.
No Depart.City
City Arrival
Arrivalcity
city
0400 Frankfurt
0400 Frankfurt NewYork
New York
0402
0402 Frankfurt
Frankfurt NewYork
New York
Maintenance
Maintenance of
of flights
flights 2402 Frankfurt Berlin
2402 Frankfurt Berlin
LH ...... ...... ......
Carrier
Carrier

Flight
Flightnumber
number F4

.. .. ..
ABAP
ABAP Workbench
Workbench

ABAP
ABAPDictionary
Dictionary => manage data definitions / services
ABAP
ABAPEditor
Editor => create programs
Screen
ScreenPainter
Painter => create screens
Menu
MenuPainter
Painter => create interface
Function
FunctionBuilder
Builder => create / test functions
Object
ObjectNavigator
Navigator => organize and manage development
environment
Types
Types of
of ABAP
ABAP Programs
Programs

Interactive
Simple Report
Report
Program
Program

Dialog Program Batch input


program
ABAP
ABAP Syntax
Syntax


First word is key word

Each statement ends with period

Similar statements can be joined together

You can insert comments


Simple
Simple Output
Output // Formatting
Formatting
Commands
Commands

ULINE SKIP

WRITE REPORT FORMAT

NEW LIST-
PAGE HEADINGS
System
System Variables
Variables

• Declared by the system


• Automatically filled by the system

Examples:
Examples:
SY-DATUM
SY- DATUM (system
(systemdate) date)
SY-UZEIT
SY- UZEIT (system
(systemtime)time)
SU-UNAME
SU- UNAME (user
(userid)id)

See table SYST for complete list


Text
Text Symbols
Symbols

TEXT - xxx (xxx is a three character


string)
‘string’(xxx)

Vous aimerez peut-être aussi