Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to throw message to webUI from BADI ORDER_SAVE

Hi all,

I use function module 'CRM_MESSAGE_COLLECT' to throw error message in SAP GUI. But it seems that the error message will not display in webui.

then how could throw message to webUI from BADI ORDER_SAVE ? which function could i use ?


Former Member
Former Member replied


I have used the FM CRM_MESSAGE_COLLECT to throw error message to both web UI and GUI from ORDER_SAVE Badi Implementation. Check whether you are passing all the parameters to the FM. Order_Save BADI gets triggered for both Web UI & GUI. If it is error message you can use this message_collect FM but using this FM you cannot throw warning message to Web UI alone (but warning message wud come in GUI). For your reference:

      iv_caller_name = 'ORDERADM_H'
      iv_ref_object  = iv_guid
      iv_ref_kind    = 'A'
      iv_msgno       = MSG_NO
      iv_msgid       = MSG-ID
      iv_msgty       = 'E'
      iv_msgv1       = lv_syv1
      iv_msgv2       = lv_syv2
      not_found      = 1
      appl_log_error = 2
      OTHERS         = 3.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question