on 2024 Jul 24 4:33 AM
If we have an error shown in a screen, can we allow the system to make a beep/bell sound using SAP Screen personas scripts/flavour? Any help on this is mich appreciated.
I could imagine adding an onAfterRefresh script that determines if there is an error on the screen (by checking the status bar) and then plays the sound you want, specified by its URL. So, something like this:
function beep() {
var audio = new Audio(
'https://media.geeksforgeeks.org/wp-content/uploads/20190531135120/beep.mp3');
audio.play();
}
if (session.findById("wnd[0]/sbar").messageType == "E") {
beep();
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is great.... the audio file could also be stored with Resources and pulled from there.
I have just implemented this idea in a flavor for the RF transaction LM06 in Slipstream and it uses field contents and error checking. I'm sure it isn't the same in EWM but maybe it is close. I'm using the onEnter event.
Hi,
I should mention I am using Slipstream Engine with ECC 6 and not S/4 HANA.
The path in my comment that is "/sap/bc/personas3/resource/" is the path I will follow to reach my resource files that I upload to the Resources area of /PERSONAS/ADMIN.
If you are not on ECC 6 using Slipstream it's possible the path to your resource files is different. Hopefully Tamas can shed some light.
Kindly,
Cristin
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.