Set the Maximum Number of Returned Results and the Starting Row

The service consumers can specify the maximum number of expected results for a call as well as the number of datasets to be skipped.

Context

If nothing is specified by the consumer, all records to be skipped will be selected and no records will be skipped.

You can override the user settings, or set your own defaults by performing these steps:

Procedure

  1. Retrieve the values set by the consumer or framework.
    io_query_options->get_paging( IMPORTING ev_skip = DATA(lv_skip)
    											ev_top = DATA(lv_top) ).
  2. Set your own values by passing the paging query option to the service.
    io_query_options->set_paging( iv_skip = lv_skip iv_top = lv_top ).