Skip to Content
0
May 21, 2020 at 05:52 PM

Calling API till status code is 404 not found in SAP PI or CPI

1208 Views

Hi Experts,

I have a requirement to fetch the invoice by making an API call and generate a .csv file.

By default the API query will return only 50 invoices per call, but there are more than 50 invoices in the system.

As I don't know the counts of invoices, I need to make multiple API calls till the status code is 404 not found.

How to achieve this SAP PI or SAP CPI?

Regards,

Pavan