Symptom
You are using the web service ManageOpportunityIn to update the status of an Opportunity, however the LifeCycleStatusCode is not getting updated.
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to the Application and User Management work center.
- Select the Service Explorer view.
- Search for the ManageOpportunityIn.
- Download the WSLD (Web Services Description Language).
- Populate the structure with the expected information.
- Execute the payload service.
Error: RBAM: No authorization for 'Operation http://sap.com/xi/A1S/Global MaintainBundle' on 'ServiceInterface http://sap.com/xi/A1S/Gl
Cause
You are not able to update the status of an Opportunity via web service as the LifeCycleStatusCode tag is not supported for the service ManageOpportunityIn.
The status of an Opportunity can only be updated manually in the UI (User Interface) by using the Change Status button.
Resolution
This is the current system behavior.
An alternative option would be by creating ODATA service for Opportunity and using the action OpportunityProcess which uses the BO Query Process to change the status from Open to In Process. A sample ODATA url to change the status is: https://{{TenantHostname}}/sap/byd/odata/cust/v1/khopportunity/Process?ObjectID='{{OpportunityObjectID}}'
Keywords
ManageOpportunityIn, Web Service, LifeCycleStatusCode, A2X, Update, Opportunity, RBAM , KBA , AP-OP , Opportunity Processing , How To