| Quintiq file version 2.0 | 
| #parent: #root | 
| Method ExportActuals | 
| { | 
|   Description: 'Method to export actuals to message via QI' | 
|   TextBody: | 
|   [* | 
|     // Initiate some variables including base NVT | 
|     exportfilename := 'Actuals.xml'; | 
|     routename := 'QuintiqExportActualsFileRoute'; | 
|     basenvt := NamedValueTree::Create(); | 
|     basenvt.Root( GlobalParameters_MP::GetDatasetMPSync() ); | 
|     mp := this.MacroPlan(); | 
|      | 
|     actualproductinstockingpointinperiods := selectset( mp, Actual.astype( ActualProductInStockingPointInPeriod ), apispip, true ); | 
|     this.ExportObjectToNVT( basenvt, actualproductinstockingpointinperiods, typeof( IOActualProductInStockingPointInPeriod ) ); | 
|      | 
|     actualunitperiods := selectset( mp, Actual.astype( ActualUnitPeriod ), aup, true ); | 
|     this.ExportObjectToNVT( basenvt, actualunitperiods, typeof( IOActualUnitPeriod ) ); | 
|      | 
|     // Export NVT to QI | 
|     this.ExportNVTToQI( exportfilename, routename, basenvt ); | 
|   *] | 
| } |