OData V4 service group is not published

Published by Tobias Hofmann on

5 min read

Scenario

You want to connect the Fiori tools (BAS or VS Code) to your S/4HANA system.

Problem

The wizard for configuring / connecting the S/4HANA system shows an error for OData v4 services

Root Cause

The service group for OData v4 services is not published

Solution

Publish the OData v4 service group. See SAP Note 2948977 or this blog post by André Fischer.


Longer version

In case you want to develop a Fiori (Elements) app and you run the App Generation or New SAP System wizard, the wizard will try to connect to the SAP backend and read the published OData services. In case the service group for v4 OData services is not published in the backend, the wizard shows an error. Same when you add an SAP System in BAS or VS Code. The V2 OData services can be read, but the V4 OData services not.

Error

Example: system connection test result. The V2 services worked, the V4 services not.

(Yes, the text is green, indicating it worked, but … no. Did not work for V4. Last part should be in red or yellow.)

The OData v4 services are retrieved by accessing the service iwfnd/config.

{"error":{"code":"/IWBEP/CM_V4_COS/014","message":"Servicegruppe '/IWFND/CONFIG' ist nicht publiziert","@SAP__common.ExceptionCategory":"Configuration_Error","innererror":{"ErrorDetails":{"@SAP__common.Application":{"ServiceRepository":"DEFAULT","ServiceId":"/IWFND/CATALOG","ServiceVersion":"0002"},"@SAP__common.TransactionId":"","@SAP__common.Timestamp":"2023123456789.000000","@SAP__common.ErrorResolution":{"Analysis":"Use ADT feed reader \"SAP Gateway Error Log\" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details","Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)"}}}}}

Validate published service groups

To fix the error, the service group must be published. Validate which service groups are published.

Tx: /n/IWFND/V4_ADMIN

Expand the service groups folder to see which service groups are already published.

As long /IWNF/CONFIG is not listed here, the service catalog for v4 OData services is not available.

Publish the missing service group

Tx: /n/IWFND/V4_ADMIN

Click on Publish Service Groups.

Search for the service group iwfnd/config.

  • System Alias: LOCAL
  • Service Group ID: /IWFND/CONFIG

Click on Get Service Groups. The found service group will be shown in the table.

Select the entry /IWFND/CONFIG and click on Publish Service Groups

Confirm with Yes.

Use the default description or enter your own one.

Provide a customizing transport request.

This will publish the service group.

Result

To validate if the list of OData v4 services can now be retrieved, access the service again.

Adding the S/4HANA system in the Fiori Tools is now working and the services for both OData v2 and v4 can be successfully retrieved.

Categories: Technology

Tobias Hofmann

Doing stuff with SAP since 1998. Open, web, UX, cloud. I am not a Basis guy, but very knowledgeable about Basis stuff, as it's the foundation of everything I do (DevOps). Performance is king, and unit tests is something I actually do. Developing HTML5 apps when HTML5 wasn't around. HCP/SCP user since 2012, NetWeaver since 2002, ABAP since 1998.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.