on 07-27-2018 8:04 PM
Hello,
Im updateing a PickList with Service Layer succefully but im getting one important diference with the operation done in Business One Client and i cant Find out why.
First i generate the PickList
{
"odata.metadata": "https://sapb1.limpiolux.com.ar:50000/b1s/v1/$metadata#PickLists/@Element",
"Absoluteentry": 65,
"Name": "Name",
"OwnerCode": 7,
"OwnerName": null,
"PickDate": "2018-07-27",
"Remarks": "",
"Status": "ps_Released",
"ObjectType": "156",
"UseBaseUnits": "tNO",
"PickListsLines": [
{
"AbsoluteEntry": 65,
"LineNumber": 0,
"OrderEntry": 474,
"OrderRowID": 0,
"PickedQuantity": 0,
"PickStatus": "ps_Released",
"ReleasedQuantity": 10,
"PreviouslyReleasedQuantity": 10,
"BaseObjectType": 17,
"SerialNumbers": [],
"BatchNumbers": [],
"DocumentLinesBinAllocations": []
},
{
"AbsoluteEntry": 65,
"LineNumber": 1,
"OrderEntry": 474,
"OrderRowID": 1,
"PickedQuantity": 0,
"PickStatus": "ps_Released",
"ReleasedQuantity": 15,
"PreviouslyReleasedQuantity": 15,
"BaseObjectType": 17,
"SerialNumbers": [],
"BatchNumbers": [],
"DocumentLinesBinAllocations": []
}
]
}
In SAP this looks like this
The i update a picking using Sap Client and i get this json
{
"odata.metadata": "https://sapb1.limpiolux.com.ar:50000/b1s/v1/$metadata#PickLists/@Element",
"Absoluteentry": 65,
"Name": "Martin Rapetti",
"OwnerCode": 7,
"OwnerName": null,
"PickDate": "2018-07-27",
"Remarks": "",
"Status": "ps_Picked",
"ObjectType": "156",
"UseBaseUnits": "tNO",
"PickListsLines": [
{
"AbsoluteEntry": 65,
"LineNumber": 0,
"OrderEntry": 474,
"OrderRowID": 0,
"PickedQuantity": 5,
"PickStatus": "ps_Picked",
"ReleasedQuantity": 5,
"PreviouslyReleasedQuantity": 10,
"BaseObjectType": 17,
"SerialNumbers": [],
"BatchNumbers": [],
"DocumentLinesBinAllocations": [
{
"BinAbsEntry": 182,
"Quantity": 5,
"AllowNegativeQuantity": "tNO",
"SerialAndBatchNumbersBaseLine": -1,
"BaseLineNumber": 0
}
]
},
{
"AbsoluteEntry": 65,
"LineNumber": 1,
"OrderEntry": 474,
"OrderRowID": 1,
"PickedQuantity": 0,
"PickStatus": "ps_Released",
"ReleasedQuantity": 15,
"PreviouslyReleasedQuantity": 15,
"BaseObjectType": 17,
"SerialNumbers": [],
"BatchNumbers": [],
"DocumentLinesBinAllocations": []
}
]
}
And this looks like this
Then if i update this with service layer with the following Json to /PickListsService_UpdateReleasedAllocation
{"PickList":{"Absoluteentry":65,"Name":"Martin Rapetti","ObjectType":"156","PickDate":"2018-07-27","OwnerCode":7,"PickListsLines":[{"BaseObjectType":17,"OrderEntry":474,"OrderRowID":1,"LineNumber":1,"PickedQuantity":10,"ReleasedQuantity":5}]}}
Now the Pick is:
{
"odata.metadata": "https://sapb1.limpiolux.com.ar:50000/b1s/v1/$metadata#PickLists/@Element",
"Absoluteentry": 65,
"Name": "Martin Rapetti",
"OwnerCode": 7,
"OwnerName": null,
"PickDate": "2018-07-27",
"Remarks": "",
"Status": "ps_Picked",
"ObjectType": "156",
"UseBaseUnits": "tNO",
"PickListsLines": [
{
"AbsoluteEntry": 65,
"LineNumber": 0,
"OrderEntry": 474,
"OrderRowID": 0,
"PickedQuantity": 5,
"PickStatus": "ps_Picked",
"ReleasedQuantity": 5,
"PreviouslyReleasedQuantity": 10,
"BaseObjectType": 17,
"SerialNumbers": [],
"BatchNumbers": [],
"DocumentLinesBinAllocations": [
{
"BinAbsEntry": 182,
"Quantity": 5,
"AllowNegativeQuantity": "tNO",
"SerialAndBatchNumbersBaseLine": -1,
"BaseLineNumber": 0
}
]
},
{
"AbsoluteEntry": 65,
"LineNumber": 1,
"OrderEntry": 474,
"OrderRowID": 1,
"PickedQuantity": 10,
"PickStatus": "ps_Picked",
"ReleasedQuantity": 5,
"PreviouslyReleasedQuantity": 15,
"BaseObjectType": 17,
"SerialNumbers": [],
"BatchNumbers": [],
"DocumentLinesBinAllocations": []
}
]
}
And in SAP i cant edit picked quantity of this item anymore, the Location and the availability are blocked and null like this
I asume that this has to be something with the "DocumentLinesBinAllocations": []
Can u help me with this?
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.