PdcBaseMaterial.Load
Jump to navigation
Jump to search
Declaration
Load(MaterialNo as string) as Boolean
Description
Returns true or false whether the basematerial succesfully read with the supplied number.
Notes
This method read an existing basematerial. The input parameter is a materialnumber.
dim objBaseMat
dim strMatNo
strMatNo = "ABC123"
set objBaseMat = pdc.MasterData.Material
if objBaseMat.Load(strMatNo) then
ObjBaseMat.NettPurchPriceUnit = 50
if not objBaseMat.Save(true) then
msgbox pdc.LastError
end if
else
msgbox pdc.LastError
end if
Availability
Available since Januari 2017 (From version 5.3)