ABAP Language # Overview

2
SAP NetWeaver AS ABAP Release 731, ©Copyright 2015 SAP AG All rights reserve! ABAP Programming Language # Overview  ABAP is a progra""i#g la#g$age !evelop e! %y SAP &or progra""i#g %$si#ess appli'atio#s i# the SAP e#viro#"e#t Previo$sly o#ly pro'e!$ral, ABAP is #o( also a# o%)e't*orie#te! la#g$age tha#+s to t he  ABAP %)e'ts e#ha#'e"e#t ABAP and SAP NetWeaver -# SAP NetWeaver, ABAP is the progra""i#g i#ter&a'e o& Appli'atio# Server ABA P .AS ABAP/ Prere$isite &or the $se o& the ABAP progra""i#g la#g$age is the i#stallatio# o& a# Appli'atio# Server ABAP ost o& the 'o"po#e#ts o& a# AS ABAP 'a# %e orga#ie! a''or!i#g to their tas+s i# the layers o& a three*tier 'lie#t*server ar'hite't$re (ith prese#tatio#, appli'atio#, a#! !ata%ase layers he prese#tatio# layer  is !istri%$te! to the (or+statio#s o& i#!ivi!$al $sers a#! represe#ts the $ser i#ter&a'e o& a# AS ABAP . SAP G4- or We% %ro(ser/ he appli'atio# layer  is realie! %y o#e or "ore appli'atio# servers he appli'atio# layer 'o#tai#s the  ABAP r$#ti"e e#viro#"e#t  i# (hi'h ABAP progra"s are ee'$te! he !ata%ase layer  'o#sists o& a !ata%ase syste" i# (hi'h the 'e#tral !ataset o& a# AS ABAP is store! hese three layers are a''o"pa#ie! %y the &ollo(i#g 'o""$#i'atio# 'o"po#e#ts6 -#ter#et Co""$#i'atio# a#ager .-C/ -#ter#et Co""$#i'atio# a#ager is a pro'ess o& AS ABAP that e#a%les AS ABAP to 'o""$#i'ate !ire'tly (ith the -#ter#et $si#g P8PS8SP -C is $se! to 'o##e't We%*%ase! prese#tatio# 'o"po#e#ts s$'h as We% 9y#pro ABAP a#! BSP -C also e#a%les a# AS ABAP to %e $se! %oth as a 'lie#t a#! as a server &or We% servi'es o a' 'ess the -C &ro" (ithi# ABAP p rogra"s, the 'lasses a#! i#ter&a'es o& the -#ter#et Co""$#i'atio# :ra"e(or+ .-C:/ are $se! R:C -#ter&a'e his is the 'lassi'al &$#'tio#al i#ter&a'e o& AS ABAP A Re"ote :$#'tio# Call is a 'all o& a &$#'tio# i# a syste" other tha# the o#e i# (hi'h the 'alli#g progra" is r $##i#g Calls are possi%le %et(ee# !i&&ere#t  AS ABAPs or %et(ee# a# AS A BAP a#! a# eter#al syste" # AS ABAP , the &$#'tio#s are realie! i# &$#'tio# "o!$les -# eter#al s yste"s, spe'ially progra""e! &$#'tio#s are 'alle! (hose i#ter&a'e si"$lates a &$#'tio# "o!$le he "ai# role o& ABAP progra"s i# the appli'atio# layer is the pro' essi#g a#! &or"atti#g o& !ata &ro" the !ata%ase layer a#! its tra#s&er to a#! re'eipt o& i#p$t &ro" the prese#tatio# layer or the 'o""$#i'atio# 'o"po#e#ts Scope and Application Areas of ABAP  ABAP is a ;G< la#g $age !evelope! spe'i&i'ally &or the "ass pro'essi#g o& !ata i# %$si#ess appli'atio#s -t o&&ers the &ollo(i#g a!va#tages i# 'o"pariso# to ele"e#tary la#g$ages (here these &$#'tio#s are s tore! i# li%raries6 9ata%ase a''ess i#tegrate! i#to the la#g$age as pe# S=< Per&or"a#'e opti"iatio# o& !ata%ase a''ess i#tegrate! i#to the ABAP r$#ti"e e#viro#"e#t thro$gh the $se o& SAP %$&&eri#g -#ter#al ta%les &or !y#a"i' storage a#! pro'essi#g o& "ass ta%le !ata i# the (or+i#g "e"ory he 'o#'ept o& #li#e ra#sa'tio# Pro'essi#g .< P/ i#tegrate! i#to the ABAP r$#ti"e e#viro#"e#t, e#a%li#g "$ltiple $sers to a''ess the 'e#tral !ata%ase at the sa"e ti"e $si#g the SAP <4W he la#g$age has a# i#tegrate! i#ter&a'e to other progra""i#g e#viro#"e#ts $si#g Re"ote :$#'tio# Call he la#g$age has a# i#tegrate! i#ter&a'e to >< he i#tegratio# o& these &$#'tio#s i#to the la#g$age is a parti'$lar %e#e&it &or the stati' 'he'+*e#a%le"e#t a#! per&or"a#'e o& progra"s -# ret$r#, this "ea#s that ABAP also 'o#tai#s 'o#si!era%ly "ore la#g$age ele"e#ts tha# a# ele"e#tary progra""i#g la#g$age Programming Models

Transcript of ABAP Language # Overview

8/9/2019 ABAP Language # Overview

http://slidepdf.com/reader/full/abap-language-overview 1/2

SAP NetWeaver AS ABAP Release 731, ©Copyright 2015 SAP AG All rights reserve!

ABAP Programming Language # Overview ABAP is a progra""i#g la#g$age !evelope! %y SAP &or progra""i#g %$si#ess appli'atio#s i# the SAPe#viro#"e#t Previo$sly o#ly pro'e!$ral, ABAP is #o( also a# o%)e't*orie#te! la#g$age tha#+s to the ABAP%)e'ts e#ha#'e"e#t

ABAP and SAP NetWeaver-# SAP NetWeaver, ABAP is the progra""i#g i#ter&a'e o& Appli'atio# Server ABAP .AS ABAP/ Prere$isite&or the $se o& the ABAP progra""i#g la#g$age is the i#stallatio# o& a# Appli'atio# Server ABAP ost o& the'o"po#e#ts o& a# AS ABAP 'a# %e orga#ie! a''or!i#g to their tas+s i# the layers o& a three*tier 'lie#t*serverar'hite't$re (ith prese#tatio#, appli'atio#, a#! !ata%ase layers

• he prese#tatio# layer  is !istri%$te! to the (or+statio#s o& i#!ivi!$al $sers a#! represe#ts the $ser

i#ter&a'e o& a# AS ABAP .SAP G4- or We% %ro(ser/

• he appli'atio# layer  is realie! %y o#e or "ore appli'atio# servers he appli'atio# layer 'o#tai#s the

 ABAP r$#ti"e e#viro#"e#t i# (hi'h ABAP progra"s are ee'$te!

• he !ata%ase layer  'o#sists o& a !ata%ase syste" i# (hi'h the 'e#tral !ataset o& a# AS ABAP is

store!

hese three layers are a''o"pa#ie! %y the &ollo(i#g 'o""$#i'atio# 'o"po#e#ts6

•-#ter#et Co""$#i'atio# a#ager  .-C/-#ter#et Co""$#i'atio# a#ager is a pro'ess o& AS ABAP that e#a%les AS ABAP to 'o""$#i'ate!ire'tly (ith the -#ter#et $si#g P8PS8SP -C is $se! to 'o##e't We%*%ase! prese#tatio#'o"po#e#ts s$'h as We% 9y#pro ABAP a#! BSP -C also e#a%les a# AS ABAP to %e $se! %oth as a'lie#t a#! as a server &or We% servi'es o a''ess the -C &ro" (ithi# ABAP progra"s, the 'lassesa#! i#ter&a'es o& the -#ter#et Co""$#i'atio# :ra"e(or+ .-C:/ are $se!

• R:C -#ter&a'e

his is the 'lassi'al &$#'tio#al i#ter&a'e o& AS ABAP A Re"ote :$#'tio# Call is a 'all o& a &$#'tio# i# asyste" other tha# the o#e i# (hi'h the 'alli#g progra" is r$##i#g Calls are possi%le %et(ee# !i&&ere#t AS ABAPs or %et(ee# a# AS ABAP a#! a# eter#al syste" # AS ABAP, the &$#'tio#s are realie! i#&$#'tio# "o!$les -# eter#al syste"s, spe'ially progra""e! &$#'tio#s are 'alle! (hose i#ter&a'esi"$lates a &$#'tio# "o!$le

he "ai# role o& ABAP progra"s i# the appli'atio# layer is the pro'essi#g a#! &or"atti#g o& !ata &ro" the

!ata%ase layer a#! its tra#s&er to a#! re'eipt o& i#p$t &ro" the prese#tatio# layer or the 'o""$#i'atio#'o"po#e#ts

Scope and Application Areas of ABAP ABAP is a ;G< la#g$age !evelope! spe'i&i'ally &or the "ass pro'essi#g o& !ata i# %$si#ess appli'atio#s -to&&ers the &ollo(i#g a!va#tages i# 'o"pariso# to ele"e#tary la#g$ages (here these &$#'tio#s are store! i#li%raries6

• 9ata%ase a''ess i#tegrate! i#to the la#g$age as pe# S=<

• Per&or"a#'e opti"iatio# o& !ata%ase a''ess i#tegrate! i#to the ABAP r$#ti"e e#viro#"e#t thro$gh

the $se o& SAP %$&&eri#g

• -#ter#al ta%les &or !y#a"i' storage a#! pro'essi#g o& "ass ta%le !ata i# the (or+i#g "e"ory

• he 'o#'ept o& #li#e ra#sa'tio# Pro'essi#g .<P/ i#tegrate! i#to the ABAP r$#ti"e e#viro#"e#t,

e#a%li#g "$ltiple $sers to a''ess the 'e#tral !ata%ase at the sa"e ti"e $si#g the SAP <4W

• he la#g$age has a# i#tegrate! i#ter&a'e to other progra""i#g e#viro#"e#ts $si#g Re"ote :$#'tio#

Call

• he la#g$age has a# i#tegrate! i#ter&a'e to ><

he i#tegratio# o& these &$#'tio#s i#to the la#g$age is a parti'$lar %e#e&it &or the stati' 'he'+*e#a%le"e#t a#!per&or"a#'e o& progra"s -# ret$r#, this "ea#s that ABAP also 'o#tai#s 'o#si!era%ly "ore la#g$age ele"e#tstha# a# ele"e#tary progra""i#g la#g$age

Programming Models

8/9/2019 ABAP Language # Overview

http://slidepdf.com/reader/full/abap-language-overview 2/2

 ABAP s$pports a# o%)e't*orie#te! progra""i#g "o!el that is %ase! o# 'lasses a#! i#ter&a'esa#! a pro'e!$ral"o!el %ase! o# s$%ro$ti#es a#! &$#'tio# "o!$les Both "o!$les are i#teropera%le

Note

We re'o""e#! that yo$ $se ABAP %)e'ts as "$'h as possi%le &or %oth #e( pro)e'ts a#! &or re!esig#i#geisti#g pro)e'ts

Multilingual Capabilithe "$ltili#g$al 'apa%ility o& ABAP progra"s is e#a%le! %y the etra'tio# o& la#g$age*spe'i&i' progra"'o"po#e#ts &ro" the so$r'e 'o!e, (hi'h are the# reloa!e! (he# the progra" ee'$tes i# a''or!a#'e (ith thee#viro#"e#t A tet e#viro#"e#t !eter"i#es the pre'ise progra" %ehavior, &or ea"ple the or!er i# (hi'h tetis sorte!, at r$#ti"e ABAP s$pports 'o!e pages, si#gle*%yte 'o!e, !o$%le %yte 'o!e, a#! 4#i'o!e :or $se i#a 4#i'o!e syste", a progra" "$st &$l&ill 'ertai# prere$isites a#! %e i!e#ti&ie! as a 4#i'o!e progra"