cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ODATA Service (for creating a record)

venkateswaran_k
Active Contributor
0 Kudos

Dear All

We have developed a ODATA service to query data as entity set or Query data based on a key value.

It is working fine.

However, We like to have a following

1. We have a Z-table  ( Say contacts ).  This contains 10 to 11 fields

We need to create a odata service that inserts records into this z table. ( I developed one Z function to insert a record )

after creating the create method,

How i can get the 11 values from the request. 

Can someone give me a hint.

Regards,

Venkat

Accepted Solutions (0)

Answers (2)

Answers (2)

EkanshCapgemini
Active Contributor
0 Kudos

Hi,

Did you get your answer? If yes, please close this thread.

How to close a discussion and why

EkanshCapgemini
Active Contributor
0 Kudos

Hi Venkat,

You may follow this link this link explains all the CRUDQ scenarios.

How i can get the 11 values from the request. 

You will pass these values in the HTTP Request payload, sent from the front end (UI). Once you receive this http request in the gateway, the Gateway framework will give you access to the http request and the you can read your all 11 values from the payload.

If in the service implementation node, you are mapping it to the FM, it will auto generate the code for create method and you will get all the 11 values there.

I hope this helps.

Regards,

Ekansh