08-20-2007 10:54 AM
how to catch the message given by system like recoprd is locked by user to add the message to application log.
08-20-2007 10: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>
08-20-2007 10: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.
08-20-2007 10:57 AM
HI,
messages given by system can be captured by using
the fm
format_message..
thanks & regards,
Venkatesh
08-20-2007 10: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
08-20-2007 10: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>