cancel
Showing results for 
Search instead for 
Did you mean: 

Document user status not changed from follow-up document

Former Member
0 Kudos

Hi gurus!

My task is to set new user status of primary document (service order) from follow-up document (task) after follow-up document is created.

To do this I've created Badi-impl. of ORDER_SAVE Badi and in PREPARE method when saving newly created follow-up task I'm setting new service order user status using 'CRM_ORDER_CHANGE_STATUS' function. sy-subrc = 0 and, moreover, when in SAP GUI I'm pressing "Back" button I see new user status in service order. But after I'm pressing "Change" or re-open the service order - I see the old user status, so nothing happens at all.

Why could it be?

Thanks in advance.

Best regards,

Alexander Kirillov

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved.

Former Member
0 Kudos

Hello Alexander,

I am experiencing a similiar problem - what was the solution in your case?

Regards,

Szymon

Former Member
0 Kudos

Hello Szymon,

The solution is:

1. CALL 'CRM_STATUS_CHANGE_EXTERN_OW'

2. If ok - CALL 'CRM_STATUS_SAVE_OW' passing relevant header/ item GUID

Regards,

Alexander

Edited by: Alexander Kirillov on Jul 17, 2009 6:47 PM

former_member200342
Active Contributor
0 Kudos

Hi Alexander,

You can use the FM:CRM_STATUS_CHANGE_EXTERN instead of 'CRM_ORDER_CHANGE_STATUS' to change the user status of your primary document.

Regards,

PePe

Former Member
0 Kudos

Hi PePe!

Thanks for answer, but I've already tried FM 'CRM_STATUS_CHANGE_EXTERN' and as I wrote earlier - in debugger sy-subrc is set to 0 after 'CRM_ORDER_CHANGE_STATUS'.

The problem is much more complex I think ...