Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
170 views
26 pages
Create Odata Service Using RFC FM
Odata service
Uploaded by
raju.knvs1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Create Odata Service Using RFC FM For Later
Download
Save
Save Create Odata Service Using RFC FM For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
170 views
26 pages
Create Odata Service Using RFC FM
Odata service
Uploaded by
raju.knvs1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Create Odata Service Using RFC FM For Later
Carousel Previous
Carousel Next
Download
Save
Save Create Odata Service Using RFC FM For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 26
Search
Fullscreen
Made By Rahul sharma SAP ADAP Associate Consultant ‘create Odata Service Using Remote Enabled Function Module First Let's create a2 Custom RFC function Module that will be to save enquiry details and another will be to get enquiry detals for that first lets create a custom ztable for enquiry details, Name of rtable ~zenquiry_detal ©) Database table ZenauiRy DETAILS [3 view i ee ee Now let's create an RFC FM fo the above table to save data and fetch data tobe use inthe Odata Fist, e's create a function group and goto tcode se80. Give the name of Function Group and press enter.Made By Rahul sharma “SAP ABAP Associate Consultant == ‘mre | [Wea othe ARAPWorthech sams) 5 [ee Reyourentfothe nt ent ot ABA elm? r ra Create Function ou x oon 25TH DEANS Jeminod ‘Give the short text and ck on save and save it inthe package. =I (Racin —~] ff] Welcome tot a nam [B) Sv) [Are you ready for tt copcnone | catoknn Ara 2 Viszs0 gee? Stn ose > tated came Desay > we > cate "es SeesMade By Rahul sharma ‘SAP ABAP Associate Consultant Now Activate it. Now, Go to t-code se37 and give the name of Fm -zenquiry_detals. Be Ot TG A remy aaa Hose lick on create, ‘Create Function Module x netin Mot [2ENOUTRY_DETAILS Function group: [280 ENQUIRY DETATLS Shor text Enguity Detail vswe Xx ‘Give the details ke function group, shorttext and click on save. vases met oes ans same ce en =p ener roe "Now go to attributes and click on re radiobutton,Made By Rahul sharma “SAP ABAP Associate Consultant aun: = ‘Bot Ghangng Tees scepter Source cade o Te wseae © ewte nce rng ings] vane rm ncn 2 mecomontaaingis fe] aie re Son ica ca ‘Declare the Above importing parameter with pass-by value. unter most pot Chowhe Tbe Gente Snacecte Boo) coeur = one 9 ‘And Declare exporting parameter with passby value also. Now, gt the source code tab and write code ther, Ce ee ‘utes ingot Expt Cragg Tables acetone Source cdeMade By Rahul sharma ‘SAP ABAP Associate Consultant ‘ite the below code in FM suwbaes Iman eierchrgg Tables scp: souce cose "Now, Let's test our Fm whether itis saving the data in ztable or not. Fillin the above details.Made By Rahul sharma “SAP ABAP Associate Consultant ‘We can see the message that enquiry details have been successfully created. Let's check the data inthe 2table. ‘We can see the data has been successfully created. [Now let's create another FM which will get details of RFC FM, runcion Modul: ENQUIRY_DETATLS_get a 7 change {Go to 5037 give the FM name and click onthe Create button.Made By Rahul sharma ‘SAP ABAP Associate Consultant = Create Function Module x Function Moaut:* | ZENQUIRY_DETAILS_GET Function group:* [250 _ENOUIRY_DETATLS ‘Shor text * Enq Det vswe x ‘Give the details ke Function Group, and short text, and click onthe save button. ‘vos mor yor argh Tes cepts sue cae Pecsere corestoms epi ase ren te BE {0 renew betas es chp BET ‘Goto the Attribute tab and select re radiobutton to make it aremote-enabled function module. ves most pot Cimpre hes Gls Soueecse aoe = io joel sl "Now go to the Import parameter tab, and give 1D no. there. sa oo ee rere = a = a cy |Made By Rahul sharma “SAP ABAP Associate Consultant Inthe export parameter tab give the above information. Auwbutes impor Expat Charging Tebles Exceptions Source code Now go to the source code tab and writ the code there. ee ee uybtesompot ge Charge Tables eelons seucecooe Bib ‘ite the Above code. Now let's tes it.Made By Rahul sharma “SAP ABAP Associate Consultant ‘Wecan seit is fetching the above detail ‘Now we have tested both fet and they are working fine, Let's create an Oda service. es seed YJ = bk me vA \ 9 SAP Menu Goto t-code segwMade By Rahul sharma “SAP ABAP Associate Consultant | more v (Al fal fe) [1 '6) fe|[>) > (f MO_C_PRODUCT_MAINTAIN ‘lick on Create Project. Create Project. x Project [ZENQUIRY_DETATLS Description» [Enquiry Det Attributes Project Type [Senvce with SAP Annotations vy] Generation Strategy: Standard v] Object Directory Entry Package:*[STHP Person Responsible» [BEST Y Local object ‘Give the above details ike the Project name and description and save it. Now right-
wea oat D> zc testaec oF 0 ve zenourer_neranis ely Boy a BOE oy o q 0 > gue > 0 >e2 a > z_Meat__ >) Reta Mocet trom Fie ogra (0 >2i Revie >) poe Smee 'ssocu > B21 pede > |__FCIBOR mnertace jyRDo Oo >e2 Seep 1 Ea fetrence >| Sern le ES Oe ps custon a senicet Gm orn ‘A3step witard ville Opened. Fillin the details: Like entity type toca radiobutton Tye Name "Made By Rahul sharma “SAP ABAP Associate Consultant ‘lek on next button. O89 2 Bf Gower e cn owe a = acon 6 cman owe a = 8 Gnet ewe ‘Selec al the fells and dle on next. 2Made By Rahul sharma SAP ABAP associate Consultant ‘Give Key Fields to and click on finish. \ ZENQUIRY_DETAILS \ eS\Data Model’ Entity Types > == ZENQURY Co Associations v WEntiy Sets == ZENOURYSet I Here we can see now entity types and entity sets have been created. Now, expand service implementation, then zenguiryset then select getEntity and then right click and select map to datasource. 13Made By Rahul sharma veaemysm = ZENQURYSet © Senco inplenentaon Vea ZENOURYSet 9 cca dee wise 3G Gete, 28 Ups Display [Runtime & > Da Service M > (&ZKK_PO_DE] (> GzonaTa_se| Target System @ Locat © Remote RFC Destination: Data Source Attributes Type: Name: ‘Map to Data Source Go to ABAP Workbench Details “SAP ABAP Associate Consultant ‘Map to Data Source x Remote Function Gall ‘zenquiry_details_get v ® Here give the RFC type and in the name give the name of FM zenquiry details got. And click on the Continue select button propose mapping. 1“Made By Rahul sharma “SAP ABAP Associate Consultant cgjastafacae |e) Here we can see lelds automatically populate now. |WE CAN SEE WE HAVE SOME ERRORS TO RESOLVE OUR ERROR FOLLOW THE BELOW STEPS ‘As we knowin the FM -zenguiry_ detail get we have an 1D importing parameter we will add to our enquirset. FTN) (e115) sey cron cry a 22a =) I) Gi) Rrra) = cI ‘lic on INSERT ROW at the top. 15Made By Rahul sharma SAP ADAP Associate Consultant 11 pint Operon ty un) te ZENGURYSAt @ COO BH SL OE rms) fecal 38) Soy Setar Comte vie ML. bata seen Puree a] No evan © awn Insert id input sing the 4 key. ‘You wil se IN_id with the input fed as been added in zenquiryset. you want to change the direction you can double click on direction and you can change the retin, Now we can check f there is any error oF not. ‘We can see there sno error in our zenquityset Now we are done with the get data part, now it's to implement create entity to create the data, 6Made By Rahul sharma “SAP ABAP Associate Consultant He O88 FS & > (no_€ pROOUET MAINTAIN 3 Seo cero # em re cori [ae Gam <__ one sre feast baan otis cf eo tot coa y saeaty pes moste osu co associations: s a ee serie lemeton hs ben coe nec naings right-click on create then map tothe data source.="Map" to source x system toeat remote dota atibutes funcfon call vx the details tke type and name of rfc fm which creating our entry click continue. by rahul sharma abap associate consultant fae senso b08 ooo go sy osman gon oso eos aio are goting error message now onthe f button datasource parameter ex_message select ex. message. zenoury_detals fewno ae lessace iwosue etl messace sae secmmann loco oo can see direction has been changed for exmessage. check generate it. ea o2ase gia oaoeo ss am button. more aral>) macping ot operation creste 8H oo > (WO_C_PRODUCT_WAINTAIN o [> S0_PRICING_coNorTrONRECOMg 8 |Pr- Entty Set property 1 > zap 1] enane 5 > z01_resr are ole 5g zenavtny-DeTAILS ] Nero wea mae rife oie ) SEM Tyee 5 eaesace 7S ee zehQUR 1°Made By Rahul sharma “SAP ABAP Associate Consultant = Model and Senice Defnton x Mode Provider Class ‘Bese Class Nam” [2CL_ZENOUIRY DETAILS WC Data Provider Class ss Nam: [2CL_ZENOUTRY_DETATLS_DPC_EXT ‘Bose Class Name: [2CL_ZENOUIRY_DETATLS_DPC Service Regisvation Tectiea Met Name [ZENOUIRY_DETATLS OL Teeticl Service Nane:* [ZENQUTRY_DETATLS SRV Y contin ‘lic on continue and save tin the local abject. "Now lets check the method of dpc_ext class of create_entity and get_entity.Made By Rahul sharma “SAP ABAP Associate Consultant ‘We can see sap automatically creates the code inthe create and get_entity methods [Now lets register our service. aMade By Rahul sharma ‘SAP ABAP Associate Consultant ‘lick on the local object and click on the continue button. ‘We can ee our service status turned green. ‘lick on maintain. (@ essere) [@ Dae evi] [seri Dan] (Dw “Type Teeeal serie Nave ve seve omerpzon ene ‘BEPZENGURYDETALS.GRY SV ErmuryOWe ICF Nodes system Ala (erate a A ST seme SS os a ‘Double click on service and execute the sap gateway client. Fist lets check whether our service working or notMade By Rahul sharma “SAP ABAP Associate Consultant © Comm 4 ese merken Qseernpanmm Some a MHL ‘We can see our service working fine Sede === ea [Now let's read 1 existing record and later we can use the same record to create anew record using the post option. “Toread select entity set. EntitySets (1) 1 Entry found Restrictions Use below URI to read the data, 2Made By Rahul sharma ‘SAP ABAP Associate Consultant ‘ce inn GU ATA Neo TAarpad —————— > a Here we are getting below data. a ae eRe ESS [OSes ae) ‘We can see In our able we have already entries with id 1000000000, 1000000001. [Now create a record with anew key. ‘lick on use as request ss en a ren ss ITP Respro Poss Te 1095 ms ©] Qe) Cesare] (Fenrir) (Frm) (5 Bate =p ww eatenMade By Rahul sharma ‘SAP ABAP Associate Consultant Scegoens nenaes env. anane™| 105 ‘esting of RFC EM using odata service", f12s01 58 Facet 5) “= ietaaacar + 4 Sheepi/ 1542024. denoz_com:8021/290/ pa odata/ sap/2MG0TRY_DETAL : ‘Sheep: //at2i2i.sencs-coms021/aup/pa/oasea/e4p/ Sea BETA, 4 ‘Change the 1D key and message.Made By Rahul sharma SAP ABAP associate Consultant ‘We can see the message code 201 with created Lets check our stable, = ee We can see the data also saved in our able Inthis we use RFCEM %
You might also like
IBP2408_Quick_Guide_EN_XX
PDF
No ratings yet
IBP2408_Quick_Guide_EN_XX
40 pages
Joule 4 Devs
PDF
No ratings yet
Joule 4 Devs
39 pages
Introduction to OData Services
PDF
No ratings yet
Introduction to OData Services
76 pages
BRF Plus-A Real Time Example - SAP Blogs
PDF
50% (2)
BRF Plus-A Real Time Example - SAP Blogs
27 pages
Bo Model 3
PDF
75% (4)
Bo Model 3
1,030 pages
Salv Tree To Excel
PDF
No ratings yet
Salv Tree To Excel
11 pages
SAP Ui5 Fiori OData CDS Course Content PDF
PDF
100% (1)
SAP Ui5 Fiori OData CDS Course Content PDF
13 pages
Sap Odata Services Document 1745996383 - Copy
PDF
No ratings yet
Sap Odata Services Document 1745996383 - Copy
40 pages
Creation of Odata Services For Beginners
PDF
100% (1)
Creation of Odata Services For Beginners
10 pages
SNC-SAProuter For SAP Employee Central Payroll - For Transition
PDF
No ratings yet
SNC-SAProuter For SAP Employee Central Payroll - For Transition
17 pages
Abap - Proxy
PDF
No ratings yet
Abap - Proxy
23 pages
Abap Class To Xlxs
PDF
No ratings yet
Abap Class To Xlxs
12 pages
Web Dynpro For Experts
PDF
100% (1)
Web Dynpro For Experts
113 pages
How To Develop in ABAP
PDF
No ratings yet
How To Develop in ABAP
87 pages
How To Create a Custom Bapi
PDF
No ratings yet
How To Create a Custom Bapi
20 pages
SAP BI Generic Extraction Using A Function Module PDF
PDF
No ratings yet
SAP BI Generic Extraction Using A Function Module PDF
17 pages
2 - ABAP Program Analysis
PDF
No ratings yet
2 - ABAP Program Analysis
32 pages
Function MIdule
PDF
No ratings yet
Function MIdule
21 pages
SAP Fiori UX Prototyping Kit
PDF
No ratings yet
SAP Fiori UX Prototyping Kit
96 pages
SAP S4HANA Build A Draft Enabled Business Object For Custom Functionality
PDF
No ratings yet
SAP S4HANA Build A Draft Enabled Business Object For Custom Functionality
38 pages
ABAP Development Cycle in Eclipse
PDF
No ratings yet
ABAP Development Cycle in Eclipse
29 pages
ODATA Services Using SEGW in SAP
PDF
No ratings yet
ODATA Services Using SEGW in SAP
24 pages
Sapui5 Material
PDF
No ratings yet
Sapui5 Material
8 pages
SAP ABAP New Syntax
PDF
No ratings yet
SAP ABAP New Syntax
10 pages
Calling RFC From BODS
PDF
No ratings yet
Calling RFC From BODS
10 pages
A Step-By-Step Guide To Create A Simple FPM Application Using Feeder Class For FORM GUIBB - SAP Blogs
PDF
No ratings yet
A Step-By-Step Guide To Create A Simple FPM Application Using Feeder Class For FORM GUIBB - SAP Blogs
20 pages
CRM BOL Z Creation Final
PDF
100% (1)
CRM BOL Z Creation Final
14 pages
Hana Select
PDF
No ratings yet
Hana Select
20 pages
Sap Alv-Ida
PDF
No ratings yet
Sap Alv-Ida
10 pages
Hana
PDF
No ratings yet
Hana
57 pages
How To Guide Business Object Layer Programming PDF
PDF
No ratings yet
How To Guide Business Object Layer Programming PDF
48 pages
A Step-By-Step Guide To Create A Simple FPM Application Using Feeder Class For FORM GUIBB - SAP Blogs
PDF
No ratings yet
A Step-By-Step Guide To Create A Simple FPM Application Using Feeder Class For FORM GUIBB - SAP Blogs
20 pages
S_4HANA Conversion Readiness
PDF
No ratings yet
S_4HANA Conversion Readiness
13 pages
ABAP Program Tips v3
PDF
No ratings yet
ABAP Program Tips v3
158 pages
Sap Gateway Beginers
PDF
No ratings yet
Sap Gateway Beginers
61 pages
Sap Abap Faqs
PDF
No ratings yet
Sap Abap Faqs
99 pages
2-SAP NetWeaver Gateway Service Builder
PDF
No ratings yet
2-SAP NetWeaver Gateway Service Builder
65 pages
How To Extend A SAP Fiori App (HCM - TS - APV) From Remote Using The Extensibility Pane PDF
PDF
No ratings yet
How To Extend A SAP Fiori App (HCM - TS - APV) From Remote Using The Extensibility Pane PDF
20 pages
Class1 Notes & Diagram Attachments For SAP Ui5 Fiori OData CDS Course
PDF
No ratings yet
Class1 Notes & Diagram Attachments For SAP Ui5 Fiori OData CDS Course
5 pages
Steampunk Next Generation Abap Development - 2022 11 07
PDF
No ratings yet
Steampunk Next Generation Abap Development - 2022 11 07
26 pages
Sapui5 Tutorial With Webide. Part Ix. Alternative To Omodel - Setsizelimit
PDF
No ratings yet
Sapui5 Tutorial With Webide. Part Ix. Alternative To Omodel - Setsizelimit
16 pages
D-Code Presentation - Overview of ABAP 7.4 Development For SAP HANA
PDF
No ratings yet
D-Code Presentation - Overview of ABAP 7.4 Development For SAP HANA
51 pages
My Fiori Certification (C - SAPXIMP - 20) Experience - SCN
PDF
0% (1)
My Fiori Certification (C - SAPXIMP - 20) Experience - SCN
5 pages
OpenSAP Fiux2 Week 03 All Slides
PDF
No ratings yet
OpenSAP Fiux2 Week 03 All Slides
49 pages
Abap/4 & Cross Application - Fico: Course Content
PDF
100% (1)
Abap/4 & Cross Application - Fico: Course Content
3 pages
Getting Started With Web Dynpro ABAP
PDF
No ratings yet
Getting Started With Web Dynpro ABAP
37 pages
GW100 WTS Initial Setup
PDF
No ratings yet
GW100 WTS Initial Setup
6 pages
ABAP Read - Text Function Module Tutorial To Read Long Text - Free SAP Tutorial - SAP Functional and Technical Training
PDF
No ratings yet
ABAP Read - Text Function Module Tutorial To Read Long Text - Free SAP Tutorial - SAP Functional and Technical Training
4 pages
1 2 Custom-Development-Approach
PDF
No ratings yet
1 2 Custom-Development-Approach
38 pages
Register OData Service in SAP Fiori Server
PDF
No ratings yet
Register OData Service in SAP Fiori Server
6 pages
"Brfplus (Business Rule Framework Plus) Is A Business Rules Management System (BRMS) Offered by Sap Ag. Brfplus Is Part of The Sap Netweaver Abap
PDF
No ratings yet
"Brfplus (Business Rule Framework Plus) Is A Business Rules Management System (BRMS) Offered by Sap Ag. Brfplus Is Part of The Sap Netweaver Abap
25 pages
Matdoc Cds
PDF
No ratings yet
Matdoc Cds
14 pages
Workflow Resume
PDF
No ratings yet
Workflow Resume
5 pages
3 Cookbook VBTYP Field Length Extension 20151023 PDF
PDF
No ratings yet
3 Cookbook VBTYP Field Length Extension 20151023 PDF
14 pages
ABAP Code (BPC 10 NW) To Read An Application's Transaction Data Within The BAdI
PDF
No ratings yet
ABAP Code (BPC 10 NW) To Read An Application's Transaction Data Within The BAdI
4 pages
C Fiordev 22
PDF
No ratings yet
C Fiordev 22
8 pages
Change Pointer Technique For Idocs - SAP Community
PDF
No ratings yet
Change Pointer Technique For Idocs - SAP Community
9 pages
Serialization of IDOC Message Type
PDF
No ratings yet
Serialization of IDOC Message Type
4 pages
SAP Odata Course Content
PDF
No ratings yet
SAP Odata Course Content
1 page
Sap Interview Question
PDF
No ratings yet
Sap Interview Question
10 pages