Skip to Content
avatar image
Former Member

how to catch the message

how to catch the message given by system like recoprd is locked by user to add the message to application log.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Aug 20, 2007 at 09:59 AM

    Hi..

    You can catch the Message in System fields

    SY-MSGID - message class

    SY-MSGTY - Message type

    SY-MSGNO - Message No.

    SY-MSGV1

    SY-MSGV2

    SY-MSGV3

    SY-MSGV4

    You can call the FM FORMAT_MESSAGE To Generate the Message Text which can be displayed in Application Log.

    <b>Reward Points if Helpful</b>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 09:56 AM

    Hi kranthi,

    1. In our program, if we try to lock that object,

    then it will return sy-subrc <> 0,

    2. from that we can detect, whether that object was locked or not.

    regards,

    amit m.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 09:57 AM

    HI,

    messages given by system can be captured by using

    the fm

    format_message..

    thanks & regards,

    Venkatesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 09:58 AM

    Hi,

    If you are running a BDC and then catching messages Use <b>bdcmsgcoll</b>.

    This structure is used for Collecting messages in the SAP System and contains the messages at runtime.

    Regards,

    Suruchi Mahajan

    Add comment
    10|10000 characters needed characters exceeded