cancel
Showing results for 
Search instead for 
Did you mean: 

Custom message not being addded in Application log

Former Member
0 Kudos

Hi,

I have implemented BADI ORDER_SAVE as below to add my own message in application log:

 lv_msgsrv = cl_bsp_wd_message_service=>get_instance( ).
    lv_msgsrv->add_message( iv_msg_type   = if_genil_message_container=>mt_error
                          iv_msg_id     = 'ZMSG' 
                          iv_msg_number = '000'). 

However Im not able to see the message in application log. Is there anything Im missing here? Please suggest.

Rgds

Accepted Solutions (0)

Answers (1)

Answers (1)

jon_friesen2
Active Participant
0 Kudos

Hi sudhanshu,

I think that method is for displaying errors on the screen but not for saving them in the application log. If I were you I would use the BAL functions to write to the application log; a good starting point is here:http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d6/5d7f38f52f923ae10000009b38f8cf/frameset.htm

Jon

Former Member
0 Kudos

Hello Jon,

As per my understanding it should add error messages to application log. Anybody has any idea about this?

Rgds

Former Member
0 Kudos

Hi,

I have resolved the issue by calling FM CRM_MESSGE_COLLECT. It is saving custom error messages in application log. Closing the thread.

Rgds