PdcAllocations.New: Difference between revisions
Jump to navigation
Jump to search
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..." |
No edit summary |
||
Line 11: | Line 11: | ||
This code creates a new TpdcAllocation object and sets the properties needed in order to create an allocation in PdC. | This code creates a new TpdcAllocation object and sets the properties needed in order to create an allocation in PdC. | ||
source lang="vb" | <source lang="vb"> | ||
dim alloc | dim alloc | ||
Set alloc = PDC.Logistics.Allocations.New | Set alloc = PDC.Logistics.Allocations.New | ||
Line 21: | Line 21: | ||
alloc.ReservationID = 357 | alloc.ReservationID = 357 | ||
alloc.UseExistingAlloc = False | alloc.UseExistingAlloc = False | ||
/source | </source> | ||
== Availability == | == Availability == | ||
Available since May 2017 (from version 5.4) | Available since May 2017 (from version 5.4) |
Revision as of 13:59, 25 April 2017
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.
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
Availability
Available since May 2017 (from version 5.4)