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.