Hi everyone,
I am trying to create a new Function Import in SEGW transaction (Netweaver Gateway Builder).
I have followed different blogs (For example: Let’s code CRUDQ and Function Import operations in OData service!) and managed to create one.
However I am having 2 small differences:
1. I am trying to make a Http POST Function Import which is a bit different in the way you call the service.
2. I have a parameter with type Edm.Guid.
I have not found any documentation about these 2 specific things.
Here is what I have...
My function and it`s parameters in SEGW:
My metadata:
The URI I am trying with it`s payload:
/sap/opu/odata/sap/MY_SERVICE/AddTransferProducts
with
<?xml version="1.0" encoding="utf-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<atom:content type="application/xml">
<m:properties>
<d:DocGUID>guid’12345678-aaaa-bbbb-cccc-ddddeeeeffff’</d:DocGUID>
<d:Products>R100000</d:Products>
</m:properties>
</atom:content>
</atom:entry>
With this setup I get the following error when I call the service: 404 not found
Anyone understands why it is not working ? Anyone already got this issue ?
Thank you very much.
Natalie