PdcAllocations.New

From External Bemet Wiki
Revision as of 13:58, 25 April 2017 by Mike (talk | contribs) (Created page with "== Declaration == New() as IAllocation == Description == Creates a new TpdcAllocation object. == Notes == This TpdcAllocation object can be used to create and write off an a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

New() as IAllocation

Description

Creates a new TpdcAllocation object.

Notes

This TpdcAllocation object can be used to create and write off an allocation in PdC. Keep in mind that an allocation can only be written off through scripting if the material has the correct write-off-settings. Check the notes in WriteOff for more information.

Code example

This code creates a new TpdcAllocation object and sets the properties needed in order to create an allocation in PdC.

source lang="vb" dim alloc Set alloc = PDC.Logistics.Allocations.New

alloc.MaterialID = 2075 alloc.MaterialNo = "ASSY3 SCHAW10" alloc.Quantity = 4 alloc.LMV_ID = 111 alloc.ReservationID = 357 alloc.UseExistingAlloc = False /source

Availability

Available since May 2017 (from version 5.4)