2016 Sep 12 4:13 PM
Hi Gurus,
We have a requirement where user wants to display Image in pop up screen for any error or warning in ECC. Will highly appreciate any help.
Thanks,
Satyam
2016 Sep 12 4:21 PM
How is the pop up for error message created?
If the pop up is based on a custom dynpro such as a modal window, you can use control framework to display the required image.
The approach is the same as using a ALV in a container but instead of the ALV class you would use the class CL_GUI_PICTURE to insert the picture into a container.
You can refer to the example program SAP_PICTURE_DEMO .
Thanks,
Vikram.M
2016 Sep 13 7:21 AM
Use SAP GUI options: Interaction Design, Notifications - check boxes for warning an error messages in a dialog box.
Ref: Setting the Type of Message Notification in SAP GUI for Windows.
Ask admin they have options during installation and update of SAG GUI, also look for Server Configuration File.
Regards,
Raymond
2016 Sep 13 7:38 AM
What image? Why? All messages including SAP standard ones?
But mostly: Why?
2016 Sep 13 7:53 AM
This request reminds me the Workshop Manager who asked me to make the Workshop alarm to ring when an error occurred in SAP
2016 Sep 13 3:48 PM
2016 Sep 13 3:54 PM
The users have provided some images like "Danger Sign" in case of error popup in a Z program in ECC. They have the notion that SAP standard ones are boring .
2016 Sep 13 4:21 PM
If you want to stick to standard and still have flexibility, use function module POPUP_TO_CONFIRM and for the icons let them choose from transaction ICON. There is plenty to choose from there including several sizes of warnings.
2024 Jun 03 8:42 PM
Hi,
We have a requirement to display an image when Post goods issue button is clicked on VL02n. Could anyone advise how to achieve this?
Thanks
2024 Jun 04 7:49 AM
Start by posting your own question instead of replying to an old one.
2024 Jun 04 6:07 PM
Hi
depending on your release level (7.40 onwards) you could create an HTML popup using
cl_abap_browser=>show_html(
EXPORTING
html_string = htmlstr
title = 'ERROR'
modal = ''
size = 'L'
...
)
you can then place whatever you want into the html string (images, sound, text...).
The html code can be very simple
<html><body>
<h1>+++ ERROR +++</h1>
<img src="...upload.wikimedia.org/wikipedia/commons/f/f0/Error.svg" alt="ERROR" width="300" height="300">
</body></html>
Cheers
Christoph