Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

messages in a batch input session

Former Member
0 Likes
430

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

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
386

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

Read only

Former Member
0 Likes
386

Hi,

try using this fm to display the messages to the user

<b>SAPGUI_PROGRESS_INDICATOR</b>

Regards,

Pankaj