cancel
Showing results for 
Search instead for 
Did you mean: 

problem with CRM_STATUS_CHANGE_FOR_ACTIV_OW

Former Member
0 Kudos

Hi ,

I have a Function Module which terminates a contract and upon completion of which it creates a quotation. Now i have to release this quotation. i.e change the status of this quotation to released.

I am using the FM CRM_STATUS_CHANGE_FOR_ACTIV_OW to change the status of the quotation by passing the guid of the quotation item but when i run it in the same FM it is saying , obhect is locked by the current user and when

i write it in a report by initially calling the FM and then calling the FM CRM_STATUS_CHANGE_FOR_ACTIV_OW to release the quotation ,

sy-subrc is 4 and message says that object is being distributed Please wait.

When i run this CRM_STATUS_CHANGE_FOR_ACTIV_OW from other report outside it successfuly releases the quotation . I wrote commit work and wait but still it is not working . I wrote wait till 20 seconds still not working.

can u plz suggest a FM or something other solution to overcome this situation.

Many Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

It is givingg the same error again, do we have to search for an OSS note for this.

error - " document is distributed - changes cannot be made"

Former Member
0 Kudos

Hi,

Try with CRM_ORDER_MAINTAIN, populating the IT_STATUS, and CT_INPUT_FEIDLS structure.

~Kiran