PdcAllocations.New: Difference between revisions

From External Bemet Wiki
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..."
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Declaration ==
== Declaration ==
New() as IAllocation
New() as [[pdcAllocation]]


== Description ==
== Description ==
Line 6: Line 6:


== Notes ==
== 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 [[pdcAllocation|WriteOff]] for more information.
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 [[pdcAllocation.WriteOff]] for more information.


== Code example ==
== Code example ==
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)

Latest revision as of 08:38, 1 May 2017

Declaration

New() as pdcAllocation

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 pdcAllocation.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)