Skip to Content
Author's profile photo Frank Haschick

First one – SAP Gateway and JSON

Usually, when you split your team and you are the Gateway-developer, you want to test your Gateway-services with the Gateway-service client (Transaction /IWFND/GW_CLIENT, but I prefer to go via the service maintenance /IWFND/MAINT_SERVICE).

If your team is working purely with JSON, you might want to view all the results also in JSON-Format.

To send data to the SAP Gateway (POST/PUT requests), you have to add the header

Content-Type: application/json

If you want the SAP Gateway to send the result to you in JSON-Format, you usually use the URL-Parameter $format=json

But this only works, if you make a GET request. For all the other requests, put in another header:

Accept: application/json

Then the SAP system will deliver JSON-Format to you, even for error messages etc.

This is my first blog here on SCN, yipieh 🙂

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.