on 11-29-2019 12:14 PM
Hello experts,
I am using SerialNumberDetails service layer API endpoint to get serial numbers from SAP. Here I want to add filter to get only in stock serial numbers with this API.
I am using below API url currently.
GET: https://XXX.XXX.X.X:50000/b1s/v1/SerialNumberDetails?$filter=ItemCode eq 'S10000'
Response for above.
"value": [ { "DocEntry": 577, "ItemCode": "S10000", "ItemDescription": "Server Point 10000", "MfrSerialNo": null, "SerialNumber": "S1-000225", "LotNumber": null, "SystemNumber": 225, "AdmissionDate": "2019-03-06", "ManufacturingDate": null, "ExpirationDate": null, "MfrWarrantyStart": null, "MFrWarrantyEnd": null, "Location": null, "Details": "" },
Here How to filter based on in stock serial numbers?
Am I using correct endpoint here to get? Is there any other endpoint to get?
Can you please help on this?
Thanks
Irfan
Hi there,
To be clear, both Service Layer and DI API are built on top of the same business object library (OBServer.dll). This means they both expose the same features. The difference in favor of SL is that the underneath library is multi-thread AND SL also have some additions due the OData protocol implementation.
So, in terms of business functionalities, your question isn't specific to Service Layer but to DI API as well.
Here are some posts pointing the tables where you can find the Serial quantity, you could encapsulate a query using a HANA View and have it exposed as a Service Layer API
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
9 | |
8 | |
7 | |
7 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.