Dear developers,
actually i have the problem to change the status of an crm-order by a customer programm, so i can't use the customizing in spro (action profile and actions).
For processing an action i use the function modules CRM_ACTION_GET_TOOLBAR_IL to get the toolbar actions and the function module CRM_ACTION_PROCESS_IL to process the action.
Agter prcessing the action i get the following error in the method CL_METHODCALL_PPF~SET_SAVE_LOG
"UNCAUGHT_EXCEPTION" "CX_OS_OBJECT_NOT_FOUND"
"CL_TRIGGER_PPF================CP" bzw.
"CL_TRIGGER_PPF================CM001"
"IF_OS_STATE~HANDLE_EXCEPTION"
Here's the source code of my program:
Data: LT_ACTION_OBJ type CRMT_ACTION_OBJ_TAB.
Data: L_ACTION_obj like line of lt_action_obj.
Data: LT_ACTION_FLD type CRMT_ACTION_TABLE_TAB.
Data: L_ACTION_FLD like line of lt_action_fld.
CALL FUNCTION 'CRM_ACTION_GET_TOOLBAR_IL'
EXPORTING
IV_REF_GUID = '4664EDDFEE3A5EFDE1000000C0A8674D'
IV_REF_KIND = 'A'
IV_ONLY_SPEC_OBJECT = FALSE
IMPORTING
ET_ACTION_OBJ = LT_ACTION_OBJ
ET_ACTION_FLD = LT_ACTION_FLD
EXCEPTIONS
PARAMETER_ERROR = 1
ERROR_OCCURRED = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Data: IT_ACTION_OBJ type PPFTACTV.
Data: l_action_obj_ref like line of l_action_obj-action_ref.
Read table lt_action_obj index 1 into l_action_obj.
Read table l_action_obj-action_ref index 1 into l_action_obj_ref.
append l_action_obj_ref to IT_ACTION_OBJ.
CALL FUNCTION 'CRM_ACTION_REFRESH_IL'.
CALL FUNCTION 'CRM_ACTION_PROCESS_IL'
EXPORTING
IT_ACTION_OBJ = IT_ACTION_OBJ
IV_ACTIVATE = 'X'
IV_EXECUTE = ''
IV_DELETE = ''
EXCEPTIONS
PARAMETER_ERROR = 1
ERROR_OCCURRED = 2
OTHERS = 3.
CALL FUNCTION 'CRM_ACTION_PROCESS_IL'
EXPORTING
IT_ACTION_OBJ = IT_ACTION_OBJ
IV_ACTIVATE = ''
IV_EXECUTE = 'X'
IV_DELETE = ''
EXCEPTIONS
PARAMETER_ERROR = 1
ERROR_OCCURRED = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Do you have an idea how to solve this problem?
Best regards,
Jens