| Quintiq file version 2.0 | 
| #parent: #root | 
| Method ExportToDM ( | 
|   LibDEF_DataRepository defrepo, | 
|   Boolean isManufacturingDemand_i, | 
|   LibDEF_SetMeta manufacturingDemandSetMeta_i, | 
|   Boolean manufacturingDemandAsNew_i, | 
|   String manufacturingDemandSetName_i, | 
|   Boolean isMPSPlan_i, | 
|   LibDEF_SetMeta mpsPlanSetMeta_i, | 
|   Boolean mpsPlanAsNew_i, | 
|   String mpsPlanSetName_i | 
| ) | 
| { | 
|   Description: 'Export data as a new or existing set to DM using SetCreated or SetUpdated message respectively.' | 
|   TextBody: | 
|   [* | 
|     // Jacky C Nov-4-2015 (created) | 
|      | 
|     // Exporting Manufacturing Demand : Constrained Forecast | 
|     if( isManufacturingDemand_i ) | 
|     { | 
|       this.ExportSalesDemandToDM( defrepo, | 
|                                   manufacturingDemandSetMeta_i, manufacturingDemandAsNew_i, manufacturingDemandSetName_i ); | 
|     } | 
|      | 
|     // Export MPS Plan | 
|     if( isMPSPlan_i ) | 
|     { | 
|       this.ExportMPSPlanToDM( defrepo,  | 
|                               mpsPlanSetMeta_i, mpsPlanAsNew_i, mpsPlanSetName_i ); | 
|     } | 
|   *] | 
| } |