cancel
Showing results for 
Search instead for 
Did you mean: 

applicatio log filling in CRMD_ORDER tcode.

Former Member
0 Kudos

Hi,

I want to fill the application log in tcode: CRMD_ORDER.

This I should implement in a BADI. Please let me know how to fill this.

Is there any FMs through which we can fill?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

There is a BADI called ORDER_SAVE, which you could implement. This BADI will allow you to do various things at the point in time, just before an order is saved.

Best regards,

Anders

Former Member
0 Kudos

Hi Anders,

Thanks a lot.

I used ORDER_SAVE already for other purpose. Now to fill the application log, I need to know what Function modules to use.

If you have know please let me know.

Regs

Harish

Wolfgang_Mayer
Active Participant
0 Kudos

Hi Harish,

I've posted sample code I've used in ACTIVITY_H BADI below.

Regards

Wolfgang

-

-


  • First remove messages of this type

CLEAR: ls_msgidno, lt_msgidno.

ls_msgidno-sign = 'I'.

ls_msgidno-option = 'EQ'.

ls_msgidno-low-msgid = 'ZMOB1_ACT'.

ls_msgidno-low-msgno = '001'.

APPEND ls_msgidno TO lt_msgidno.

CALL FUNCTION 'CRM_MESSAGES_DELETE'

EXPORTING

it_r_msgidno = lt_msgidno

iv_ref_object = is_activity_h_wrk-guid

iv_caller_name = 'ORDERADM_H'

EXCEPTIONS

appl_log_error = 1

OTHERS = 2.

  • MSISDN muß bereits eingegeben worden sein

CHECK NOT is_activity_h_wrk-extern_act_id IS INITIAL.

  • Checks whether message has to be added

  • .....

IF ( < message to be added > ).

  • Add message

CALL FUNCTION 'CRM_MESSAGE_COLLECT'

EXPORTING

iv_caller_name = 'ORDERADM_H'

iv_ref_object = is_activity_h_wrk-guid

iv_msgno = ls_msgidno-low-msgno

iv_msgid = ls_msgidno-low-msgid

iv_msgty = 'E'

EXCEPTIONS

not_found = 1

appl_log_error = 2

OTHERS = 3.

ENDIF.

Former Member
0 Kudos

Hi

Wolfgang,

Thanks. I was busy in meeting. I will try this.

Regs

Harish

Former Member
0 Kudos

Hi, I tried this.

It is partially success. Because I have to add information messages to application log. When I have changed the message type in 'CRM_MESSAGE_COLLECT' as 'I', it is not showing the info msg in the appln log.

How can we create the appln log for information messages.

Regs

Harish

Wolfgang_Mayer
Active Participant
0 Kudos

Hi,

as much as I remember there's a set/get parameter you've to set in Trx. SU01 for your user to view information messages.

However, I actually don't remember the name of the parameter right now. I've never used it since I haven't dealed with messages of type 'I' right now.

Maybe another SDN expert knows the name of this parameter. Otherwise, try to search the parameters in trx. SE80.

Regards

Wolfgang

Former Member
0 Kudos

Hi,

You can try using FM BAL_LOG_MSG_ADD.

Thanks

Kamal