PdcCalculation.ExpandLevels: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == == Description == == Notes == == Code example == <source lang="vb"> </source> == Availability ==" |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
ExpandLevels | |||
== Description == | == Description == | ||
Changes the production methode of a manufacture article to order commitment | |||
== Notes == | == 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 == | == Code example == | ||
This code makes it possible to expand the levels of the whole bill of material. | |||
<source lang="vb"> | |||
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 | |||
</source> | </source> | ||
== Availability == | == Availability == | ||
Available since July 2004. |
Latest revision as of 08:26, 21 May 2012
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.