Date post: | 25-Feb-2018 |
Category: |
Documents |
Upload: | amaya100100 |
View: | 307 times |
Download: | 10 times |
of 16
7/25/2019 Sap Odata Services
1/16
1. Create a new project ZGW100_XX_SO (SO stands for Sales Order). XX is just a placeholder
for a group number and GW1 indicates the course number ! as the screen shots were ta"en
from the GW1 training course material that # ha$e created.
%. Create the first entit& b& importing an 'C interface. or this rightclic" on Data ModelandchooseImport -> RFC/BOR Interface
7/25/2019 Sap Odata Services
2/16
*. +nter the following $alues in the wi,ard and then chooseNext-
+ntit& &pe /ame SalesOrder
arget S&stem Local
0ata Source &pe Remote Function Calls
0ata Source /ame BAPI_P!_SO_G"_LIS"
7/25/2019 Sap Odata Services
3/16
. +2pand the SOHEADERDATA node and select the following fields-SOID! NOTE! B"#ERID! B"#ERNAME! C"RRENC#CODE! $ROSSAMO"NT!
NETAMO"NT! TA%AMO"NT/ote that SOHEADERDATA is not selected. ChooseNext.
7/25/2019 Sap Odata Services
4/16
3. #n the first line4 SOID4 select the fieldI& 'e( and chooseF)n)&*-
7/25/2019 Sap Odata Services
5/16
5. Create the second entit& again b& importing an 'C interface. 'ightclic" Data Model andchooseImport -> RFC/BOR Interface
7/25/2019 Sap Odata Services
6/16
6. +nter the following $alues in the wi,ard and chooseNext-
+ntit& &pe /ame SalesOrderItem
arget S&stem Local
0ata Source &pe Remote Function Calls
0ata Source /ame BAPI_P!_SO_G"_LIS"
7. +2pand the SOITEMDATA node and select the following fields-SOID! SOITEM+OS! +ROD"CTID! NOTE! C"RRENC#CODE! $ROSSAMO"NT!NETAMO"NT! TA%AMO"NT! ,"ANTIT#! ,"ANTIT#"NIT/ote that SOITEMDATAis not selected. ChooseNext.
7/25/2019 Sap Odata Services
7/16
8. #n the first and second line4SOID! SOITEM+OS4 select the fieldI& 'e( and chooseF)n)&*-
7/25/2019 Sap Odata Services
8/16
/ow our project has % entities ! one for the Sales Order and one for the Sales Order 9ine #tem.
:s a ne2t step we create entit&sets out of these entities.
1. +2pand the nodeData Model and doubleclic"Ent)t( Set&-
7/25/2019 Sap Odata Services
9/16
%. Clic" the Createbutton twice to add two new lines to the table-
*. +nter the following $alues-
7/25/2019 Sap Odata Services
10/16
#ame ntit$ "$%e #ame
SalesOrderCollection SalesOrder
SalesOrder#temCollection SalesOrder#tem
. Choose Sae-
/ow the basic definition of the ;odel is done. :s a ne2t step we can generate the necessar&
runtime artifacts.
1. Choose the $eneratepushbutton-
7/25/2019 Sap Odata Services
11/16
%. 9ea$e the default $alues and chooseEnter-
7/25/2019 Sap Odata Services
12/16
erif& that the runtime objects ha$e been generated successfull&-
7/25/2019 Sap Odata Services
13/16
/ow we can 'egister and :cti$ate the Ser$ice.
1. 0oubleclic" Ser)ce Ma)ntenance-
%. Select s&stem ?;+ and choose theRe6)&terbutton.
7/25/2019 Sap Odata Services
14/16
.
7/25/2019 Sap Odata Services
15/16
5. 9ea$e the default $alues and enter 7tmp as the pac"age and chooseEnter-
heExternal Ser)ce Name is defaulted with the Tec*n)cal Ser)ce Name from the GenerationStep.
6. >erif& that the ser$ice has been registered and acti$ated successfull&-
7/25/2019 Sap Odata Services
16/16
/ow we can run our ser$ice the first time.