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: 
Read only

Warning message as a popup

luscruz
Participant
0 Likes
18,486

Hi all,

I'm using a standard function model in an ALV report, that have some warning messages.

When a warning appears at the bottom, if the user press with the mouse on a line, the enter stops to work.

Is it possible to have warning messages as popups, so that cannot occur?

I already tried with SAP Gui options, but in that case, appears a message on the bottom of the screen, AND a popup. After I press Ok in the popup i still need to press enter.

Any ideas?

Best regards,

Luis Cruz

1 ACCEPTED SOLUTION
Read only

Former Member
6,800

Hi Luis,

Use this fun Mod...


      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          titel = w_titel
          txt1  = w_txt
          txt2  = ' '
          txt3  = ' '
          txt4  = ' '.

Thanks & Regards,

Krishna

9 REPLIES 9
Read only

Former Member
6,801

Hi Luis,

Use this fun Mod...


      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          titel = w_titel
          txt1  = w_txt
          txt2  = ' '
          txt3  = ' '
          txt4  = ' '.

Thanks & Regards,

Krishna

Read only

Former Member
0 Likes
6,800

Hi,

Use FM FC_POPUP_ERR_WARN_MESSAGE

In this FM, just uncheck the field IS_ERROR and give your message title and message text.

Hope this will help.

Regards,

Nitin.

Read only

Former Member
0 Likes
6,800

Hi,

Try POPUP* in se37 and find the function modules which suits your requirement

Regards,

Thiru. R

Read only

Former Member
0 Likes
6,800

Try:

MESSAGE 'Warning Message' TYPE 'I' DISPLAY LIKE 'W'.

Read only

luscruz
Participant
0 Likes
6,800

Thanks all...

I explain me wrong.

In my ALV i'm using the standard FM 'STATUS_CHANGE_INTERN'.

That function have some warning messages that i wish to hide, or show as a popup (information messages)

How can I do that?

Regards,

Luis

Read only

Former Member
0 Likes
6,800

Hi..

use this FUnc-module: FC_POPUP_ERR_WARN_MESSAGE

just pass IS_ERROR = ' '.

it will give a pop-up with warrning message..

Thanks and Regards,

GSANA

Read only

Former Member
0 Likes
6,800

Hi

Check out the Documentation of the FM : STATUS_CHANGE_INTERN

It says that "If the message handkler is active, no error messages or exceptions are triggered. Instead an appropriate message is written in the message handler."

It probably is a parameter being passed to the FM that'll solve ur prob.

Cheers

Ravish

Read only

0 Likes
6,800

Thanks again...

STATUS_CHANGE_INTERN cannot be used, since it's an external status.

I found a workarround:

EXCEPTIONS:

ERROR_MESSAGE = 99.

Read only

Former Member
0 Likes
6,800

You may use FM

RSDC_SHOW_MESSAGES_POPUP

You can show any kind of message using above FM.

User action will be captured in export structure e_s_exit_command.

Regards,

Mohaiyuddin