Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

SAP Screen Personas


 

Handling Background visually when F4 window is active


SAP SCREEN PERSONAS KNOWLEDGE BASE - by Sushant Priyadarshi , Tamas Hoznek

Purpose

This document discusses about the use of scripting to make the background screen visually "better" when tab merged controls vanish or unwanted content is shown upon activating the F4 window.

Overview

From kernel version 7.42 PL 401 onwards, when you have an active F4 window, users can still see the flavor in the background.

However, the problem comes when you have controls from different tabs in the background. Well, those will vanish!

Another possible situation is that when the F4 help is used on a control that was relocated from another tab, the originating tab is going to show up temporarily while the F4 window is active.

Most customers are totally fine with this, but for some, it is not visually pleasing. Some suggested that to overcome this, as soon as the F4 window becomes active, hide the entire background itself.

Of course, you can get creative and use this method to make your flavors more attractive. You can also insert custom controls on TOP of your image if the users wish to see some data in the background when F4 is active.

Steps to do to "hide" or "overlay" the background when F4 window is active

  1. Once you have completed your flavor, put an image on top of your flavor and hide it.
    Image can be of your choice. Just make sure that it fits into your color scheme.
  2. Then add the following script as "onBeforeRefresh". Idea is to make the image visible as soon as F4 is triggered

    onBeforeRefresh
    if(session.constants.EVENT_VKEY === triggerType && vkey == '4'){
    	session.findById("wnd[0]/usr/imagePersonas_146532940258983").show();
    }
  3. Now add the following script as "onAfterRefresh". This script will just make sure that if the image is visible, hide it.

    onAfterRefresh
    if(session.findById("wnd[0]/usr/imagePersonas_146532940258983").visible){
    	session.findById("wnd[0]/usr/imagePersonas_146532940258983").hide();
    }

Showing an empty "original" tab

The case of the originating tab showing up can be disturbing when that tab has been otherwise hidden in the flavor. To avoid this, the above solution can be used. An alternative way to solve the problem would be to not only hide the tab itself in the flavor but all included controls as well. This is somewhat simpler than the previously described solution and requires no scripting, however the disadvantage is that you will see the empty tab. If you don't mind this, the result can be something like on the following screen shot:

Here, the 'Country of Origin" field was moved from the "Foreign trade import" tab to the "Purchasing" tab, but upon using the search help for the moved field, the (now empty) original tab is displayed. All included controls are hidden by the flavor, even the tab title is removed. This is still better than showing the complete hidden tab with all content. 

 

Related Content

Related Search Terms:

SAP Screen Personas, F4 Window


 

 

 

Important News

This knowledge base is not solely SAP provided content - but community driven. Please also check on SMP and help.sap.com for SAP released information and notes on SAP Screen Personas.

Create New Article

Compare SAP Screen Personas versions

Search the KB

How to Open OSS Message

 What information is needed for creating OSS message?

  1. Make Sure you are on the latest patches and notes.
  2. Kernel Patch Level
  3. Two Types of connections to your environment: HTTP and R/3
  4. All the connections should be tested with proper credentials provided
  5. Steps to re-create the issue
  6. Attach related logs
  7. File tickets against BC_PER