PdcMaterialFile.ConvertUnitToUnitFactorByMatNo: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == ConvertUnitToUnitFactorByMatNo() == Description == Returns the factor from wich a unit to a unit conversion can be executed. This function uses the LM_STAM ..." |
|||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
ConvertUnitToUnitFactorByMatNo() | ConvertUnitToUnitFactorByMatNo(UnitFrom as string, UnitTo as string, MaterialNumber as string) as double | ||
== Description == | == Description == |
Revision as of 08:01, 29 June 2020
Declaration
ConvertUnitToUnitFactorByMatNo(UnitFrom as string, UnitTo as string, MaterialNumber as string) as double
Description
Returns the factor from wich a unit to a unit conversion can be executed. This function uses the LM_STAM and LM_GEW of a material for the calculation.
Notes
The function returns 0 if the LM_STAFM or LM_GEW isn't correctly filled.
This function executes an extra query to get the LM_STAFM, LM_GEW and LM_EENHD from the material as the base weight factor and then executes PdcMaterialFile.ConvertUnitToUnitFactor.
Code example VB.NET
PDC.App.MasterData.MaterialFile.ConvertUnitToUnitFactorByMatNo(strUnitFrom, strUnitTo, strMaterialNo)
Availability
Available since Juli 2020 (from version 5.6)