Application Development 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 error messages in pop up windows?

former_member184155
Participant

Can any body please tell me if we have any function module through which we can pop up error messages in the report.

1 ACCEPTED SOLUTION

ldzierza
Participant

try FM 'C14ALD_BAPIRET2_SHOW'.

      CALL FUNCTION 'C14ALD_BAPIRET2_SHOW'
      TABLES
        I_BAPIRET2_TAB = T_RETURN_MESSAGE. "
BAPIRET2

16 REPLIES 16

former_member1245113
Active Contributor

Hi,

Check the below FM

HR_BEN_SHOW_ERROR_POPUP

HRPAY99_PE01N_ERROR_POPUP

OIRC_MR_ERROR_POPUP_WITH_TAB

Cheerz

Ram

0 Kudos

sorry none of them use ful

0 Kudos

Hi,

Please try

POPUP_TO_CONFIRM

POPUP_DISPLAY_TEXT

POPUP_TO_DISPLAY_TEXT

Thanks,

Archana

Edited by: Archana Pawar on Feb 22, 2010 12:29 PM

0 Kudos

Hi,

Use this,

MESSAGE 'Write your message here' TYPE 'A'.

Hope it helps you,

Regards,

Abhijit G. Borkar

0 Kudos

Thanks Abhijit, this solution also worked but the problem is that on click of ok it exits that screen.

0 Kudos

MESSAGE  'Write your message here' TYPE 'E' Display like 'A'. will work as required.

0 Kudos

Hi sudhahar,

This is very old thread & answered too.

Kindly do not respond this kind of thread.

Thanks

Gourav.

Dear,

I assumed that the question deserves a better and clear answer so that anyone in the future can benefit from it. I am not answering here expecting reward points. so, new or old question doesn't make any difference to me.

with regards,

Sudhahar R.

Former Member

You can simply through the messages as below.

Message XXX(Message Class) display like 'E'.

If yow want to displat it with 'Yes'/'No' buttos, use

CALL FUNCTION 'POPUP_TO_CONFIRM'
   EXPORTING
     titlebar      = text-011 "'Error !'
     text_question = text-012 "'Are you sure ? Want to exit ? '  (This will be your message)
     text_button_1 = text-013                            "'Yes'(001)
     text_button_2 = text-014                            "'No'(002)
   IMPORTING
     answer        = lv_answer.

You need to take care of lv_answer here..

Regards,

Ganga

rainer_hbenthal
Active Contributor
0 Kudos

Why dont you go to the repository in SE80 and search for yourself? entering popup shows enough FMs.

Former Member

hi.

you can use the function module POPUP_display_text.

or you can use the statement

MESSAGE E001(zmm) DISPLAY LIKE 'I'.

it will display the error message as infomation that is in popup.

regards,

sakshi

0 Kudos

Thanks sakshi it really worked. but will it execute the code that's below it.

0 Kudos

Hello Sakshi,

I had this requirement (Warning in Popup no matter what the user settings are). DISPLAY LIKE 'I'. does exactly what I want the program to do.

Thank you very much for sharing!

Martin

ldzierza
Participant

try FM 'C14ALD_BAPIRET2_SHOW'.

      CALL FUNCTION 'C14ALD_BAPIRET2_SHOW'
      TABLES
        I_BAPIRET2_TAB = T_RETURN_MESSAGE. "
BAPIRET2

rajkumarnarasimman
Active Contributor
0 Kudos

This message was moderated.

0 Kudos

This message was moderated.