Question Status

Verified
Nils Kuttkat asked a question on 23 Jan 2015 10:53 AM

Hi,

is it even possible to change the status in a movement work from available to blocked?

I change the status by code (simply setting "_toInventStatusId" in code down below) if the target location is some special location.

The code seem to allow that:

Bu if i try to execute the movement work it ends in a dead lock. The client pretends to process and i have to restart AX.

Now my question is, is it an illegal action to change status during work?

Edit:

I completed the work by WHSWorkExecute-Form and it worked out perfectly. Maybe some parameters are missing when i execute it by "Complete Work"-Button. I suspect the target LP. But i wonder why i didn't get an error message. But now it's weekend! I'm outta here.

Greetings Nils

Reply
Nils Kuttkat responded on 27 Jan 2015 1:30 AM

I have still got no solution but is suspect that i have to create and execute a quaratine work somewhere in the process (if there is a status change between pick and put).

Reply
Verified Answer
Nils Kuttkat responded on 27 Jan 2015 4:15 AM

In order to change a status i had to create and execute quarantine work.

The simple solution mentioned above (call method with _toInventStatusId "blocked") doesn't work.

Reply
Ivan Kashperuk responded on 27 Jan 2015 4:18 AM

That seems reasonable and in tune with the rest of the WHS code.

Ivan (Vanya) Kashperuk

Senior Software Engineer @ MDCC

My Blog about Dynamics AX

Reply
Verified Answer
Nils Kuttkat responded on 27 Jan 2015 4:15 AM

In order to change a status i had to create and execute quarantine work.

The simple solution mentioned above (call method with _toInventStatusId "blocked") doesn't work.

Reply