OData Service - ERP Q&A https://www.erpqna.com/tag/odata-service/ Trending SAP Career News and Guidelines Tue, 28 Apr 2026 10:12:50 +0000 en-US hourly 1 https://wordpress.org/?v=7.0 https://www.erpqna.com/wp-content/uploads/2026/05/cropped-erpqna-32x32.png OData Service - ERP Q&A https://www.erpqna.com/tag/odata-service/ 32 32 How to enhance system generated ODATA service in SAP BW4HANA https://www.erpqna.com/how-to-enhance-system-generated-odata-service-in-sap-bw4hana/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-enhance-system-generated-odata-service-in-sap-bw4hana Fri, 08 Aug 2025 09:20:38 +0000 https://www.erpqna.com/?p=88803 Overview: This blog will guide you through the steps to enhance the system generated OData service In BW4HANA. Prerequisites: In BW4HANA Odata service can be generated automatically from BW query by clicking checkbox “By Odata”, this service is then can be activated in any SAP Gateway system and consumed from there. In case of any […]

The post How to enhance system generated ODATA service in SAP BW4HANA appeared first on ERP Q&A.

]]>
Overview: This blog will guide you through the steps to enhance the system generated OData service In BW4HANA.

Prerequisites:

  • SAP BW4HANA – SAP BW Query
  • SAP BW4HANA – OData Services

In BW4HANA Odata service can be generated automatically from BW query by clicking checkbox “By Odata”, this service is then can be activated in any SAP Gateway system and consumed from there.

In case of any requirements to enhance the system generated service below steps can be followed.

Steps:

Step 1: Generate OData service from BW Query.

Step 2: Create a project in t-code SEGW. Please remember <Project Name>_SRV is going to be the new service name, so please name the project accordingly.

Step 3: Right click on the Data Model and click on “Redefine” -> “OData Service (SAP GW)

Step 4: In this screen it will ask for a service where we need to select the system generated service that needs to be enhanced and click “Next”

Step 5: Click Select all and click on Finish

Step 6: Enhance the Result set with new field and Save.

Step 7: Right click on project and click on “Generate Runtime”

Runtime artifacts will be generated like shown below

Step 8: Go to DPC_EXT (Data provider extended class)

Select GET_ENTITYSET method and click on Redefine button

Step 9: Write the logic to populate the newly added field here. Super class get_entityset code will be shown by default, start the new logic after the default code. Please note that this code will be executed for each and every row in output.

Step 10: Test the output of OData service.

Go to TCODE /IWFND/GW_CLIENT, give the URL in Request URI and click on execute.

Validate the output with written logic.

Rating: 5 / 5 (1 votes)

The post How to enhance system generated ODATA service in SAP BW4HANA appeared first on ERP Q&A.

]]>
Integration Between SAP Datasphere and SAP Analytics Cloud https://www.erpqna.com/integration-between-sap-datasphere-and-sap-analytics-cloud/?utm_source=rss&utm_medium=rss&utm_campaign=integration-between-sap-datasphere-and-sap-analytics-cloud Thu, 06 Jun 2024 10:33:11 +0000 https://www.erpqna.com/?p=85310 In this blog, I want to provide the steps we followed to create an OData Service Connection to send data from Datasphere to SAC. By integrating Datasphere Actuals into SAC, we lay the foundation for strategic decision-making, driving business growth and agility. Sending Data from Datasphere to SAC via OData Service Our goal for this […]

The post Integration Between SAP Datasphere and SAP Analytics Cloud appeared first on ERP Q&A.

]]>
In this blog, I want to provide the steps we followed to create an OData Service Connection to send data from Datasphere to SAC. By integrating Datasphere Actuals into SAC, we lay the foundation for strategic decision-making, driving business growth and agility.

Sending Data from Datasphere to SAC via OData Service

Our goal for this task is to consume actuals from Datasphere into SAC for reporting and planning purposes. We will combine the actuals from Datasphere with planning data in SAC.

Here is a list of steps we took to import Datasphere actual data into SAC:

1. Identify the OData Source (Data Service URL) in Datasphere

In order for us the identify the Data Service URL we went to the following link. Within this URL, you can see all the assets available within the spaces available in your Datasphere tenant.

    Within this URL, we copied the assetRelationDataURL for the dataset we required. This is your Data Service URL. We then looked up our chosen assetRelationDataURL using the URL in the figure below. This will get us the meta data from the OData Service.

    NOTE: To view the data from your chosen asset, add the dataset name again at the end of the URL.

    2. Lookup your redirect URI in SAC

    The redirect URI in SAC is the specific endpoint URL. The URI is the destination to which the authentication server redirects the user’s browser after authentication has been successfully completed.

      We added an OData Services connection in our SAC tenant. We then change the Authentication Type to OAuth 2.0 Authorization Code. At the bottom of this window, we can see the Redirect URI.

      3. Create the OAuth Client in Datasphere

      We now want to create an OAuth client in Datasphere. We need the Redirect URI from the above step to create the OAuth client. We do this by going to System >> Administration >> App Integration and click on the ‘Add a New OAuth Client’. Once you paste the Redirect URI and click Add, you’ll get a list of the following information which you will need to take a note of.

      • OAuth Client ID
      • Secret
      • Authorization URL
      • Token URL

      4. Create OData Connection in SAC

      Within SAC, we go to Connections >> Add a Connection and chose OData Service. You need to now add the following connection parameters:

      • Data Service URL = assetRelationalDataUrl
      • OAuth Client ID
      • Secret
      • Token URL
      • Authorisation URL

      5. Import from OData Connection

      We now need to create a model in SAC. We chose OData Services as the data source and click the new connection we just made. We then create a new query and select which dimensions and measures you want when building that query.

      You can see that we have now consumed actuals data from datasphere to SAC! At this stage you can clean data and fix any issues. You have successfully imported the actuals data from OData Connection!!

      6. Create Story and Test

      As you can see here, we created a story. We added a table to our story. We chose the query we created above as the data source for the table. We added ‘Category’ as a column and using the version management functionality we can choose both the Actual and Plan category. This shows Actual data from Datasphere and Plan data within SAC.

      Rating: 0 / 5 (0 votes)

      The post Integration Between SAP Datasphere and SAP Analytics Cloud appeared first on ERP Q&A.

      ]]>