cancel
Showing results for 
Search instead for 
Did you mean: 

Change PickStatus in pick list di api

GzatHars
Explorer
0 Kudos

Hi everybody, I need to manage some existing pick lists by code through DIAPI. I need to pick quantity or release quantity, so what I'm currently doing, as per instructions, is to set PickedQuantity of PickLists_Lines object = quantity I need to pick. This makes oPickListLines.ReleasedQuantity go to 0, and then oPickListLines.PickStatus to change to "Y", that means "picked".. The same happens automatically for the whole PickList (OPKL) object. My problem is that the oPickListLines.PickStatus doesn't change automatically when I do the "reverse" operation, in other words when I move quantity from picked to released: my expectation is the oPickListLines.PickStatus to change from "Y" to "R" or "P", but this doesn't happen.. Does anyone have any idea on what's happening? Is this a recognized bug or am I missing something on what I'm doing?

Thank you very much

Giulio Zattera

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185682
Active Contributor
0 Kudos

Hi Giulio,

I think that this can be a bug. By SAP Business One is possible to clear the pick list and the status came back to Released.

I found this blog https://blogs.sap.com/2017/03/24/pick-list-in-sap-business-one-sdk/, maybe can help you in the future, I followed the step to clean the picked itens, but status stay wrong as you mentioned.

Kind Regards,

Diego Lother