cancel
Showing results for 
Search instead for 
Did you mean: 

Alternative to Odata service

former_member490124
Discoverer
0 Kudos

Hi,

We have to pass few thousand products from UI5 as a filter to get result from the ABAP backend. If I understand well, I can use a table of parameters in the url. But with so many entries, this url will explode.

Any idea what kind of other service we can use? Odata seems to be rather Get service mot PUSH service…

Thanks

Stephane

Accepted Solutions (0)

Answers (1)

Answers (1)

kammaje_cis
Active Contributor
0 Kudos

Hi Stephane,

"Few thousand products" ? How did you fetch them to the UI5 screen?

Can you please explain the business scenario? May be experts here can provide a better solution with the scenario.

You can also explore using the json adapter for Function Modules.

http://scn.sap.com/community/abap/connectivity/blog/2013/03/05/json-adapter-for-abap-function-module...

Thanks

Krishna

former_member490124
Discoverer
0 Kudos

Hi Krishna,

We are getting on UI selected products from backend and then the user can select them in new request to push back as a filter  for the algorythm. So algo can be executed with those products as a parameters.

I also started looking at the POST request(so on UI we can put all products in the array?), what methods in the gateway should I reimplement?

thanks

Stephane

kammaje_cis
Active Contributor
0 Kudos

Hi Stephane,

I would suggest you to go through OData basics at odata.org . This will help you to decide the design of your data model. A PUT method seems suitable but you need to decide on the data model or the properties inside your entity.

Thanks

Krishna

former_member490124
Discoverer
0 Kudos

Hi Krishna,

Isn't PUT method include everything into url similary to GET?

We are able to push down with POST the values in a  simple structure, but we need POST with an array(where we can put hundreds of products). However I can't create a Entity with table type as a data structure...

Is it mean that POST is useless for our scenario?

thanks

Stephane