Forum Discussion

cheese_za's avatar
cheese_za
Frequent Visitor
1 year ago
Solved

SAP B1 data connection change from onprem SQL to service layer

Hi All,   I am in need of some help/guidance.   In my current setup, PBi desktop is connecting directly to the SQL database of SAP B1. They are on the same server. I connect to both SAP and PBi t...
  • rajendraongole1's avatar
    1 year ago

    Hi cheese_za - Yes, moving from SQL Server direct connections to SAP Business One (B1) Service Layer via the cloud will require you to adapt your setup. 

    SAP B1 Service Layer is a RESTful OData API designed for cloud-hosted SAP B1 systems. It allows you to interact with the data and tables in SAP B1 using OData.

    • In SAP B1 on-cloud, direct SQL access is not available.
    • Instead, you query and pull data via an OData feed exposed by the Service Layer.

     

    Unfortunately, you cannot directly "edit" your current SQL connections to point to the Service Layer because:

    • SQL queries are replaced with OData calls.
    • Data retrieval via OData requires endpoints that map to SAP tables.

    You’ll need to rebuild your queries or Power BI connections to point to the OData service endpoints.

     

     

    Since OData can be slower than direct SQL, implement incremental refresh in Power BI.

    • Test the Endpoints: Use tools like Postman or Power Query to test the OData endpoints before loading into Power BI.
    • Vendor Support: Work with your vendor to confirm:
      • List of available endpoints.
      • Authentication method.
      • Data limits or throttling policies.