cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Inventory and Lot Serial Number

juanpmg2
Explorer
0 Likes
169
Good morning, dear friends.
I need your help with the following problem. We want to assign a batch serial number to each of our products in production. I've attached an image of a product as an example.

In that image we see that the product must be assigned a batch number when entering the product, which is what happens in the following image.

Everything works perfectly from the SAP frontend, but we do the production load from an API that works perfectly as follows.

https://xxxxxxxx/b1s/v1/InventoryGenEntries
{
“DocumentLines”: [
{
“ItemCode”: “410224”,
“Quantity”: 1,
“W...

}

]
}

but now we need to add the batch number and I tried it as follows.

 https://xxxxxxxx/b1s/v1/InventoryGenEntries

{
"DocDate": "2025-03-22",
"DocDueDate": "2025-03-22",
"Comments": "Entrada automática por API - lote 1526",
"DocumentLines": [
{
"ItemCode": "410224",
"Quantity": 1,
"WarehouseCode": "001",
"AccountCode": "1.01.004.01.002",
"SerialNumbers": [
{
"ItemCode": "410224",
"SysNumber": 393,
"LotNumber": "15256",
"Location": "001",
"AdmissionDate": "2025-03-21T00:00:00Z",

}
]
}
]

but I get the following error
"value""10001172 - Blank strings are not allowed in row 1 (in unique field). [OSRN.SysNumber][line: 0]"
Please, if anyone can help me, I'd appreciate it. I'm really behind on this at work. Thanks.
 
 

SerieProducto.png

MaestroProducto.png

Accepted Solutions (0)

Answers (0)