You receive an error “Key for Common node missing in Request Message” for the update operation through webservice.
SAP Cloud Application Studio, SOAP UI
Reproducing the Issue
Below are the steps to perform n SOAP UI to test the update operation :-
Login to SOAP UI.
- Enter system url and credentials.
- Upload the WSDL.
- Test the update operation.
- Click on play.
Error appears as shown below
This message appears when the common node has no alternative key.
A node without an alternative key cannot be updated but only be created.
You can use below workaround for the update operation.
Scenario:When the custom webservice is created on standard BO ex. Employee business object for update operation for the employee created previously.
Workaround :If employee name is unique for each employee, add the extension fields in the Root of the XBO created on Employee( since they are unique for each employee instance).
Include them in the custom generated webservice and then in the Event before save , write an ABSL code to update the actual employee name in the corresponding node based on the values received for the extension fields in the webservice.
SDK, Cloud Application Studio, Key for Common node missing in Request Message, Webservice, Update operation, PDI , KBA , common node missing , AP-RC-BDS-WS , ByDesign Studio Web Services , Problem