cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of $skiptoken with Offline

Former Member
0 Kudos

Hello fellow SAPers.

I have found myself with an issue due the amount of records our service is returning into the device. The issue is an error 500 which ends the service and returns an error response.

The way we figured this could work was using $skiptoken command and using the logic to separate the response. This has been working wonderfully for online scenarios since we return to the Front Team  the link to the next data to fecth, making the responses from the service smaller and easier to handle.

The issue however, comes when trying to pair this with Offline Scenarios, they're using kapsel to manage the offline stores. However they tried to test this with this and the service didn't return any value and just froze. We noticed that commenting the next lines of code made it work correctly:

es_reponse_context-skiptoken = lv_index_end + 1.

CONDENSE     es_response_context

The issue with this is that's how we know what are the next records to fetch in the consecutive calls. The thing is, how do we make this to work correctly with offline or if there's no way to do so, is there any other way to try to handle the pagination.

With no further ado, I'll be thankful to hear your recomendations or comments regarding this issue.

Accepted Solutions (0)

Answers (1)

Answers (1)

LeonardoGomez
Advisor
Advisor
0 Kudos

Hi Emmanuel,

To find out the amount of records for the paging you can use a call with the ?$inlinecount=allpages option.

I think this thread will help you

Regards,

Leonardo.