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

Delete messages errors of item quotation

Hi everyone,

To remove the error messages of a quotation item in CRM, I used FM 'CRM_MESSAGES_DELETE'

in the following way, but it did not work !!!

data:     lt_msgidno                     TYPE bal_r_idno,
            ls_msgidno                     TYPE bal_s_idno.

  ls_msgidno-sign = 'I'.
  ls_msgidno-option = 'EQ'.
  ls_msgidno-low-msgid = 'ZERROTCLASS'.
  ls_msgidno-low-msgno = '006'.
  APPEND ls_msgidno TO lt_msgidno.

  ls_msgidno-sign = 'I'.
  ls_msgidno-option = 'EQ'.
  ls_msgidno-low-msgid = 'ZERROTCLASS'.
  ls_msgidno-low-msgno = '007'.
  APPEND ls_msgidno TO lt_msgidno.

  CALL FUNCTION 'CRM_MESSAGES_DELETE'
    EXPORTING
*      it_r_msgid      =  lt_msgid
      it_r_msgidno    =  lt_msgidno
      iv_ref_object     =  is_orderadm_i_wrk-guid
      iv_caller_name  =  'ORDERADM_I'
*      iv_docnumber   =  is_orderadm_i_wrk-guid
    EXCEPTIONS
      appl_log_error = 1
      OTHERS         = 2.

What should I do to delete messages errors of this item quotation ???

Kind Regards,

Hassan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 12:15 PM

    Hi,

    Try by passing lt_msgid

    data lt_msgid type bal_r_msid,

    lv_msgid type bal_s_msid.

    MOVE 'I' TO es_mess_id-sign.

    MOVE 'EQ' TO es_mess_id-option.

    MOVE message class TO es_mess_id-low.

    APPEND es_mess_id TO et_mess_id.

    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.