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_BADIs 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