‎2007 Mar 16 1:12 PM
Hi,
I would like to catch the messages of a batch input session in order to inform user of clearing itens posted and not posted.
So i thought that SX_MESSAGE_TEXT_BUILD would work fine. Somebody can give an example of this kind of code.
Of course if you know another mean of solve the problem i will appreciate that.
Best Regards
João Fernandes
‎2007 Mar 16 1:22 PM
Hi,
loop at i_yerrlog into wa_yerrlog.
v_msg_id = wa_yerrlog-msgid.
v_msg_no = wa_yerrlog-msgnr.
v_msg_var1 = wa_yerrlog-msgv1.
v_msg_var2 = wa_yerrlog-msgv2.
v_msg_var3 = wa_yerrlog-msgv3.
v_msg_var4 = wa_yerrlog-msgv4.
* Creating message text
call function 'MESSAGE_PREPARE'
exporting
msg_id = v_msg_id
msg_no = v_msg_no
msg_var1 = v_msg_var1
msg_var2 = v_msg_var2
msg_var3 = v_msg_var3
msg_var4 = v_msg_var4
importing
msg_text = v_text1.
move-corresponding wa_yerrlog to wa_output2.
move v_text1 to wa_output2-mstxt.
append wa_output2 to i_output2.
endloop.
aRs
‎2007 Mar 16 1:47 PM
Hi,
try using this fm to display the messages to the user
<b>SAPGUI_PROGRESS_INDICATOR</b>
Regards,
Pankaj