Post Content
Ich hatte vor kurzem die Aufgabe den CO2 Verbrauch von Dienstreisen zu berechnen und habe dazu eine kostenlose API der UNI Graz gefunden, den CarbonTracer. In diesem Video zeige ich euch Schritt für Schritt, wie ihr mit SAP ABAP die CarbonTracer API aufruft und die CO2-Emissionen eurer Reisen berechnet.
Das war jetzt ein ganz schnelles Beispiel, wie man diese API mit SAP ABAP nutzen kann. Der Code kann man natürlich noch verbessern:
Mehr Variablen verwenden für z.B. das Verkehrsmittel Auto Zug Flugzeug
JSON Response in eine Struktur schreiben
Errorhandling erweitern und z.B. prüfen ob das “success” Attribut auf true ist.
#sap #api #carbontracer #unigraz #co2
▬▬ Literatur ? ▬▬▬▬▬▬▬▬▬▬▬▬▬
ABAP: An Introduction 2020 https://amzn.to/45CLTqk
Complete ABAP 2023 https://amzn.to/45D5UNM
ABAP to the Future 2022 https://amzn.to/42cgWGs
Clean ABAP 2022 https://amzn.to/3KAqmow
▬▬ Meine Hardware ? ▬▬▬▬▬▬▬▬▬▬▬▬▬
Mikrophon: https://amzn.to/3tgejVN
Kopfhörer: https://amzn.to/3xhORBs
Monitor IIYAMA 27” 4k: https://amzn.to/392Fexu
▬▬ Meine Software (free) ? ▬▬▬▬▬▬▬▬▬▬▬
Video Aufnahme: https://bit.ly/678fgh6
Video Editor: https://bit.ly/38Rj9lb
Thumbnails: https://bit.ly/CustAndCodeThumbnail
Gamma AI: http://bit.ly/3nsdvgr
▬▬ Weitere Links ? ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Werde mein Abonnent: https://bit.ly/CustAndCodeSub
? Alle Videos auf Deutsch: https://bit.ly/CustAndCodeGER
Buy me a Coffee ?: https://bit.ly/3dih2cl
*Bei den Links handelt es sich um Affiliate-Links. Es entstehen dadurch keine Zusatzkosten.
?Attribution:
YouTube Subscribe Animations: https://pixabay.com/videos/search/subscribers/ Read More Cust&Code in SAP ABAP
#SAP #Abap
+ There are no comments
Add yours