Skip to Content

SAP Screen Personas 2.0 - How to fetch data from another screen

Note: This article is about SAP Screen Personas 2.0. If you are looking for more information about SAP Screen Personas 3.0, please go to the SAP Screen Personas 3.0 Portal.

After we published the article SAP Screen Personas 2.0 - How to merge tabs last week, we have been asked if it is also possible with SAP Screen Personas to merge different screens, transactions or other applications. The answers is "it depends". No, it is not possible with SAP Screen Personas to merge different screens using drag-and-drop like merging tabs but there are other possibilities to create screens with content merged together from different screens or even different transactions. To achieve this, you will need to use the scripting or macro feature.

In a nutshell, Personas allows you to record a sequence of user actions and assign those steps to the click of a (script) button. This script can then be enhanced and modified as needed. To illustrate this feature, we have recorded a video that shows how to fetch data from the 2nd screen of SU01D and displaying it on the 1st screen.

 

Step-by-step:

  1. start recording
  2. navigate to the screen containing the content that you are interested in
  3. (trick) double click on the fields so that a double click action is added to the script which we can mdify later
  4. navigate back to the start screen on which you want to show the data
  5. stop recording
  6. create a copy of Basic View
  7. create custom text fields for the content you need to show
  8. (optional) add some labels
  9. create a script button and upload the script that you have recorded
  10. remove unnecessary actions like 'Focus'
  11. convert double click actions into copy value actions (assign a meaningful name for each value)
  12. add paste value actions at the end of the script and map them to your custom text fields
  13. (important) add a refresh screen action right before the copy value actions (this is needed because copy value is executed on client-side and refresh screen returns the current state of the screen from the server)
  14. close the dialog
  15. save and exit
  16. Test

As usual, if you want to learn more or discuss anything related to how to make your SAP GUI screens more functional using SAP Screen Personas, please start a discussion in the SAP GUI space on SCN.

Tags: