This post is machine-translated. The original post in german language can be found here.

Report a production order as finished through code

Screenshot

Dynamics AX provides a framework, which can be used to update production orders to a specific status. In the example, a production order is reported as finished.

If you want to update several production orders at the same time, you must invoke the ProdMultiReportFinished.insert() method per production order and pass the respective record of ProdTable.

 

static void prodReportFinished(Args _args)
{
    ProdTable prodTable;
    ProdMultiReportFinished prodMultiReportFinished;

    prodTable = ProdTable::find("P000195");

    prodMultiReportFinished = ProdMultiReportFinished::construct(new Args());
    RunBaseMultiParm::initParm(prodMultiReportFinished);
    prodMultiReportFinished.insert(prodTable, prodMultiReportFinished.defaultParmBuffer());

    prodMultiReportFinished.run();
}
 
These post applies to following version:
Dynamics AX 2012

Brandon G 04/28/2021 18:54 | #1

If I need to pass in the qty for a partial Report As Finished, as well as the default warehouse, and location, how can I do this?

Brandon G 05/10/2021 20:05 | #2

If I need to pass in the qty for a partial Report As Finished, as well as the default warehouse, and location, how can I do this?

Brandon G 05/10/2021 20:06 | #3

If I need to pass in the qty for a partial Report As Finished, as well as the default warehouse, and location, how can I do this?

Brandon G 05/18/2021 01:25 | #4

If I need to pass in the qty for a partial Report As Finished, as well as the default warehouse, and location, how can I do this?

Brandon G 06/01/2021 18:26 | #5

If I need to pass in the qty for a partial Report As Finished, as well as the default warehouse, and location, how can I do this?

Amar 08/13/2021 05:40 | #6

Thanks a lot , it help me now after many years

Add comment
 
 

 

 
 
 
Posts of the actual month
Oktober 2021
MoTuWeThFrSaSu
 123
45678910
11121314151617
18192021222324
25262728293031
 
© 2006-2021 Heinz Schweda | Imprint | Contact | German version | Mobile version
In order to provide you with better service, this site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.