So simple checking the global box will create the Part Plant records for every single plant?
---In vantage@yahoogroups.com, <mreddy@...> wrote:You could…that’s what we use.
Manasa
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Monday, November 18, 2013 9:07 AM
To: Vantage
Subject: Re: [Vantage] Replicating Newly Added Part in a Different Plant
Can't you use the Global Checkbox to keep the parts available everywhere?
Jose C GomezSoftware Engineer
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Thu, Oct 24, 2013 at 9:13 AM, <chalkster@...> wrote:
We are about to start using 2 plants and want to keep the parts in synch between the two.
I want to automatically create a PartPlant entry in the second plant (SV) when a new part is added to the first (MfgSys).
I've been playing with BPMs with not much joy so far.
The ABL code I've used is below.
I originally tried a Pre-Proc directive - (the first 2 lines in the code were included) and when I added a new part the SV plant record was created but the default MfgSys one wasn't.
So I tried Post_Proc (excluding the first 2 lines of the code, although I also tried it with them left in) and the MfgSys PartPlant record is created but not SV.
---- code follows
find first ttPart where ttPart.RowMod = 'A' or ttPart.RowMod = 'U' no-error.
if available ttPart then do:
find first PartPlant where (PartPlant.Company = ttPart.Company) and
(PartPlant.PartNum = ttPart.Partnum) and (PartPlant.Plant = "SV") exclusive-lock no-error.
if not available PartPlant then do:
create PartPlant.
assign PartPlant.Company = ttPart.Company
PartPlant.PartNum = ttPart.Partnum
PartPlant.Plant = "SV"
PartPlant.PrimWhse = "ENGINEER"
PartPlant.NonStock = TRUE
PartPlant.SourceType = "T"
PartPlant.QtyBearing = FALSE.
end.
end.
--- end of code
Any help to finish this off would be appreciated.
Many thanks,
Rich