Quintiq file version 2.0 
 | 
#parent: #root 
 | 
EDIBroker MP_ImportPostponementsAndFulfillmentsBroker 
 | 
{ 
 | 
  MDSDefinition: MacroPlan 
 | 
  EDIModelLink.Destination OutputPostponementsAndFulfillmentsToModel 
 | 
  { 
 | 
    SettingsEngineLink: 'domainmodel.ediremotedatasourcedefinition.remotestorage.outputpostponementsandfulfillmentstomodel' 
 | 
    EDIMLTable FulfillmentRestriction 
 | 
    { 
 | 
      PrimaryKeyColumns: ProductID 
 | 
      PrimaryKeyColumns: SalesSegmentName 
 | 
      PrimaryKeyColumns: StartDate 
 | 
      TargetType: FulfillmentRestriction 
 | 
      TypeIndex: FulfillmentRestrictionTypeIndex 
 | 
      EDIMLColumn EndDate { Attribute: EndDate ValueType: Date } 
 | 
      EDIMLColumn ProductID { Attribute: ProductID ValueType: String } 
 | 
      EDIMLColumn SalesSegmentName { Attribute: SalesSegmentName ValueType: String } 
 | 
      EDIMLColumn StartDate { Attribute: StartDate ValueType: Date } 
 | 
      EDIMLTableOwner 
 | 
      { 
 | 
        TargetType: SalesSegment_MP 
 | 
        TypeIndex: SalesSegmentTypeIndex 
 | 
        EDIMLForeignKeyColumn 
 | 
        { 
 | 
          Column: SalesSegmentName 
 | 
          TypeIndexAttribute: Name 
 | 
        } 
 | 
      } 
 | 
    } 
 | 
    EDIMLTable PostponedSalesDemandCost 
 | 
    { 
 | 
      PrimaryKeyColumns: ProductID 
 | 
      PrimaryKeyColumns: Start 
 | 
      PrimaryKeyColumns: StockingPointID 
 | 
      TargetType: PostponedSalesDemandCost 
 | 
      TypeIndex: PostponedSalesDemandCostTypeIndex 
 | 
      EDIMLColumn Penalty { Attribute: Penalty ValueType: Real } 
 | 
      EDIMLColumn ProductID { Attribute: ProductID ValueType: String } 
 | 
      EDIMLColumn Start { Attribute: Start ValueType: Date } 
 | 
      EDIMLColumn StockingPointID { Attribute: StockingPointID ValueType: String } 
 | 
      EDIMLTableOwner 
 | 
      { 
 | 
        TargetType: Product_MP 
 | 
        TypeIndex: ProductTypeIndex 
 | 
        EDIMLForeignKeyColumn 
 | 
        { 
 | 
          Column: ProductID 
 | 
          TypeIndexAttribute: ID 
 | 
        } 
 | 
      } 
 | 
    } 
 | 
    EDIMLTable PostponementSpecification 
 | 
    { 
 | 
      PrimaryKeyColumns: SalesSegmentName 
 | 
      TargetType: PostponementSpecification 
 | 
      TypeIndex: PostponementSpecificationTypeIndex 
 | 
      EDIMLColumn HorizonNrOfTimeUnit { Attribute: HorizonNrOfTimeUnit ValueType: Number } 
 | 
      EDIMLColumn HorizonTimeUnit { Attribute: HorizonTimeUnit ValueType: String } 
 | 
      EDIMLColumn MaxNrOfTimeUnit { Attribute: MaxNrOfTimeUnit ValueType: Number } 
 | 
      EDIMLColumn MaxTimeUnit { Attribute: MaxTimeUnit ValueType: String } 
 | 
      EDIMLColumn SalesSegmentName { Attribute: SalesSegmentName ValueType: String } 
 | 
      EDIMLTableOwner 
 | 
      { 
 | 
        TargetType: SalesSegment_MP 
 | 
        TypeIndex: SalesSegmentTypeIndex 
 | 
        EDIMLForeignKeyColumn 
 | 
        { 
 | 
          Column: SalesSegmentName 
 | 
          TypeIndexAttribute: Name 
 | 
        } 
 | 
      } 
 | 
    } 
 | 
  } 
 | 
  EDITransformation.Transformation TransformPostponementsAndFulfillmentsForImport 
 | 
  { 
 | 
    EDITableTransformation 
 | 
    { 
 | 
      InputTable: FulfillmentRestrictions_MP 
 | 
      OutputTable: FulfillmentRestriction 
 | 
      EDIColumnMatch { InputColumn: EndDate OutputColumn: EndDate } 
 | 
      EDIColumnMatch { InputColumn: ProductID OutputColumn: ProductID } 
 | 
      EDIColumnMatch { InputColumn: SalesSegmentName OutputColumn: SalesSegmentName } 
 | 
      EDIColumnMatch { InputColumn: StartDate OutputColumn: StartDate } 
 | 
    } 
 | 
    EDITableTransformation 
 | 
    { 
 | 
      InputTable: PostponedSalesDemandCosts_MP 
 | 
      OutputTable: PostponedSalesDemandCost 
 | 
      EDIColumnMatch { InputColumn: Penalty OutputColumn: Penalty } 
 | 
      EDIColumnMatch { InputColumn: ProductID OutputColumn: ProductID } 
 | 
      EDIColumnMatch { InputColumn: Start OutputColumn: Start } 
 | 
      EDIColumnMatch { InputColumn: StockingPointID OutputColumn: StockingPointID } 
 | 
    } 
 | 
    EDITableTransformation 
 | 
    { 
 | 
      InputTable: PostponementSpecifications_MP 
 | 
      OutputTable: PostponementSpecification 
 | 
      EDIColumnMatch { InputColumn: HorizonNrOfTimeUnit OutputColumn: HorizonNrOfTimeUnit } 
 | 
      EDIColumnMatch { InputColumn: HorizonTimeUnit OutputColumn: HorizonTimeUnit } 
 | 
      EDIColumnMatch { InputColumn: MaxNrOfTimeUnit OutputColumn: MaxNrOfTimeUnit } 
 | 
      EDIColumnMatch { InputColumn: MaxTimeUnit OutputColumn: MaxTimeUnit } 
 | 
      EDIColumnMatch { InputColumn: SalesSegmentName OutputColumn: SalesSegmentName } 
 | 
    } 
 | 
  } 
 | 
  EDIXLSLink.Source InputPostponementsAndFulfillmentsFromExcel 
 | 
  { 
 | 
    FileName: 'MP_PostponementsAndFulfillments.xlsx' 
 | 
    SettingsEngineLink: 'domainmodel.ediremotedatasourcedefinition.remotestorage.inputpostponementsandfulfillmentsfromexcel' 
 | 
    EDIXLSLinkTable FulfillmentRestrictions_MP 
 | 
    { 
 | 
      Columns: 
 | 
      [ 
 | 
        EDIXLSLinkColumn ProductID { ValueType: String } 
 | 
        EDIXLSLinkColumn SalesSegmentName { ValueType: String } 
 | 
        EDIXLSLinkColumn StartDate { ValueType: Date } 
 | 
        EDIXLSLinkColumn EndDate { ValueType: Date } 
 | 
      ] 
 | 
    } 
 | 
    EDIXLSLinkTable PostponedSalesDemandCosts_MP 
 | 
    { 
 | 
      Columns: 
 | 
      [ 
 | 
        EDIXLSLinkColumn Penalty { ValueType: Real } 
 | 
        EDIXLSLinkColumn ProductID { ValueType: String } 
 | 
        EDIXLSLinkColumn Start { ValueType: Date } 
 | 
        EDIXLSLinkColumn StockingPointID { ValueType: String } 
 | 
      ] 
 | 
    } 
 | 
    EDIXLSLinkTable PostponementSpecifications_MP 
 | 
    { 
 | 
      Columns: 
 | 
      [ 
 | 
        EDIXLSLinkColumn HorizonNrOfTimeUnit { ValueType: Number } 
 | 
        EDIXLSLinkColumn HorizonTimeUnit { ValueType: String } 
 | 
        EDIXLSLinkColumn MaxNrOfTimeUnit { ValueType: Number } 
 | 
        EDIXLSLinkColumn MaxTimeUnit { ValueType: String } 
 | 
        EDIXLSLinkColumn SalesSegmentName { ValueType: String } 
 | 
      ] 
 | 
    } 
 | 
  } 
 | 
} 
 |