Hi,
I am working on starting a production order, using x++ code. While posting the picking list journal, I am getting an error as: Item needs to be picked first.
In my BOM, I have a raw material and a service item. I need to pick the service item using x++ code.
From the UI, I am able to achieve this by going to the pick list journal, selecting the service item line, then clicking the inventory button and selecting pick.
Then creating a new picking line and clicking confirm pick all button. Then I am able to post the journal successfully.
Thus, I need the x++ code to pick the service item, so that I can post the picking list journal.
Please help on achieving the same.
Thanks.