REST API in SAP - Create POST Method with JSON Payload [english]

preview_player
Показать описание
In this video, I will show you how to redefine the POST method in a REST API in SAP and use it to consume a JSON payload. Then we convert this JSON back into an ABAP structure and use this data to write an entry in a database table. We will test the whole thing with Postman.
I extend a video of mine which I link here: 🎬
The content of this video is the extension of the redefined method if_rest_resource~post.

#sap #abap #rest #api #post #method

▬▬ Literature 📚 ▬▬▬▬▬▬▬▬▬▬▬▬▬

▬▬ My Hardware 💻 ▬▬▬▬▬▬▬▬▬▬▬▬▬

▬▬ My Software (free) 💾 ▬▬▬▬▬▬▬▬▬▬▬

▬▬ Further Links 🔗 ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

*The links are affiliate links. There are no additional costs.

📍Attribution:
Рекомендации по теме
Комментарии
Автор

Great tutorial! 🙌👏 Loved how clear and concise your instructions were. This really helped me understand the process better. Keep up the good work! 🌟💯

SereneSkyCinema
Автор

Great tutorial! How to fix CORS Problem ? I'm using ROUTES and RESOURCE, but my environment is not called outside of POSTMAN because of the CORS browser policy, as the class does not allow redefinition of the if_http_extension method as it is a final statement, Thanks.

GuilhermeDMachad
Автор

Hi man, I am try to use postman to get response with newly  created rest api... It's working in browser but not working in postman (getting error this browser is unsupported ) response as 500

Please provide Your input

-balagurus
Автор

Hi many thanks for the video.
I Have a question: I have to create many actions like create sales order, create invoices ... I guess I will use the method post.
But here, how I difference between methods. Can I create different method POST in same class or I have to create a other class.

nabilhachimi
Автор

how get the token, without do request get to get 1 record?

victormartinez-departament