I have this job in AX 2012 R3 CU12
private void PrintCopyAndOriginal() { CustInvoiceJour custInvoiceJourLocal; Args args = new Args(); ; select * from custInvoiceJourLocal where custInvoiceJourLocal.InvoiceId == 'INV000123'; args.record(custInvoiceJourLocal); new MenuFunction(menuitemOutputStr(SalesInvoiceCopy), MenuItemType::Output).run(args); new MenuFunction(menuitemOutputStr(SalesInvoiceOriginal), MenuItemType::Output).run(args); }
It seems that this code seriously messes up the report contracts, as parmDocumentTitle is set to "COPY" in both reports. Aditionally, one of the reports shows up without lines.
Please kindly test this code, and propose a Workaround.