Viewing files in SAP windows

In the following example, we will view a GIF image inside a SAP window that we will call from the script. To demonstrate this operation, please do the following.
  1. Go to the Easy Access screen in SAP.
  2. open the 'SAPLSMTR_NAVIGATION.E0100.sjs' script file, and enter the following code. Create the script file if it does not already exist. We are using the image file 'test.jpg' but you can use any image file as long as it is one of the supported formats.
    view([4,4], [6,22], "test.jpg");
  3. Save the changes and refresh the SAP screen. It will now display as shown below: