Author
absheki
View
237
Download
3
Embed Size (px)
8/10/2019 SAP Netweaver ABAP Workbench
1/41
SAPSAPSSystemsandystemsandAApplicationpplicationPProductsinroductsin
Data
ProcessingData
Processing
0
8/10/2019 SAP Netweaver ABAP Workbench
2/41
SAPR/3isEnterpriseSoftware
1
8/10/2019 SAP Netweaver ABAP Workbench
3/41
WhatisSAPR/3?
Aseriesofintegratedcorebusinessapplicationmodulesfortransactionprocessing
Aset
of
functions
that
implement
best
business
practices
Client/Serversoftwarethatprocessesbusiness
transactionsAmethodologyforimplementingapplicationsoftware
2
8/10/2019 SAP Netweaver ABAP Workbench
4/41
3
8/10/2019 SAP Netweaver ABAP Workbench
5/41
WhatisMySAPERP?
R/3EnterpriseFunctionalityplusAnalytics,SEM,FinancialSupplyChainManagement,MSS/ESS,SAPLearningsolution,ERecruiting,SelfServiceProcurement,
Internet
Sales
R/3
Edition
A
set
of
functionsthatimplementbestbusinesspractices
FullNetWeaver
Suite
A
methodology
for
implementingapplicationsoftware
4
8/10/2019 SAP Netweaver ABAP Workbench
6/41
5
mySAP Business SuitemySAP Business Suite
CRMCRM
SCMSCM
PLMPLM
SRMSRM
NetWeaver
mySAP ERP
R/3
My SAP ERPMy SAP ERP
8/10/2019 SAP Netweaver ABAP Workbench
7/41
SAPR/3Advantage
All
of
its
applications
are
robust
and
integratedForindividualbusinessapplication,youmayfindsoftwarewithgreaterfunctionalitythanthatincludedinR/3
But,itisnotintegratedwithotherbusinessapplications
6
8/10/2019 SAP Netweaver ABAP Workbench
8/41
7
8/10/2019 SAP Netweaver ABAP Workbench
9/41
8
8/10/2019 SAP Netweaver ABAP Workbench
10/41
8/10/2019 SAP Netweaver ABAP Workbench
11/41
SAPlogonscreen
10
8/10/2019 SAP Netweaver ABAP Workbench
12/41
SAPR/3System Firstscreenafterlogon
11
8/10/2019 SAP Netweaver ABAP Workbench
13/41
SAPR/3System
Overview
of
R/3
System
12
8/10/2019 SAP Netweaver ABAP Workbench
14/41
LogicalViewofR/3System
13
8/10/2019 SAP Netweaver ABAP Workbench
15/41
LogicalViewofR/3System ThepreviousdiagramshowshowtheR/3Basissystemforms
acentral
platform
within
R/3
System
1. KernelandBasisServices RunningAppl.,User&ProcessAdministration Database
Access
&
Communication
SystemMonitoringandAdministration
2.ABAPWorkbench ThisisthefullfledgeddevelopmentenvironmentforallR/3Application
3.PresentationComponent ResponsibleforInteractionwithUser
14
8/10/2019 SAP Netweaver ABAP Workbench
16/41
SoftwareOrientedViewofR/3System
15
8/10/2019 SAP Netweaver ABAP Workbench
17/41
SoftwareOrientedviewofR/3System TheR/3BasissystemismultitierClient/Serversystem.
DatabaseLayer ThislayerconsistsofacentraldatabasesystemcontainsallofthedataintheR/3System
Components
:
DBMS
&
Database
itself ApplicationLayer
ThislayerconsistsofoneormoreapplicationserverandMessageserver
Messageserver
is
responsible
for
communication
between
theapplicationservers
PresentationLayer ThislayerinterfaceswithR/3System&Users
16
8/10/2019 SAP Netweaver ABAP Workbench
18/41
AdvantagesofMultitierArchitecture DistributionofR/3softwareoverthreelayersmeansthatthesystem
load
is
also
distributed.
This
leads
the
better
system
performance.
Since
the
database
system
contains
all
of
the
data
for
the
entire
R/3system,itissubjecttoaveryheavyloadwhenthesystemisrunning. Itisthereforeagoodideanottorunapplicationprogramsonthesamehost.
ThearchitectureofR/3System,inwhichtheapplicationlayeranddatabaselayerareseparate,allowsyoutoinstallthemonseparatehostsandletthemcommunicateusingthenetwork.
17
8/10/2019 SAP Netweaver ABAP Workbench
19/41
UserOrientedView
18
8/10/2019 SAP Netweaver ABAP Workbench
20/41
ApplicationServer
of
R/3
System
19
8/10/2019 SAP Netweaver ABAP Workbench
21/41
ComponentsofApplicationServer Dispatcher
Thisis
the
link
between
the
work
process
and
the
users
loggedontotheApplicationServer
Gateway ThisistheinterfacebetweentheR/3Communication
protocol(RFC,
CPI/C).
ItcancommunicatewithotherApplicationServerinthesameR/3System,withotherR/3Systems,withotherR/2Systems,orwithothernonSAPSystems
Shared
Memory AlloftheworkprocessesonanApplicationServeruseacommonmainmemoryareacalledsharedmemoryareatosavecontextortobufferconstantdatalocally
20
8/10/2019 SAP Netweaver ABAP Workbench
22/41
ComponentsofR/3ApplicationServerWorkProcesses
Eachworkprocesseslinkedtoamemoryareacontainingthecontextoftheapplicationbeingrun.
Thecontextcontainsthecurrentdataoftheapplication
program. TypesofWorkProcesses
Dialog
Update
Enqueue Spool
Background
21
8/10/2019 SAP Netweaver ABAP Workbench
23/41
22
8/10/2019 SAP Netweaver ABAP Workbench
24/41
23
8/10/2019 SAP Netweaver ABAP Workbench
25/41
DatabaseInterfaceServices Establishingandterminatingtheconnectionsbetweenthework
processand
database
Accesstothedatabasetables
AccesstoR/3Repositoryobjects(ABAP,Screen,)
AccesstoCatalogInformation(ABAPDictionary)
ControllingTransactions(Commit/Rollback..)
TableBufferadministrationontheapplicationserver
Twoways
of
accessing
Databases
:
OpenSQL
NativeSQL
24
8/10/2019 SAP Netweaver ABAP Workbench
26/41
DatabaseAccess:OpenSQL OpenSQLStatementsaresubsetofstandardSQLthatisfullyintegrated
with
ABAP.
They
allow
to
access
the
database
irrespectiveofdatabasesystemR/3SystemInstallationusing.
OpenSQL
Consists
of
DML,DDL,DCL
Open
SQL
goes
beyond
Standard
SQL
to
provide
the
statements
that,inconjunctionwithotherABAPconstructions,cansimplyorspeedupthedatabaseaccess.
25
8/10/2019 SAP Netweaver ABAP Workbench
27/41
DatabaseAccess:NativeSQL
NativeSQLonlylooselyintegratedintoABAP,andallowstoaccessallofthefunctionscontainedintheprogramming
interface
of
the
respective
database
system.
UnlikeOpenSQLstatements,NativeSQLstatementsarenotchecked
and
converted,
but
instead
are
directly
sent
to
the
databasesystem.
26
8/10/2019 SAP Netweaver ABAP Workbench
28/41
27
8/10/2019 SAP Netweaver ABAP Workbench
29/41
ABAP/4
Fourthgenerationlanguage
Eventdriven
AllSAPR/3applicationsandpartsofBasisare
developedinABAP
TheABAPprogramminglanguageunifiestheadvantagesofanobjectorientedlanguage
28
8/10/2019 SAP Netweaver ABAP Workbench
30/41
8/10/2019 SAP Netweaver ABAP Workbench
31/41
ABAPDevelopmentWorkbenchObjectives
Understandworkbenchanditstools
Createaprogram
Knowadvanced
features
of
workbench
30
8/10/2019 SAP Netweaver ABAP Workbench
32/41
ABAPDevelopmentWorkbench
ABAPDevelopmentWorkbenchisagraphical
programmingenvironmentwhichenablesustocreate
new
ABAP
applications
and
change
existing
SAPapplications.
31
8/10/2019 SAP Netweaver ABAP Workbench
33/41
Workbench
32
8/10/2019 SAP Netweaver ABAP Workbench
34/41
Workbench
Development
Workbench
is
made
up
of
the
following
tools Versioningsupport Structuringthedevelopmentobjectinpackages InterfaceeditorsforSAPGUIbasedinterfaces DevelopmenttoolsforWebinterfaces Support
for
multi
lingual
text
elements
and
messages
ConnectiontotheTransportOrganizer DirectaccesstoalldatadefinitionsintheABAPDictionary Debugger Toolsforruntimeanalyses
Testtools
Modificationassistanttocompareuserdefinedextensions
33
Wor enc
8/10/2019 SAP Netweaver ABAP Workbench
35/41
Wor enc
ThemenupathisTools>ABAPWorkbench
34
8/10/2019 SAP Netweaver ABAP Workbench
36/41
WorkbenchToolsRepositoryBrowser Usedtodisplayandedithierarchicallistsofdevelopmentobjects.
Dictionary UsedtodefineandsavedatadefinitionsYoucanalsostoredocumentation,help
information,data
relationships,
and
other
information.YoualsousetheDictionarytogeneratedatabaseobjectsliketablesandindexes.
ABAPEditor YouusetheABAPEditortocreateandeditprogramcode.
35
8/10/2019 SAP Netweaver ABAP Workbench
37/41
WorkbenchToolsFunctionBuilder YouusetheFunctionBuildertodefineandstorefunctionmodules.TheFunctionBuilderstoresthesemodulescentrally.You
can
use
the
library
to
write
new
modules
and
lookupinformationonexistingmodules.
ScreenPainter Usedtodesignthescreensinanapplication'sgraphicaluserinterface.
MenuPainter Usedtodesignthemenusthatappearinyourinterface
36
8/10/2019 SAP Netweaver ABAP Workbench
38/41
ClickthebuttonABAPEditorintheWorkbench
37
8/10/2019 SAP Netweaver ABAP Workbench
39/41
...Creating
aProgram
Nameoftheprogramtobecreatedisgiveninthe
programfieldandclickthecreatebutton.
Theattributesscreenappears,fillthefieldsandsave
it.
Thedevelopmentclasshastobeenteredinthe
dialogbox
that
appears
.
Gotothesourcecode.
38
Creating a program
8/10/2019 SAP Netweaver ABAP Workbench
40/41
Creatingaprogram
Theprogramattributesscreenlookslikethis
39
Creating a program
8/10/2019 SAP Netweaver ABAP Workbench
41/41
Creatingaprogram
TheDevelopmentClassscreenlookslikethis
40