on 08-26-2011 6:16 AM
Hi All
I am using FM SHP_DELIVERY_CREATE_FROM_SLS, it returns messages ET_MESSAGES.
How can i collect and display these message in WD. I know by using T100 message,
but here getting type problem? please help.
Thanks,
Venky.
Hi,
Please make sure the data type of the 3 parameters (msgid, msgno, msgty) is as type define within the method.
Alternatively, this is how I did it my way...
DATA ls_messages TYPE bapireturn1.
ls_messages-id = 'PG'. " TYPE syst-msgid
ls_messages-number = '199'. " TYPE syst-msgno
ls_messages-type = 'E'. " TYPE syst-msgty
wd_comp_controller->go_message_manager->report_t100_message(
EXPORTING
msgid = ls_messages-id
msgno = ls_messages-number
msgty = ls_messages-type ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Otherwise do like this,
after execution of FM , it will store the messages in ET_MESSAGES.
now read that internal table by creating workarea of type VBFS.
Then form a meaning full message by concatenating work area variables in to one text string. Now i fyou want you can display error message using that text string.
data text type string.
data wa_vbfs type wbfs.
Loop at ET_messages into wa_vbfs.
**now arrange the variables in your way
concatenate wa_vbfs-posnr, wa_vbfs-msgv1 into text separted by string.
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.