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

Warning Messages to the log

Hi Experts,

I want to send a warning message to the order log , for this I used

CALL FUNCTION 'CRM_MESSAGE_COLLECT'

EXPORTING

iv_caller_name = 'ORDER'

iv_ref_object = iv_guid

iv_msgno = 002

iv_msgid = 'ZMSG'

iv_msgty = 'W'

iv_cumulate = 'X'

EXCEPTIONS

not_found = 1

appl_log_error = 2

OTHERS = 3.

MESSAGE ID 'ZMSG' TYPE 'W' NUMBER '002' .

But the problem is order is not saving at all, I want order to be saved and the warning message to be in the log.

Please help me out in this.

Thanks in Advance,

Praveen

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 04:04 PM

    use fm NAST_PROTOCOL_UPATE

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 19, 2008 at 04:31 PM

    where did you add this message to the log, in BADI_ORDER_SAVE, or what?

    Is there another error preventing it from saving?

    What happens when you do not add this message to the log?

    Did you read the documentation of this FM, might be helpful to see if you are using it correctly!

    Edited by: Micky Oestreich on Dec 19, 2008 5:33 PM

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I am using it in the BADI_ORDER_SAVE, when I do not add this message to the log the pop up message is coming out fine.

      In this FM if I send E to iv_msgty ,its working fine too.The problem is coming only for warning messages.

      Your time in replying to this thread will be appreciated.

      Thanks in Advnace,

      Praveen

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.