Screen Personas

SAP Screen Personas – Screen Events and Use cases – I

After some understanding about screen events in general, let’s look into some of the screen events.

OnClick

We will start with one of the most commonly used events – onClick. This event is available with GuiButton, GuiLabel and GuiPicture. The name says it all when this action triggers. The common practice is to use this event to add a script to a new transaction button, however, it can be added to SAP standard existing button. In that case, it can override the standard action.

Use case:

  1. Adding a custom button or icon on the screen for the user to perform an action. For example – adding a new button to open a new transaction in a dashboard kind of transaction, or fetch some data when a user enters something in a text field.
  2. If the SAP standard button exists and some changes are required in the SAP standard action, a script can be added using the onClickevent. I think it is better to hide the existing button and use a new custom one but this option also exist.

onEnter

Although it seems that onEnter and onClick are similar action events but they are not. onEnter in GuiMainWindow event, which means that one screen there is only one onEnter event while there can be multiple onClick events for different buttons or pictures. So onEnter is more generic event and should be used cautiously especially if you have multiple onClick events in the same screen.

Use case:

If only one onClick event is used, it is a good practice to add the same script to onEnter so that user does not have to toggle to button to click and trigger onClick. If some data is required from some other transaction after user has entered some value in an input field then this event can be used. If there are more than one input fields then logic can be added in the script to identify which fields are filled and subsequent values can be fetched.

There are some more GuiMainWindow events, which we will look in the next blog.

As always, please feel free to drop comments, share your thoughts and feedbacks and if you like the content, then spread the word.

Leave a Reply

Your email address will not be published. Required fields are marked *

error

Enjoy this blog? Please spread the word :)

Follow by Email
Twitter
LinkedIn
LinkedIn
Share