PdcAllocations: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Methods == pdcAllocations.New<br> pdcAllocations.Open<br> pdcAllocations.ProcessMaterial<br> == Properties == == Description == Allocations Object. Can be use..." |
No edit summary |
||
Line 11: | Line 11: | ||
== Notes == | == Notes == | ||
ProcessMaterial uses a private function named ChangeReservation. This function can’t be called using the interface and will not be made public. '''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. | ProcessMaterial uses a private function named ChangeReservation. This function can’t be called using the interface and will not be made public. '''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 == | |||
<source lang="vb"> | |||
dim objAlloc | |||
set objAlloc = pdc.Logistics.Allocations.New </source> | |||
== Availability== | == Availability== | ||
Available since May 2017 (from version 5.4) | Available since May 2017 (from version 5.4) |
Revision as of 15:25, 25 April 2017
Methods
pdcAllocations.New
pdcAllocations.Open
pdcAllocations.ProcessMaterial
Properties
Description
Allocations Object. Can be used to create or open Allocations. ProcessMaterial can be used to adjust/create a reservation, create an allocation and write off this allocation. This way there is no need to call individual functions; this function takes care of all of that.
Notes
ProcessMaterial uses a private function named ChangeReservation. This function can’t be called using the interface and will not be made public. 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
dim objAlloc
set objAlloc = pdc.Logistics.Allocations.New
Availability
Available since May 2017 (from version 5.4)