cancel
Showing results for 
Search instead for 
Did you mean: 

Using an OData API get records back to back in a single page by clicking a button in SAP Build Apps.

yashmin99
Explorer
0 Kudos

Hi All,

I am using an OData API which is carrying around 1000 of records, we are calling first 20 records through pagination in data variable, is there any way to call the rest of the data in a form of 20 records in a repetitive manner on the same page by configuring a button in SAP Build Apps.

Thanks in advance,
Yashmin

@Dan_Wroblewski , @marihirvi , @StephanKoenig , @Ian_Thain , @SandipAgarwalla 

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Dan_Wroblewski
Developer Advocate
Developer Advocate

There are a bunch of blogs, starting with this one, about getting data from S/4HANA and doing paging, filtering and sorting.

https://community.sap.com/t5/technology-blogs-by-sap/my-first-steps-with-btp-destinations-s-4hana-in...

Essentially, you have a page variable for the current page, and 2 buttons "Next" and "Previous" that updates the variable, and then you use this variable instead of hardcoding the page.

P.S.: I will try to release paging widget if I can, shortly, but in the meantime it is very easy to set up yourself.

 

SandipAgarwalla
Active Contributor
0 Kudos

Hi

yes possible. Use Previous, Next button to modify the $top & $skil parameters and call the API accordingly.