SAP OData yog dab tsi

Introduction

Yog tias koj npaj yuav nthuav tawm koj cov ntaub ntawv SAP (Table lossis Query Data) rau ib puag ncig sab nraud xws li UI5 / Fiori lossis HANA, ces koj yuav tsum thawb koj cov ntaub ntawv hauv daim ntawv API. Los ntawm API peb txhais tau tias, siv OData peb yuav tsim ib kev pab cuam txuas uas tuaj yeem nkag tau hauv internet thiab tuaj yeem siv los ua haujlwm CRUD. SAP OData hauv SAP ABAP ib puag ncig zoo ib yam li lwm chav ABAP. Peb tuaj yeem nkag mus rau cov txheej txheem ntawm chav kawm no siv SEGW kev hloov pauv. Peb tuaj yeem sau peb cov cai uas xav tau ntawm no rau kev tswj cov ntaub ntawv thiab thaum peb qhib chav kawm, qhov kev pabcuam txuas uas peb tsim yuav ua raws li.

Lus txhais

SAP OData yog tus txheej txheem Web raws tu qauv siv rau kev nug thiab hloov kho cov ntaub ntawv tam sim no hauv SAP siv ABAP, thov thiab tsim hauv Web technologies xws li HTTP los muab kev nkag mus rau cov ntaub ntawv los ntawm ntau yam kev siv sab nraud, platforms thiab khoom siv.

Hauv SAP, peb siv SEGW kev hloov pauv code los tsim ib qho Kev Pabcuam OData. SEGW stands rau Service Gateway.

Architecture ntawm SAP OData

Ntawm no, peb yuav tham txog qib siab architecture ntawm SAP OData.

SAP OData High Level Architecture
SAP OData High Level Architecture

Vim li cas peb xav tau ODATA

SAP OData los nrog ntau qhov zoo. Nws tsis tsuas yog pab peb nthuav tawm cov ntaub ntawv tab sis kuj pab tus neeg siv khoom nkag mus rau cov ntaub ntawv los ntawm txhua qhov chaw thiab txhua lub cuab yeej. Yog tias yuav tsis muaj OData cov kev pabcuam, ces cov ntaub ntawv yuav nyob hauv qhov chaw thiab yog tias tus neeg siv xav tau nkag mus rau lawv cov ntaub ntawv, lawv yuav tau mus xyuas cov ntaub ntawv qhov chaw, uas tsis xis nyob rau lub ntiaj teb digital.

Qhov zoo ntawm ODATA

Siv SAP OData muab peb cov txiaj ntsig hauv qab no:

  • Nws pab kom tau txais tib neeg cov txiaj ntsig nyeem tau piv txwv li koj tuaj yeem siv koj tus browser kom pom cov ntaub ntawv tso tawm
  • Nws yog ib qho yooj yim heev thiab kuj ceev rau cov ntaub ntawv
  • Nws siv tag nrho cov qauv ntawm lub vev xaib xws li GET, PUT, POST, DELETE, thiab QUERY
  • Nws siv Stateless Applications: Nws txhais tau tias Server tsis txuag tej ntaub ntawv ntawm Client (xws li UI5 Application) thiab kho txhua txhua OData hu ua ib tug tshiab hu.
  • Nws tau txais cov ntaub ntawv nyob rau hauv daim ntawv ntawm cov ntaub ntawv ntsig txog, ib qho ua rau lwm tus: Nws yog ib qho kev sib cuam tshuam tus qauv hu ua "kev ceeb toom-analyse-act", "saib-inspect-act", lossis "explore & act". Raws li tus qauv no tsis yog tag nrho cov ntaub ntawv raug thauj khoom ua ke, thiab tus neeg siv tshuaj xyuas cov ntaub ntawv thiab ncav cuag nws cov ntaub ntawv xav tau tom qab kev taw qhia. Ua li no cov ntaub ntawv loads sai thiab raug.

SAP OData V2 (Version 2)

OData v2 yog txheej txheem tshiab uas yog add-ons rau SAP OData V1, thiab cov no yog raws li nram no:

  • Client-side sorting thiab filtering
  • Txhua qhov kev thov tuaj yeem ua tiav
  • Tag nrho cov ntaub ntawv yog cached nyob rau hauv tus qauv
  • Tsis siv neeg Message tuav

Koj tuaj yeem nyeem ntxiv txog SAP OData v2 vs OData v1 no.

SAP OData V4 (Version 4)

OData v4 yog qhov hloov kho tshiab kawg rau SAP OData cov kev pabcuam uas tuaj nrog qee qhov ntxiv thiab qee qhov txo qis ntawm cov yam ntxwv, xws li:

  • Tus tshiab version coj yooj yim nyob rau hauv cov nqe lus ntawm cov ntaub ntawv khi. Tus qauv OData V4 tshiab ua kom yooj yim cov ntaub ntawv khi cov qauv qauv.
  • OData v4 tsuas yog xav tau cov ntaub ntawv asynchronous xwb.
  • Cov pab pawg Batch tsuas yog txhais los ntawm kev sib khi tsis muaj nyob rau hauv OData v4 tshiab hu nrog cov tsis sib xws ntawm tus qauv raws li lub neej ntawd.
  • Nws txhawb kev siv kev sib khi ua haujlwm. Thiab tam sim no nws yooj yim dua los khi kev ua haujlwm ua tiav rau kev tswj hwm.
  • Tsim, Nyeem, Hloov Kho thiab Rho Tawm (Tshem tawm) cov haujlwm muaj nyob rau hauv kev sib txuas lus
  • Hauv OData v4, Metadata tsuas yog nkag los ntawm ODataMetaModel

Koj tuaj yeem nyeem ntxiv txog SAP OData v4 vs OData v2 no.

Comments: 2

Cia ib saib

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.