2007 Apr 12 10:10 PM
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.<b>What does this signify or do?</b>
2007 Apr 12 10:24 PM
It issues a message of type TYPE (Error or Information or Success or Abend) whose text is determined by the attributes of ID, Number and the variables. So if I take an example of
MESSAGE ID 00
TYPE 'W'
NUMBER 003
WITH A B C D.will issue a message
Message with maximum length and maximum variable parts: A B C D 1234*.
You can see the messages in SE91, enter 00 for message ID and 003 for number, you will see this message with place holders (&). These place holders will be replaced by their actual values when you issue this message statement (A, B, C, D in this example).
SY-MSGID, SY-MSGTY, SY-MSGNO, SY-MSGV1, SY-MSGV2, SY-MSGV3 and SY-MSGV4 are system variables which are set in memory during the processing.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.<b>What does this signify or do?</b>
2007 Apr 12 10:19 PM
2007 Apr 12 10:23 PM
This is entire structure which holds message details. You would find this structure in function modules or BAPIs in the form of
Return parameters.
For e.g. BAPIRETURN1
MESSAGE ID - Gives message class
SY-MSGTY - Message type: S Success, E Error, W Warning, I Info, A Abort
NUMBER - Message number
SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4 - Message variables which hold text
If the BAPI or any FM does not return expected results, then we refer to this structure analyse the message.
Thanks,
SKJ
2007 Apr 12 10:24 PM
It issues a message of type TYPE (Error or Information or Success or Abend) whose text is determined by the attributes of ID, Number and the variables. So if I take an example of
MESSAGE ID 00
TYPE 'W'
NUMBER 003
WITH A B C D.will issue a message
Message with maximum length and maximum variable parts: A B C D 1234*.
You can see the messages in SE91, enter 00 for message ID and 003 for number, you will see this message with place holders (&). These place holders will be replaced by their actual values when you issue this message statement (A, B, C, D in this example).
SY-MSGID, SY-MSGTY, SY-MSGNO, SY-MSGV1, SY-MSGV2, SY-MSGV3 and SY-MSGV4 are system variables which are set in memory during the processing.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |