0 votes
1 view
in SAP by (7k points)

I am trying to load a image in my fiori app. The image is located in /webapp/img/greendot.jpg like this:

enter image description here

But when I deploy my app to my ABAP-Repository the path changed to: 


How can i get this path so i can load my image?

1 Answer

0 votes
by (14.5k points)

To load an image in SAP Fiori app you must reference the SRC-property to your relative path: "/img/greendot.png" or try "./img/greendot.png"

var img = new sap.m.Image({

   src : "./img/greendot.png",


There is no need to request any backend-paths during run-time. 

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !