on 03-12-2008 3:19 PM
Hello,
I need to change programmatically the user status of an Urgent Correction. I tried several FMs, like CRM_STATUS_MAINTAIN_OW, but it kept giving me the message "Status 'E0009' cannot be set".
I managed to do what I want by directly manipulating table CRM_JEST, but I'd much rather manage to use a standard FM, because I don't know if using table CRM_JEST is safe / is enough.
So can someone tell me what FM I should use, or how I the FM I tried should be used ?
Thanks in advance.
Hi
do not change the status via order_maintain etc. in change management! No ChaRM actions or conditions will be performed!
Use report CRM_SOCM_SERVICE_REPORT (in your code via SUBMIT....) or create your own program to change the status and do it the same way the report CRM_SOCM_SERVICE_REPORT does it.
regards
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Thomas,
This should solve your problem..
CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN'
EXPORTING
client = sy-mandt
objnr = wa_new_user_status-guid
user_status = wa_new_user_status-status
no_check = 'X'
SET_INACT = ' '
SET_CHGKZ =
XNOAUTO =
EXCEPTIONS
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
OTHERS = 4.
In this FM NO_CHECK parmeter must be set to True, else u wil not be able to set the Status.....
Sample is given above...
Reward points for usefull answer...
Regards,
Anand...
Hello Anand,
I had already tried that FM, but although I don't receive any "Status not allowed" message when I put the NO_CHECK parameter to true, the FM does not do anything.
The status is not change in my urgent correction. The FM send back the exporting parameter STONR with value 60, but I don't have any idea of what that means.
Thanks,
Thomas
Hey Thomas,
Try using this FM....
CRM_STATUS_CHANGE_EXTERN
This will definately solve your problem...
Reward for useful post..
Regards,
Anand..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello both,
The way I managed to change this status is very messy, involving manually handling of some tables that are behind all that.
So I will not give that code unless we really don't find any other (cleaner) way. I will try these various FMs, although the first one I have already tried in the past without success.
Best regards,
Thomas
Hello,
you already tried the Utility Report for Change Transactions (Change Request Management) CRM_SOCM_SERVICE_REPORT?
Best regards
Thomas Hiesener
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.