Skip to Content
avatar image
Former Member

why do we use raising error_with_message.?

hi friends

i was dispalying an error message like message

e162(zya) with 'message'

raising error_with_message.

when iam using raising error_with_message. its showing like information message in pop up why its *not showing

error message*?

thanks & regards

deepurd

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 09, 2008 at 10:53 AM

    The raising statement is to trigger an exception, for instance if your code is in a Function Module...

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      RAISING is used for triggering exceptions in a function module. The exception type that is declared in the exceptions section in the function module attributes.

  • avatar image
    Former Member
    Oct 10, 2008 at 07:27 AM

    in FM you can define Exceptions in a tab

    like div_by_zero

    now in FM source code

    if b = 0.

    message.... raising div_by_zero.

    "execution will stop at this point

    endif.

    c = a/b

    Edited by: Amit Gupta on Oct 10, 2008 9:27 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2008 at 04:17 AM

    hhh

    Add comment
    10|10000 characters needed characters exceeded