I have heard many things about REST, oauth, JSON and all these things. Finally i have to meet these terms this week. There was a third party tool which is provding a REST service and i have to consume it with ABAP. Interestingly i learnt that there is not any Enterprise Service infrastructure in order to call REST services. Therefore i had to use HTTP service objects within ABAP program library. cl_http_client is the main class for REST services. Calling a REST service is consist of two parts. In this post i will focust on the first part. It is getting access token which is required to successfully make main webservice and this is the second poart of REST service.
Eventhough success messages are not disturbing flow of program, we know that they can also be avoided with a mystery way. I don’t know why SAP has hidden this exception but it is a very practical solution. I intentionally write a post named hidden exception choice for handling error messages in function modules . However this hidden exception is not only covering error messages but also success and information messages. That’s why i want to remind this subject.