Developing a Document Approval API Client Application
Use this procedure to write a client application to work with approvables, using the Document Approval API.
Prerequisites
Your SAP Ariba procurement solution must be configured to allow external approval. Contact your SAP Ariba representative to configure your installation.
-
You can enable approval of invoices, requisitions, and/or user profiles.
-
You can also add the optional ability to track delegation/reassignment events.
Context
This topic describes what queries to make, in what order, to identify, retrieve, and act on specific approvables, providing examples for each query.
To prevent the responses to these queries from becoming too large, parameters are available to control pagination and to filter the results set. When pagination is relevant, the sample query demonstrates how to use these parameters:
- $count
- Controls whether number of elements in a collection is returned with the response. When this parameter is true, the count is returned inline, parallel to the value field that encloses the returned approvables data, as part of the response containing the collection itself.
- $filter
- Use of this parameter varies from endpoint to endpoint, always to filter the results set. Details for use of $filter are provided with the examples for each endpoint.
- $skip
- An offset from the beginning of the result set, used for pagination.
- $top
- The maximum number of records to be returned in the response. This can be used in combination with $skip for pagination purposes. For example, if $top=10 and the results set contains 100 records, the response will contain the first 10 records. To retrieve the next set of records in the results set, submit a new query with $skip=10. For the following page, $skip=20 and so on.