{"id":46322,"date":"2023-05-07T18:36:20","date_gmt":"2023-05-07T16:36:20","guid":{"rendered":"http:\/\/54.194.80.134.nip.io\/prijenos-podataka-u-sap-bw-putem-rest-api-ja\/"},"modified":"2023-10-30T09:12:19","modified_gmt":"2023-10-30T08:12:19","slug":"prijenos-podataka-u-sap-bw-putem-rest-api-ja","status":"publish","type":"post","link":"https:\/\/www.cubeserv.com\/hr\/prijenos-podataka-u-sap-bw-putem-rest-api-ja\/","title":{"rendered":"Prijenos podataka u SAP BW putem REST API-ja"},"content":{"rendered":"\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

REST API tehnologija se vrlo \u010desto koristi za razmjenu podataka. Mnoge aplikacije i baze podataka pru\u017eaju REST API su\u010delje. Ovo se su\u010delje tako\u0111er mo\u017ee koristiti za prijenos podataka iz drugih izvora podataka u\u00a0SAP Business Warehouse (BW)<\/a> i njihovu obradu tamo.<\/p>\n

Na\u0161 video trening prikazuje posebne zna\u010dajke REST API su\u010delja u ABAP programiranju u demo primjeru temeljenom na EUROSTAT bazi podataka.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

\u010cetiri koraka za u\u010ditavanje EUROSTAT podataka u SAP BW<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

1. Provjerite format URL-a<\/h3>\n

Format URL-a mo\u017ee se provjeriti na web stranici Eurostat-a.<\/a><\/p>\n

Struktura REST zahtjeva je sljede\u0107a:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Struktur\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

2. Odabir odgovaraju\u0107eg izvornog koda podataka u bazi podataka<\/h3>\n

Statistika Eurostat-a<\/a>. Proces je detaljno opisan u videu za obuku.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Printscreen\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

3. Kreirati ADSO U SAP BW
\nStvorite ADSO za zadane izravne podatke:<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Allgemein:\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

4. ABAP code<\/h3>\n

Najva\u017enije informacije i funkcije:<\/p>\n

REST API URL:
\n<\/strong>http:\/\/ec.europa.eu\/eurostat\/wdds\/rest\/data\/v2.1\/json\/de\/demo_mlexpec?sex=F&age=Y20&geo=EU27_2020&time=2020<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t\t

Definiranje instance HTTP klijenta:<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

Stvoriti REST klijentski objekt:<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"REST-Client-Objekt\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

Pozvati GET http metodu:<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"GET\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

Primiti zahtjev s poslu\u017eitelja u JSON formatu:<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Request\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t

Ra\u0161\u010dlanjivanje podatkovnih polja:<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

Dodijelite strukture komponentu po komponentu:
\nASSIGN COMPONENT<\/span><\/em> <component> OF STRUCTURE<\/span> <\/em><structure> TO<\/span><\/em> <fs>.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t\t
Struktura podataka Eurostata:<\/h6>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Eurostat-Datenstruktur\"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

npr.: geo -> kategorija -> oznaka ->< trenutni ID oznake > -> < trenutna vrijednost ><\/p>\n

Cijeli izvorni kod mo\u017ee se vidjeti na Github-u<\/a>.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t

\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

Op\u0107e informacije o REST API tehnologiji:<\/h3>\n

Kako radi REST API?<\/strong><\/p>\n

REST (RE<\/strong>presentational S<\/strong>tate T<\/strong>ransferknown) API (A<\/strong>pplication P<\/strong>rogramming I<\/strong>nterface) je programsko su\u010delje koje se temelji na paradigmama i pona\u0161anju World Wide Weba (WWW) i opisuje arhitektonski pristup komunikaciji sustava izme\u0111u klijenta i poslu\u017eitelja u mre\u017eama.<\/p>\n

Resursi bi trebali biti jasno prepoznatljivi po jednom URL-u.<\/p>\n

Kriteriji REST API arhitekture su:<\/strong><\/p>\n