wd a complete+example+with+screenshots
TRANSCRIPT
-
8/10/2019 WD A complete+Example+with+Screenshots
1/29
-
8/10/2019 WD A complete+Example+with+Screenshots
2/29
(!ma#e copied from SAP content)
!n WD for ABAP mostly the same structure is used with the #enerated code 1 the custom
code processed for load #eneration to finally render the runnable application"
& Application scenarios with WD
he WD application can be used to access different %inds of data sources" From anABAP wor%bench, all %inds of re2usable components li%e function modules, BAP!s 1
methods can be directly accessed" his rules out the very possibility of the application
bein# disrupted abruptly to #ive an &P error when connection from the 0ava to theABAP stac% when wor%in# with the normal WD for 0ava scenarios" !t is even possible to
access the database usin# the ABAP S.3.4 statement (*ot recommended)"
(!ma#e copied from SAP content)
he Web services can be used usin# the standard S5AP protocol to business data in the
dynpro pa#e"
-
8/10/2019 WD A complete+Example+with+Screenshots
3/29
he SAP 0ava connector (04o) can be used to call methods of an .0B residin# on the
SAP 06.. en#ine"
7odel ob8ects are yet *5 supported by SAP WD ABAP" !t is recommended to havereusable entities which will encapsulate the business lo#ic to create the ABAP classes
containin# the source code" he development of faceless WD components are also
supported which is later accessed by other WD components"
' Beneits o WD
he main #oal of WD is to provide applications usin# minimal development efforts
and devotin# ma'imum effort on the desi#n time"
By usin# a a declarative approach and meta model declarations, the lan#ua#eindependent !s can be developed with the least effort" hou#h the provision of hand
written code e'ists, the structure is desi#ned to manipulate the business data"
WD for ABAP supports !nternaliation, flic%er free screen and a clean separation of !sand business lo#ic" !t also supports value help, dynamic pro#rammin#, SAP 3ist 9iewer
and seamless inte#ration with the SAP Portal"
( De#elopin% an application usin% WD ABAP
Objective: he ob8ective of this application is to #et people started with thedevelopment of web based application in the SAP ABAP en#ine usin# the SAP
WebDynPro for ABAP pro#rammin# model"
Structure of the application:he re$uirement is to have 6 views, (SA: and :.S3 view)" ser enters the name in
the first view and clic%s on the submit button" he second view reco#nies the name andwelcomes the user"
STEPS
Step 1) Open ABAP Workbench (se80) select Web!"nPro #o$p%&nf enter a na$e for
"our W! co$ponent an' press enter
-
8/10/2019 WD A complete+Example+with+Screenshots
4/29
Step ) Save the object in a transport packa*e or as a local object
-
8/10/2019 WD A complete+Example+with+Screenshots
5/29
+ou shoul' no, *et the follo,in* screen A co$ponent controller co$ponent interface
an' ,in'o, is create' b" 'efault
Step -) #reate a W! vie, . S/A/ ie,
-
8/10/2019 WD A complete+Example+with+Screenshots
6/29
-
8/10/2019 WD A complete+Example+with+Screenshots
7/29
Save "our application
Step 6) !ouble click on the Win'o, Select 3!&/ $o'e
-
8/10/2019 WD A complete+Example+with+Screenshots
8/29
Step 7) i*ht click on the Win'o, Select 3B3! ie,
Step 9) Select "our vie,
-
8/10/2019 WD A complete+Example+with+Screenshots
9/29
Step 8) epeat the sa$e process for 3S45/ ie,
Step ) Activate all objects
Step ) ;oto S/A/ ie, Select the 5a"out tab i*ht click on
OO/4&3533
-
8/10/2019 WD A complete+Example+with+Screenshots
10/29
Step 10) #reate an 4& ele$ent of t"pe /e=tie, 3nter the /e=t for the ele$ent
-
8/10/2019 WD A complete+Example+with+Screenshots
11/29
Step 11) epeat step > 10 for creatin* other 4& ele$ents as follo,s :
-
8/10/2019 WD A complete+Example+with+Screenshots
12/29
Save > Activate
(+ou $i*ht *et this error on activation)
-
8/10/2019 WD A complete+Example+with+Screenshots
13/29
( eason: /he error $eans that ,henever u 'efine an 4& ele$ent u nee' to 'o 'ata
bin'in* ,ith the vie, conte=t ,hich ,e have not 'one as of no,
/o avoi' this error u can re$ove the inputfiel' ele$ent no, an' a'' later )
Step 1) 10 to create the follo,in* 4& ele$ents
Save
+ou shoul' *et a screen as un'er for the 3S45/ ie,
-
8/10/2019 WD A complete+Example+with+Screenshots
14/29
Step 1-) !ouble click on #o$ponent #ontroller ;oto 3!&/ $o'e
Step 12) #reate a
-
8/10/2019 WD A complete+Example+with+Screenshots
15/29
Save
Step 16) #reate an Attribute
-
8/10/2019 WD A complete+Example+with+Screenshots
16/29
SA3
-
8/10/2019 WD A complete+Example+with+Screenshots
17/29
Step 17) #O
-
8/10/2019 WD A complete+Example+with+Screenshots
18/29
Step 19) !o the sa$e for S/A/@&3W
SA3
Step 18) !efine
-
8/10/2019 WD A complete+Example+with+Screenshots
19/29
-
8/10/2019 WD A complete+Example+with+Screenshots
20/29
Step 0) !efine an &nboun' Plu* in S/A/ &3W
SA3
Step 1) !A/A B&
Open S/A/ ie,
-
8/10/2019 WD A complete+Example+with+Screenshots
21/29
Step ) !ouble click on &
-
8/10/2019 WD A complete+Example+with+Screenshots
22/29
Step -)
-
8/10/2019 WD A complete+Example+with+Screenshots
23/29
SA3
Step 2) Select the 3S45/S ie, Select the input fiel' an' bin' it to a conte=t as
before
-
8/10/2019 WD A complete+Example+with+Screenshots
24/29
-
8/10/2019 WD A complete+Example+with+Screenshots
25/29
Attach a Plu* to the Action
Step 7) #reate
-
8/10/2019 WD A complete+Example+with+Screenshots
26/29
Select the Outboun' Plu* of the S/A/ ie, i*ht click C#reate
-
8/10/2019 WD A complete+Example+with+Screenshots
27/29
Step 9) epeat the sa$e process for the Outboun' Plu* of the 3S45/ ie,
SA3
Step 8)
-
8/10/2019 WD A complete+Example+with+Screenshots
28/29
Save
+ou shoul' *et a screen as un'er
!ouble click on the Application
-
8/10/2019 WD A complete+Example+with+Screenshots
29/29