Replicating Newly Added Part in a Different Plant

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 Gomez

Software 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

 

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

Were you able to get this to work? I am trying the same thing, but for way more plants, and I am trying  to use the BO 



---In vantage@yahoogroups.com, <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
Can't you use the Global Checkbox to keep the parts available everywhere?


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@…

http://www.josecgomez.com
     Â


Quis custodiet ipsos custodes?


On Thu, Oct 24, 2013 at 9:13 AM, <chalkster@...> wrote:

Â
<div>
  
  
  <p>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

</div>
 


<div style="color:#fff;min-height:0;"></div>

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 Gomez

Software 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

 

We need this to actually create the PartPlant records for the part, that way the user will not have to manualy enter every partplant record. 



---In vantage@yahoogroups.com, <jose@...> wrote:

Can't you use the Global Checkbox to keep the parts available everywhere?


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?


On Thu, Oct 24, 2013 at 9:13 AM, <chalkster@...> wrote:

 
<div>
  
  
  <p>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

</div>
 


<div style="color:rgb(255, 255, 255);min-height:0px;"></div>