Skip to Content
avatar image
Former Member

populating an error message

Hi,

I need to populate an error message in crmd_order when the status is 'open' or 'dispatched' for uninstall order. how to get only these two status into a table??????

Regards,

Lakshmi

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Sep 25, 2008 at 06:54 PM

    Hi,

    Is it related to CRM2007 ? i mean is it related to WEB UI ? Do you need to display messages on web client ?

    regards,

    Suchita

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      CRM_MESSAGE_COLLECT can be used to collect the error message . It is not required to do anything specifically to show the same message in CRM UI aswell.

      Here is an example code :

      CONSTANTS:

      lc_message_class TYPE symsgid VALUE 'ZCF_CUST_MSG'.

      CALL FUNCTION 'CRM_MESSAGE_COLLECT'

      EXPORTING

      iv_caller_name = flt_val

      iv_ref_object = <fs_data>-ref_guid

      iv_ref_kind = <fs_data>-ref_kind

      iv_msgno = '002'

      iv_msgid = lc_message_class

      iv_msgty = 'E'.

      flt_val should be the crm object name..

      You may use Badi : CRM_GEN_EXT_BADI by setting the FILTER with CRM object name (ex . STATUS ) .

      You can write the validation in the Check / Merge method.

      Best Regards,

      Karthik V