Skip to Content
author's profile photo Former Member
Former Member

Display messages from FM

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 26, 2011 at 05:57 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2011 at 06:20 AM

    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 ).
    
    

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.