on 05-01-2006 9:56 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.