Hi experts,
I'm working at a client who has images located on a network drive for their materials. A part of my job is to show the images that correspond to the material in a custom sap fiori application.
A material can have multiple images and the images are named by their material number ( ex.1000001). When a material has more photos they are named 1000001_01, 1000001_02 , ...
The directory is exposed via a file directory in AL11. So what i'm planning on doing is to try to read the images via OPEN DATASET ( check if there is an image and if so try to read a next one or not at all) based on a material number and return them somehow via an odata service to my application.
I saw some tutorials on how to expose an image but this was always done via a function module that got the image from SAP not from a network drive. In these tutorials they always returned 1 image because they used the getEntity method.
My question for you experts is how you would do this? And if it is possible to return multiple images( for one single material) via an odata service. Other solutions?
Kind regards,
Ian Desmet