I recently had the task of calculating the CO2 consumption of business trips and found a free API from the University of Graz, the CarbonTracer. In this video I show you step by step how to call the CarbonTracer API with SAP ABAP and calculate the CO2 emissions of your trips.
This was a very quick example of how you can use this API with SAP ABAP. The code can of course be improved:
Use more variables for e.g. the vehicle, car train plane
deserialize the JSON response in a structure
Extend error handling and, for example, check the "success" attribute if its true.
#sap #api #carbontracer #unigraz #co2
▬▬ Literature 📚 ▬▬▬▬▬▬▬▬▬▬▬▬▬
▶ 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 *
▬▬ My Hardware 💻 ▬▬▬▬▬▬▬▬▬▬▬▬▬
▶ Microphone: https://amzn.to/3zj2UIz *
▶ Headphone: https://amzn.to/3GUBRFg *
▬▬ My Software (free) 💾 ▬▬▬▬▬▬▬▬▬▬▬
▶ Video Recorder: https://bit.ly/678fgh6
▶ Video Editor: https://bit.ly/38Rj9lb
▶ Thumbnail: https://bit.ly/CustAndCodeThumbnail
▶ Gamma AI: http://bit.ly/3nsdvgr
▬▬ Further Links 🔗 ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⭐Become my subscriber: https://bit.ly/CustAndCodeSub
🎬All videos in English: https://bit.ly/CustAndCodeENG
☕Buy me a Coffee 😀: https://bit.ly/3dih2cl
*The links are affiliate links. There are no additional costs.
📍Attribution:
YouTube Subscribe Animations: https://pixabay.com/videos/search/sub...
Смотрите видео Use CarbonTracer API with SAP ABAP - Calculate Routes and CO2 Consumption [english] онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Cust&Code in SAP ABAP 11 Август 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 474 раз и оно понравилось 23 людям.