Hi Jose,
Bin Location Content List(OIBQ) are not available in DI API, neither Service Layer.
If you would like to retrieve the data from OIBQ only, then you can create an XSOData endpoint for this with the create,update,delete disabled. You'll be able to query the data like a normal OData.
Here you have a XSOData sample to expose BP and BP address with XSOData as below, which is similar BusinessPartners object in SL but with limited fields and read-only:
service namespace "workshop.id.2016"
{
"SBODEMOUS"."OCRD" as "BusinessPartner" with("CardCode", "CardName", "Balance", "Currency")
navigates("BP_BPAddress" as "BPAddress")
create forbidden
update forbidden
delete forbidden;
"SBODEMOUS"."CRD1" as "BPAddresses"
create forbidden
update forbidden
delete forbidden;
association "BP_BPAddress"
principal "BusinessPartner"("CardCode")
multiplicity "1" dependent "BPAddresses"("CardCode") multiplicity "*";
}
For your case, it could be even simpler with one table.
you can create an xsodata file named "BinAccumulator.xsodata" with the content below.
service namespace "your_company_namespace"
{
"SBODEMOUS"."OIBQ" as "BinAccumulator"
create forbidden
update forbidden
delete forbidden;
}
Then activate the XSODdata with the Web-based workbench or HANA studio.
Then the XSOData could be accessed like SL with a normal HTTP. Please be noted that it will required the HANA credential instead of SL credential.
An end-to-end tutorial can be found here.
You are recommended to use the web-based workbench.
How to Create SAP HANA OData Service
SAP HANA Academy - XS Engine: Creating OData Based REST Services - YouTube
Kind Regards, Yatsea