Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method ExportSCI () as stream[Void] 
 | 
{ 
 | 
  Description: 
 | 
  [* 
 | 
    Export Product_MP, PeriodSpecifications_MP, Period_MP, SalesSegments_MP, Scenario and StockingPoint_MP to SCI 
 | 
    This is a test method, will be deleted in the futur 
 | 
  *] 
 | 
  TextBody: 
 | 
  [* 
 | 
    // Load or Create LibSCIIntegrationInterface dataset 
 | 
    libsci := LibSCIIntegration_Utility::FindCreateDataset(); 
 | 
    // Get scenario 
 | 
    s := libsci 
 | 
    ->InitializeExport() 
 | 
    ->GetLibSCIScenariosForExport() 
 | 
    ->( libsciscenarios ) 
 | 
    { 
 | 
      m := stream[Void]::Success();      
 | 
      traverse( libsciscenarios, Elements, libsciscenario ) 
 | 
      { 
 | 
        m := this->After( m )->ChangeDatasetAndExportData( libsci, libsciscenario )->|this->ExportCustom( libsci, libsciscenario ) 
 | 
      } 
 | 
      m := this->After(m)->FinalizeExport() 
 | 
       
 | 
      return m; 
 | 
    } 
 | 
     
 | 
    return s; 
 | 
  *] 
 | 
} 
 |