Skip to Content
author's profile photo Former Member
Former Member

Error Message

Hi All,

Instead of error message i want popup message ,plz any one can send an code some type of example.

Thanks in Advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2008 at 07:23 AM

    Hello,

    You can use message type 'I'. It will display the message in the dialog box.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2008 at 07:25 AM

    Hi Nagisethi,

    Check the below statement.

    Message ' Enter The Correct Valu'  type 'I'.
    

    Regards

    Kumar M

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2008 at 07:26 AM

    Hi,

    Use the FM

    'POPUP_TO_CONFIRM'

    Or

    TH_POPUP

    Regards,

    Nandha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2008 at 07:27 AM

    Hi,

    data : x type i,

    y type i,

    z type i.

    x = 21.

    y = 2.

    z = x mod y.

    if z = '1'.

    message 'True' type 'I'.

    endif.

    write : / x,

    y,

    z.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2008 at 07:34 AM

    Hi,

    Try the below code for your requirement.

    if sy-subrc ne 0.

    message e002 display like 'I'.

    endif.

    In 002 message of your message id enter the message you want to display.

    Regards,

    Deepa Kulkarni

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 07, 2008 at 07:35 AM

    Hi ,

    Either you can use messaige type 'I' for popup message or you can use function module POPUP_TO_CONFIRM

    below is the code for POPUP_TO_CONFIRM.

    data : lv_ans type c.

    CALL FUNCTION 'POPUP_TO_CONFIRM'

    EXPORTING

    TITLEBAR = 'titlebar'

    • DIAGNOSE_OBJECT = ' '

    text_question = 'Question'

    TEXT_BUTTON_1 = 'Ja'(001)

    • ICON_BUTTON_1 = ' '

    TEXT_BUTTON_2 = 'Nein'(002)

    • ICON_BUTTON_2 = ' '

    • DEFAULT_BUTTON = '1'

    • DISPLAY_CANCEL_BUTTON = 'X'

    • USERDEFINED_F1_HELP = ' '

    • START_COLUMN = 25

    • START_ROW = 6

    • POPUP_TYPE =

    • IV_QUICKINFO_BUTTON_1 = ' '

    • IV_QUICKINFO_BUTTON_2 = ' '

    IMPORTING

    ANSWER = lv_ans

    • TABLES

    • PARAMETER =

    • EXCEPTIONS

    • TEXT_NOT_FOUND = 1

    • OTHERS = 2

    .

    IF sy-subrc <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    write :/ lv_ans.

    Regards

    Santosh Kumaar.M

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2008 at 07:48 AM

    KK

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.