cancel
Showing results for 
Search instead for 
Did you mean: 

Warning Messages to the log

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Sm1tje
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

use fm NAST_PROTOCOL_UPATE

Former Member
0 Kudos

Thanks for your message,

I am using CRM 2007 , I did not find the FM NAST_PROTOCOL_UPATE.

Best Regards,

Praveen