cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Business One Service Layer - Semantic layer entities not exposed

tsambruni
Explorer

Hi community,

B1SL for HANA is installed on my machine and I'm able to login and get entities contents calling, e.g.:

GET https://hanaserver:50000/b1s/v2/BusinessPartners

I can get json content for all available standard entities.

Issue happens when trying to get same info using semantic layer with sml.svc, e.g.:

GET https://hanaserver:50000/b1s/v2/sml.svc/BusinessPartners
This is what i get:
{
   "error" : {
      "code" : 801,
      "message" : {
         "lang" : "en-us",
         "value" : "View 'BusinessPartners' not exist or not exposed."
      }
   }
}

This happens with all endpoints, no matter the requested entity content.

Calling directly https://hanaserver:50000/b1s/v2/sml.svc endpoint:

{
   "@odata.context" : "https://linux-hana-6:50000/b1s/v2/sml.svc/$metadata",
   "value" : []
}

and here's metadata xml:

<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="SAPB1">
<EntityContainer Name="SemanticLayer"/>
</Schema>
</edmx:DataServices>
</edmx:Edmx>

Any hint?

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Hi thomas_sambruni,

Confirmed that sml.svc was delivered in Service Layer for Views Exposure only.

If there is a semantic view with the name BusinessPartners, it will work.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

tsambruni
Explorer
0 Kudos

Thank you very much Ankit!

Does this mean then there's no other explicit .svc endpoint to enable direct business layer interaction?

Is sml.svc the only available one (through views exposure)?

Regards

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Hi thomas_sambruni,

As far as I know, sml.svc was delivered in Service Layer for Views Exposure only.

However, I will still check it for you and update you accordingly.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support