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?

Add comment
 
 

 

 
 
 
Posts of the actual month
Mai 2021
MoTuWeThFrSaSu
 12
3456789
10111213141516
17181920212223
24252627282930
31 
 
© 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.