Skip to Content
0
Former Member
Feb 24, 2011 at 09:50 AM

Change Request Management - Change User Status Function Module

93 Views

Hi,

I am trying to set the status of a Business Transaction (e. SDHF - Urg. Correction) outside CRMD_ORDER. I have created the following report in SE38, but it does not work. The FM CRM_ORDER_CHANGE_STATUS always raises the exception NOT_ALLOWED. Can you help me to understand why?

REPORT ZCRM_ORDER_CHANGE_STATUS.

data: lv_log type balloghndl.

CALL FUNCTION 'CRM_ORDER_CHANGE_STATUS'

EXPORTING

IV_REF_GUID = '9105634D257DEC58E1000000C0A8FA1A'

IV_STATUS = 'E0002'

IV_ACTIVATE = 'X'

  • IV_REF_KIND = 'A'

  • IV_ALL_ITEMS = TRUE

  • IV_ONLY_ITEMS = FALSE

  • IV_TRACE_LOG = lv_log

EXCEPTIONS

PARAMETER_ERROR = 1

NOT_ALLOWED = 2

ERROR_OCCURRED = 3

OTHERS = 4

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Thanks,

Antonello