Skip to Content

Displaying Json in UI5 dynamically

Hello Everybody,

a couple of month ago I used Cesar’s  JSON Adapter to expose some data form function modules  as json. I wanted to test and display the different RFC’s and display their results using the same html page and ui5 javascript code.

The code ideally should be dynamic enough so that we could add/remove RFC Tables (Json data) or change and add elements to the RFC structure / json response. I also wanted to be able to consume other json service like Northwind or weather api calls  and display them using the same mechanics. To make the display of data easier; tables with just one row of data should be displayed transposed in two columns (Fieldname / Value) vs one long single row of data. Sometime there structures (in some RFC) are long and in most case these only return one how of data and then it is annoying to scroll to find the data.

Also export parameters which are display in the json response should be collected and displayed under one tab e.g EXPORTPARAMETER to make it easier to find them.

Below what i came up with …have fun with it.

Here an example of a rfc json out put: json(p) data

Here JS Bin with the ui5 code



or JS Bin


Test Url:

Test Service Example:$format=json&$callback=getJSON

Json ABAP adapter

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