cancel
Showing results for 
Search instead for 
Did you mean: 

OData Service Create_Entity Issue while testing from Gateway Client

former_member205363
Contributor
0 Kudos

Dear Friends,

I have a OData Service with Create_entity method to insert a record. Getting error while testing from Gateway Client, please find the attached error screen and suggest me. odataserviceerror.jpg

Method: Post

URI: /sap/opu/odata/SAP/ZHCM_SR_CREATE_SRV_SRV/CREATESRSet(Srqno='1000000000')

Error: The specified HTTP method is not allowed for the resource identified by the Data Service Request URI

Thanks,

Prasad.

Accepted Solutions (1)

Accepted Solutions (1)

Joseph_BERTHE
Active Contributor

In creation request, the key shouldn't be set... it is logic because the purpose of creation request is to create a new key. Your URL should be :

/sap/opu/odata/SAP/ZHCM_SR_CREATE_SRV_SRV/CREATESRSet

Try this 😉

Regards,

Joseph

Answers (1)

Answers (1)

former_member205363
Contributor
0 Kudos

Yes you are correct, I re-created OData and used above URI, its working fine.