Skip to Content
author's profile photo Former Member
Former Member

Change Request Management - Change User Status Function Module

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 21, 2011 at 12:25 PM

    Hi,

    do you know standard report "CRM_SOCM_SERVICE_REPORT" ?

    It allows to change the status (e.g. "set next status").

    (But take care to change only those corrections, which should be modified.)

    Best regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2011 at 08:07 PM

    I solved the problem setting the right lower and highest number in the status profile.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.