abap 1.ppt

23

Upload: prashant-adhikari

Post on 05-May-2017

213 views

Category:

Documents


0 download

TRANSCRIPT

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

MM SDPP Cust. Dev.

Database

Hardware

SAP Kernel / Basis

Operating System

FI/CO

Page 4: ABAP 1.ppt

Data Dictionary

HardwareOperating System

DatabaseSAP 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

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

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

Type definitionsStructure

Table typeData elements

DB objects

DB Table

Table

ServicesScreen Poss. Values

F4

Function of the ABAP Dictionary

Page 9: ABAP 1.ppt

Dictionary

Table field

Table

Basic Objects of the ABAP

Data Element

uses

uses

Domain

Page 10: ABAP 1.ppt

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

Page 11: ABAP 1.ppt

Example

CARRIDMANDTTable : SPLFI

CONNID AIRPFROM AIRPTO... ...

Data element S_FROMAIRP

Domain S_AIRPID

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

Binary

search

Structure of an Index

Page 13: ABAP 1.ppt

DATABASE

ABAP programSELECT * FROM SBOOKWHERE . . .

R/3 table buffer

Database interface

Data Access using the Buffer

Page 14: ABAP 1.ppt

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

Page 15: ABAP 1.ppt

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

Page 16: ABAP 1.ppt

F5 F4 F8F7F6F3F2F1

Table 3Table 2Table 1

F8F5F3F2F1

View on datathat isdistributed onmore than onetable

View on the tables

Why do you Need Views?

Page 17: ABAP 1.ppt

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

Page 18: ABAP 1.ppt

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

Page 19: ABAP 1.ppt

Interactive Report

Program

Simple Report

Program

Dialog Program

Batch input program

Types of ABAP Programs

Page 20: ABAP 1.ppt

ABAP 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

LIST-HEADINGS

SKIP

NEWPAGE

ULINE

REPORTWRITE FORMAT

Simple Output / Formatting

Page 22: ABAP 1.ppt

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

Page 23: ABAP 1.ppt

TEXT - xxx (xxx is a three character string)

‘string’(xxx)

Text Symbols