Sunday, November 18, 2007

Changing the saplogon image

This document briefly describes how to customize the image that is displayed on the right-hand side of the session manager screen.

Preparing the Image

The image can be in GIF or JPEG format. (And possibly others.) Use an image that is less than 20 KByte in size because the image size affects the loading time of the session manager screen. An image size of 300 pixels wide by 250 pixels high seems to work well. By default the GUI will scale the image to cover the available space on the session manager screen.

Define the MIME Types

The MIME type for the image format you are going to use needs to be defined in SAP. This only has to be done once for each image format.

  • Execute transaction SMW0.
  • Select Binary data for WebRFC applications and click the find button.
  • On the next screen enter development class SWF and click the execute button.
  • This takes you to the SAP Web Repository: Object Display screen. Go to Settings >> Maintain MIME types.
  • In this screen, create new entries for the image formats you want to use if they do not already exist.

Type

Extension

image/gif

*.gif

image/jpeg

*.jpg, *.jpeg

Create an Object for the new Image

The image that will be used will have to be stored in the database. You can simply replace the SAP standard image and be done with it, but this is not recommended. The image should be stored as a new object in the database.

  • In the SMW0 transaction, go to the SAP Web Repository: Object Display screen as described above.
  • Click the create button.
  • Enter the object name and description, CUSTOM_LOGON_IMAGE for example, and click the import button.
  • Select the image file you want to use and click Transfer.
  • Confirm the pop-up about having to use an SAP development class.
  • In the next screen enter development class SWF. This is the same development class as the SAP standard image stored in the RIPPLE object. Click the save button and confirm the warning about the original system being set to SAP.
  • Depending on the configuration of your system you may be asked for a transport number.

Should you ever want to replace the image you can just upload the new image into the same object.

  • In the SAP Web Repository: Object Display screen select the object with the image you want to replace and click the import button.
  • Confirm the pop-up that you really want to replace the old object.
  • Select the image file you want to use and click Transfer.
Configure the System to use the Customized Image

The last step is to configure the system to use the customized image. This only has to be done if you want to use an image from another object. If you changed the image by uploading it into the same object you do not have to do this.

  • Execute transaction SM30.
  • Enter SSM_CUST as the table/view and click Maintain.
  • Create a new entry named START_IMAGE. Enter the name of the object holding the image created earlier.

The change is in effect immediately after you save it. Do System >> Create session to see the results.

Questions?

Q. Can I have a different image in each client?
A. No, as far as I know the change is client independent.

Q. I did everything they way you said but I do not see the image!
A. Check the following:

  • Is HIDE_START_IMAGE set to YES in SSM_CUST?
  • Is Do not display image checked in Session manager >> Extras >> Settings?
  • Is the divider between the menu tree and the image all the way over to the right?

Q. Where do I find more information?
A. When you log on to SAP with ‘elevated privileges’ there is an extra menu option Extras >> Administration information on the session manager screen. This explains in very generic this and some other customization that can be done. You can use this as a starting point for investigating the issue in OSS and on the Web.

No comments:

Blog Archive