cancel
Showing results for 
Search instead for 
Did you mean: 

Display messages from FM

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member199125
Active Contributor
0 Kudos

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