23

ABAP 1.ppt

Embed Size (px)

DESCRIPTION

ABAP

Citation preview

Page 1: ABAP 1.ppt
Page 2: ABAP 1.ppt
Page 3: ABAP 1.ppt

MM SDPPCust. Dev.

Database

Hardware

SAP Kernel / Basis

Operating System

FI/CO

Page 4: ABAP 1.ppt

Data Dictionary

Hardware

Operating System

Database

SAP Kernel / Basis

FI/CO MM PP SD Cust. Dev.

Page 5: ABAP 1.ppt

Quickviewer

SAP Query

ABAP

SAPscript

Remote Function Call

(RFC)

Business Application

Programming Interface (BAPI)

Development Tools Development Tools

Report writer

Page 6: ABAP 1.ppt

Application Link Enabling

(ALE)

Data Transfer Workbench

(DX-WB)

Intermediate Documents

(IDOCS)

Legacy System Migration

Workbench (LSMW)

Business Information Warehouse

Development Tools Development Tools

Page 7: ABAP 1.ppt
Page 8: ABAP 1.ppt

Type definitionsType definitions

StructureStructure

Table typeTable typeData elementsData elements

DB objectsDB objects

DB TableDB Table

TableTable

ServicesServices

ScreenScreen Poss. ValuesPoss. Values

F4F4

Function of the ABAP DictionaryFunction of the ABAP Dictionary

Page 9: ABAP 1.ppt

Dictionary Dictionary

Table field

Table

Basic Objects of the ABAP Basic Objects of the ABAP

Data Element

uses

uses

Domain

Page 10: ABAP 1.ppt

Data Element Data Element

Difference Between Domain and Difference Between Domain and

= semantic attributes (context / usage)

Personnel No.

P.O. No.

Invoice No.

NUMC10

= technical attributes e.g. data type, length

Page 11: ABAP 1.ppt

Example Example

CARRIDMANDT

Table : SPLFITable : SPLFICONNID AIRPFROM AIRPTO... ...

Data element S_FROMAIRP

Domain S_AIRPID

Two-Level Domain Concept : Two-Level Domain Concept :

Data element S_TOAIRP

Page 12: ABAP 1.ppt

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’.

SELECT * FROM

SCOUNTER WHERE

AIRPORT = ‘LHR’.

Binary

search

Structure of an Index Structure of an Index

Page 13: ABAP 1.ppt

DATABASEDATABASE

ABAP programSELECT * FROM SBOOKWHERE . . .

ABAP programSELECT * FROM SBOOKWHERE . . .

R/3 table bufferR/3 table buffer

Database interfaceDatabase interface

Data Access using the Buffer Data Access using the Buffer

Page 14: ABAP 1.ppt

MANDT CARRID CARRNAME CURRCODE MANDT CARRID CARRNAME CURRCODE

Check Table SCARR Check Table SCARR

MANDT CARRID CONNID . . . MANDT CARRID CONNID . . .

Foreign Key Table SPFLI Foreign Key Table SPFLI

Foreign key fields

Check field

Key fields

Foreign Keys & Check Tables Foreign Keys & Check Tables

Page 15: ABAP 1.ppt

ABAP DictionaryABAP Dictionary

Field1Field1 Field2Field2 Field3Field3 Field4Field4 Field1Field1 Field2Field2 Field3Field3 Field4Field4

Transparent Tables and Structures Transparent Tables and Structures

Physical definition of a tablePhysical definition of a table

DatabaseDatabase

Field1Field1 Field2Field2 Field3Field3 Field4Field4TableTable

TableTable StructureStructure

Page 16: ABAP 1.ppt

F5 F5 F4 F4F8F8F7F7F6F6F3F3F2F2F1F1

Table 3Table 2Table 1

F8F5F3F2F1

View on datathat isdistributed onmore than onetable

View on the tables

Why do you Need Views? Why do you Need Views?

Page 17: ABAP 1.ppt

Maintenance of flights

Carrier

Flight number

. . .

Maintenance of flights

Carrier

Flight number

. . .

LH

Carrier LH

No Depart. City Arrival city

0400 Frankfurt New York

0402 Frankfurt New York

2402 Frankfurt Berlin

. . . . . . . . .

Carrier LH

No Depart. City Arrival city

0400 Frankfurt New York

0402 Frankfurt New York

2402 Frankfurt Berlin

. . . . . . . . .

F4

R/3 Standard Function: Input Help R/3 Standard Function: Input Help

Page 18: ABAP 1.ppt

ABAP Dictionary ABAP Dictionary

ABAP Editor ABAP Editor

Screen Painter Screen Painter

Menu Painter Menu Painter

Function Builder Function Builder

Object Navigator Object Navigator

ABAP Workbench ABAP Workbench

=> manage data definitions / services

=> create programs

=> create screens

=> create interface

=> create / test functions

=> organize and manage development environment

Page 19: ABAP 1.ppt

Interactive Report

Program

Simple Report

Program

Dialog Program

Batch input program

Types of ABAP Programs Types of ABAP Programs

Page 20: ABAP 1.ppt

ABAP SyntaxABAP Syntax

First word is key word

Each statement ends with period

Similar statements can be joined together

You can insert comments

Page 21: ABAP 1.ppt

Commands Commands

LIST-HEADINGS

SKIP

NEWPAGE

ULINE

REPORTWRITE FORMAT

Simple Output / Formatting Simple Output / Formatting

Page 22: ABAP 1.ppt

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

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

System VariablesSystem Variables

• Declared by the system• Automatically filled by the system

See table SYST for complete list

Page 23: ABAP 1.ppt

TEXT - xxx (xxx is a three character string)

‘string’(xxx)

Text Symbols Text Symbols