2006 Dec 05 1:15 PM
Hi all,
In the structure BDCMSGCOLL, what does MSGV1, MSGV2, MSGV3, MSGV4 denote. would u please clarify about the same.
Regards,
John
2006 Dec 05 1:25 PM
Hi
MSGV1, MSGV2, MSGV3, MSGV4 are the field which contain parts of the message.
The structure BDCMSGCOLL also consists of msgid and msgnr -the message id and number..
You can use the FM <b>FORMAT_MESSAGE</b> to combine all these fields together to get the complete message
e.g
call function 'FORMAT_MESSAGE'
exporting
id = wa_messages-msgid
lang = sy-langu
no = wa_messages-msgnr
v1 = wa_messages-msgv1
v2 = wa_messages-msgv2
v3 = wa_messages-msgv3
v4 = wa_messages-msgv4
importing
msg = lv_msg
exceptions
not_found = 1
others = 2.
Using the components of structure BDCMSGCOLL you can combine them to get the complete message
the below ones are used for storing the messages generated during the execution of the BDC...Say ur creating material...Material no &soandso& created gets stored in MSGVnn.
1 is used for message id
1 is used to store message number
1 is used to store actual message.....
2006 Dec 05 1:17 PM
Those fields are the variable fields. For example if a mesage is return which has the object number in it, like sales document number, then this value would be in one those fields, probably the first.
<i>Sales Document 12345 was created.</i>
Here the value 12345 will be in the MSGV1 field.
So there is a possibility that all four fields could be filled with values.
Regards,
Rich Heilman
2006 Dec 05 1:20 PM
Hi John,
You can store the values of variable in message.
msgno55 - & & & &
so you can pass values of MSGV1,V2,V3,V4 values and you can construct total message like 'No record found ZTABLE'.
Regards
Bhupal Reddy
2006 Dec 05 1:24 PM
the below ones are used for storing the messages generated during the execution of the BDC...Say ur creating material...Material no &soandso& created gets stored in MSGVnn.
1 is used for message id
1 is used to store message number
1 is used to store actual message.....
2006 Dec 05 1:25 PM
Hi
MSGV1, MSGV2, MSGV3, MSGV4 are the field which contain parts of the message.
The structure BDCMSGCOLL also consists of msgid and msgnr -the message id and number..
You can use the FM <b>FORMAT_MESSAGE</b> to combine all these fields together to get the complete message
e.g
call function 'FORMAT_MESSAGE'
exporting
id = wa_messages-msgid
lang = sy-langu
no = wa_messages-msgnr
v1 = wa_messages-msgv1
v2 = wa_messages-msgv2
v3 = wa_messages-msgv3
v4 = wa_messages-msgv4
importing
msg = lv_msg
exceptions
not_found = 1
others = 2.
Using the components of structure BDCMSGCOLL you can combine them to get the complete message
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |