Skip to Content
Technical Articles

OData V4 Service Catalog

Recently there was a question in the Q&A section where to find the OData V4 service catalog.

Since it was Gregor Wolf who asked this question it was obvious that this information is not easy to spot and searching in Google only produced Gregor’s question at the time of writing of this blog though the catalog service is briefly mentioned in the documentation here: Service Catalog but this entry is not delivered by Google.

In order to get a list of all services you can use the following URI:

/sap/opu/odata4/iwfnd/config/default/iwfnd/catalog/0002/ServiceGroups?$expand=DefaultSystem($expand=Services)&$top=5

… but you might get the following error message if the V4 catalog service is not published yet.

{
-error: {
code: "/IWBEP/CM_V4_COS/014"
message: "Service group '/IWFND/CONFIG' not published"
@SAP__common.ExceptionCategory: "Configuration_Error"
-@SAP__common.Application: {
ServiceRepository: ""
ServiceId: ""
ServiceVersion: "0000"
}
}
}

In order to publish the OData V4 catalog service you have to use transaction /n/IWFND/V4_ADMIN which looks like follows if the service group /IWFND/CONFIG is already published.

If you don’t see it here then you have to use the Publish Service Groups button which will open the following screen where you have to provide LOCAL as the System Alias and search for the service group /IWFND/CONFIG.

The successful response of the OData V4 service catalog using the above mentioned URI looks like follows. (here I used the additional query parameter sap-ds-debug=true to get this nicely formatted response).

Be the first to leave a comment
You must be Logged on to comment or reply to a post.