Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to display image in error pop up

Former Member
0 Kudos
2,288

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

10 REPLIES 10

Former Member
0 Kudos
1,549

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

raymond_giuseppi
Active Contributor
0 Kudos
1,549

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

matt
Active Contributor
0 Kudos
1,549

What image? Why? All messages including SAP standard ones?

But mostly: Why?

SimoneMilesi
Active Contributor
0 Kudos
1,549

This request reminds me the Workshop Manager who asked me to make the Workshop alarm to ring when an error occurred in SAP

Former Member
0 Kudos
1,549

Thats right Simone. I share the same feeling.

Former Member
0 Kudos
1,549

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 .

0 Kudos
1,549

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.

rdreddy
Newcomer
0 Kudos
1,371

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

 

matt
Active Contributor
0 Kudos
1,339

Start by posting your own question instead of replying to an old one.

christoph_weyd
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,275

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