PdcCalculation.CheckLevels

From External Bemet Wiki
Revision as of 08:24, 21 May 2012 by Mike (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

CheckLevels

Description

Changes the production methode of a manufacturing article as is in the materials file

Notes

This method checks all materials in the calculation for made-to-order-production or deliver-from-stock.

Stocked materials are added as material, non-stocked F-parts are added as subcalculation. BEWARE; this method also executes a SaveAsArticle command!

Code example

This code checks the levels of the whole bill of material.

Sub sCheckLevelsOfCalc(robjCalc)
dim intTel

  for intTel = 0 to robjCalc.Children.Count  1
    sCheckLevelsOfCalc robjCalc.Children(intTel)
  next

  robjCalc.CheckLevels
End Sub

Availability

Available since September 2003.