PdcCalculation.ExpandLevels

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

Declaration

ExpandLevels

Description

Changes the production methode of a manufacture article to order commitment

Notes

This method expands all materials in the calculation for stocked F-parts and changes them to be made-to-order for this calculation.

BEWARE; this method also executes a SaveAsArticle command!

Code example

This code makes it possible to expand the levels of the whole bill of material.

Sub sExpandLevelsOfCalc(robjCalc)
dim intTel

  if (robjCalc.MaterialList.Count  robjCalc.Children.Count) > 0 then
    robjCalc.ExpandLevels
  end if

  for intTel = 0 to robjCalc.Children.Count  1
    sExpandLevelsOfCalc robjCalc.Children(intTel)
  next
End Sub

Availability

Available since July 2004.