cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to save warning and Information messages to the Application log

0 Kudos

Hello all,

When I am trying to add message to the application log (document via CRMD_ORDER), it is allowing me to add the error, warning and information type of messages.

But when I am saving the document the warning and information messages gets erased and only error messages gets saved.

I am using the following code in the COM_PARTNER_BADI’s check method to populate the messages:

MESSAGE ID LC_MESSAGE_CLASS TYPE 'I' NUMBER 002

with lv_partner_no INTO lv_dummy.

Add a message to the Application Log

CALL FUNCTION 'CRM_MESSAGE_COLLECT'

EXPORTING

IV_CALLER_NAME = 'ORDER'

IV_REF_KIND = 'A'

IV_REF_OBJECT = LV_header_GUID.

CALL FUNCTION 'CRM_MESSAGES_SAVE'

Do we need to set/pass some variable?

Please help.

Regards,

Naveen

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Naveen,

How did you solve the problem?

Thanks in advance.

Nazeer

0 Kudos

I have solved the issue.

Former Member
0 Kudos

Hi Naveen,

I am also facing the same problem now.

Can you please let me know, how u have solved the problem...it would be great if you provide the code too....

Thanks in advance

Former Member
0 Kudos

Hi, I am having this problem - when adding warnings or information messages, they are not displayed in the mesage log, only errors - could you tell me how you resolved your issue?? Thanks, Tim