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

error message pop-up

Former Member
0 Likes
670

Hello,

In the program that I am writing now, I intend to have all the error message appear in a pop-up on the screen with the green tick. However, if I do, for example,

MESSAGE e161(q6) WITH wa_defn-fieldname 'System'.

The only thing that appearred was the message at the bottom of the scrren (status bar) and the message disappeared within seconds.

May I know how can I get the effect I want in ABAP, I am running on WAS 6.40 with ABAP R/3?

Thanks!

Regards,

Anyi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
540

hi anyi,

use the fm POPUP_DISPLAY_MESSAGE

hope this helps,

do reward if it helps,

priya.

3 REPLIES 3
Read only

Former Member
0 Likes
541

hi anyi,

use the fm POPUP_DISPLAY_MESSAGE

hope this helps,

do reward if it helps,

priya.

Read only

0 Likes
540

Sample code.



report zrich_0001.


parameters: p_check.


at selection-screen.

  if p_check is initial.

    call function 'POPUP_DISPLAY_MESSAGE'
      exporting
        titel         = 'Error Message'
        msgid         = 'Q6'
        msgty         = 'E'
        msgno         = '161'
        msgv1         = 'This'
        msgv2         = 'That'
*   MSGV3         =
*   MSGV4         =
              .



  endif.

Regards,

Rich Heilman

Read only

0 Likes
540

hi Zhu,

Use FM <b>POPUP_DISPLAY_MESSAGE</b>

call function 'POPUP_DISPLAY_MESSAGE'
  exporting
    msgid = 'RP'
    msgty = 'S'
    msgno = '016'
    msgv1 = 'TEST'
    msgv2 = 'MESSAGE'.