Skip to Content

How to get available serial number using SAP Service Layer API

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 05, 2019 at 10:25 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2019 at 03:34 PM

    Thank you Ralph for your response. I will check this out.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.