SAP MIME PICTURES ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_DYNPRO - Images in HTML
The example demonstrates how images are displayed in HTML controls.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
Images loaded here from the MIME repository using an API are displayed in two browser controls.
The method main1 uses the class CL_GUI_HTML_VIEWER directly. Its method LOAD_DATA is used to get a URL for the image in the internal table, which is then used on the HTML page.
The method main2 uses the class CL_ABAP_BROWSER as a wrapper for the direct use of CL_GUI_HTML_VIEWER and calls of the method LOAD_DATA. A reference, linked with the name used in the HTML page, is passed to the internal table.
See also the executable example for direct access to objects from the MIME repository using ICF.