Yintoni iSAP OData

intshayelelo

Ukuba uceba ukuveza iDatha yakho ye-SAP (Itheyibhile okanye iDatha yoMbuzo) kwindawo yangaphandle njenge-UI5 / Fiori okanye i-HANA, ngoko kufuneka uqhube idatha yakho ngendlela ye-API. Ngu API sithetha ukuba, usebenzisa i-OData siya kuvelisa i inkonzo ikhonkco elinokufumaneka nge-intanethi kwaye lingasetyenziselwa ukwenza imisebenzi ye-CRUD. I-SAP OData kwindawo ye-SAP ABAP ifana nje nenye iKlasi ye-ABAP. Sinokufikelela kwiindlela zale klasi ngokusebenzisa i-SEGW transaction. Singabhala ikhowudi yethu efunekayo apha ukwenzela ukuguqulwa kwedatha kwaye emva kokuba sisebenze iklasi, ikhonkco yenkonzo esiyivelisayo iya kwenza ngokufanelekileyo.

inkcazelo

I-SAP OData yi-protocol yeWebhu eqhelekileyo esetyenziselwa ukubuza kunye nokuhlaziya idatha ekhoyo kwi-SAP usebenzisa i-ABAP, ukusebenzisa kunye nokwakhiwa kwezobuchwepheshe beWebhu ezifana ne-HTTP ukubonelela ngokufikelela kulwazi oluvela kwiintlobo ezahlukeneyo zezicelo zangaphandle, iiplatifomu kunye nezixhobo.

Kwi-SAP, sisebenzisa SEGW ikhowudi yokuthengiselana ukwenza iNkonzo ye-OData. I-SEGW imele iSango seNkonzo.

Uyilo lwe-SAP OData

Apha, siza kuxubusha malunga neNqanaba eliphezulu lokwakhiwa kwe-SAP OData.

SAP OData High Level Architecture
SAP OData High Level Architecture

Kutheni sifuna i-ODATA

I-SAP OData iza neenzuzo ezininzi. Ayisincedi kuphela ukuba siveze idatha kodwa inceda umthengi ukuba afikelele kwidatha naphi na nasiphi na isixhobo. Ukuba akuyi kubakho iinkonzo ze-OData, ngoko ke idatha iya kuhlala kwindawo kwaye xa umsebenzisi efuna ukufikelela kwidatha yakhe, unokutyelela indawo yedatha, engathandekiyo kwihlabathi ledijithali.

Izinto ezilungileyo zeODATA

Ukusebenzisa i-SAP OData isinika iingenelo ezilandelayo:

  • Kuyanceda ukufumana iziphumo ezifundekayo zabantu okt ungasebenzisa isikhangeli sakho ukubona idatha yemveliso
  • Kulula kakhulu kwaye kuyakhawuleza ukufikelela kwidatha
  • Isebenzisa yonke imigangatho yewebhu yeprothokholi okt, GET, PUT, POST, DELETE, kunye QUERY
  • Isebenzisa ii-Aplikheshini eziZingenammiselo: Ithetha ukuba iSeva ayigcini nayiphi na idata yoMthengi (umzekelo, i-UI5 Application) kwaye iphatha yonke iminxeba yeOData njengefowuni entsha.
  • Ifumana idatha ngokohlobo lwamaqhekeza olwazi olunxulumeneyo, enye ikhokelela kwenye: Yindlela yokusebenzisana eyaziwa ngokuba yi "alert-analyse-act", "view-inspect-act", okanye "explore & act". Ngokwalo mzekelo akuyiyo yonke idatha elayishwe kunye, kwaye umsebenzisi uhlalutya idatha kwaye afikelele kulwazi olufunekayo emva kokuhamba. Ngale ndlela idatha ilayisha ngokukhawuleza nangokuchanekileyo.

SAP OData V2 (Uguqulelo 2)

I-OData v2 yiseti yemigangatho emitsha ezongeziweyo kwi-SAP OData V1, kwaye ezi zilandelayo:

  • Ukuhlela nokucoca kwicala lomxumi
  • Zonke izicelo zinokudityaniswa
  • Yonke idatha igcinwe kwimodeli
  • Ukuphathwa komyalezo ozenzekelayo

Unokufunda ngakumbi malunga ne-SAP OData v2 vs OData v1 Apha.

SAP OData V4 (Uguqulelo 4)

I-OData v4 luhlaziyo lwamva nje kwiinkonzo ze-SAP OData eziza nokongezwa okuthile kunye nokuncipha kweempawu, ezinje:

  • Inguqulelo entsha izisa lula ngokubophelela kwedatha. Imodeli entsha ye-OData V4 yenza lula i-data binding parameter structure.
  • I-OData v4 ifuna kuphela ukufunyanwa kwedatha engahambelaniyo.
  • Amaqela eBatch achazwa kuphela ngeeparamitha ezibophelelayo kwi-OData entsha iifowuni ze-v4 ezineeparamitha ezihambelanayo kwimodeli njengento engagqibekanga.
  • Ixhasa ukusetyenziswa komsebenzi obophelelayo. Kwaye ngoku kulula kakhulu ukubophelela iziphumo zokwenziwa komsebenzi kulawulo.
  • Yenza, Funda, Hlaziya kwaye Cima (Susa) imisebenzi ifumaneka ngokungacacanga ngokusebenzisa izibophelelo
  • Kwi-OData v4, i-Metadata ifumaneka kuphela nge-ODataMetaModel

Unokufunda ngakumbi malunga ne-SAP OData v4 vs OData v2 Apha.

Izimvo: 2

Ushiye uluvo

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.