Yes BPM can do that I have an example on where we do something similar. Here
you go we do it from Order Hed to Invoice Hed but it shouldn't be dificult
to change it to shiphed.
/* Find Invoices to modify */
FOR EACH invchead WHERE invchead.invoicenum = InvoiceNum.
FOR EACH orderhed WHERE orderhed.ordernum = invchead.ordernum NO-LOCK.
/* Check for MC WOID so we don't mess with normal invoices. */
IF orderhed.Number07>0 THEN
DO:
ASSIGN
invchead.ponum = orderhed.character05
invchead.invoicecomment = "MC WOID: " +
string(orderhed.number07) + "~r~n" + "WO Reason: " + orderhed.character01 +
"~r~n" + "Labor Report: " + orderhed.character06 + "~r~n"
invchead.character01 = orderhed.character01
invchead.character02 = orderhed.character02
invchead.character03 = orderhed.character03
invchead.character04 = orderhed.character04
invchead.character05 = orderhed.character05.
END.
END.
END.
Sincerely
Jose C Gomez
http://www.josecgomez.com
Sent from Jacksonville, FL, United States
On Tue, Aug 11, 2009 at 4:04 PM, greg.deterding <
greg.deterding@...> wrote:
you go we do it from Order Hed to Invoice Hed but it shouldn't be dificult
to change it to shiphed.
/* Find Invoices to modify */
FOR EACH invchead WHERE invchead.invoicenum = InvoiceNum.
FOR EACH orderhed WHERE orderhed.ordernum = invchead.ordernum NO-LOCK.
/* Check for MC WOID so we don't mess with normal invoices. */
IF orderhed.Number07>0 THEN
DO:
ASSIGN
invchead.ponum = orderhed.character05
invchead.invoicecomment = "MC WOID: " +
string(orderhed.number07) + "~r~n" + "WO Reason: " + orderhed.character01 +
"~r~n" + "Labor Report: " + orderhed.character06 + "~r~n"
invchead.character01 = orderhed.character01
invchead.character02 = orderhed.character02
invchead.character03 = orderhed.character03
invchead.character04 = orderhed.character04
invchead.character05 = orderhed.character05.
END.
END.
END.
Sincerely
Jose C Gomez
http://www.josecgomez.com
Sent from Jacksonville, FL, United States
On Tue, Aug 11, 2009 at 4:04 PM, greg.deterding <
greg.deterding@...> wrote:
>[Non-text portions of this message have been removed]
>
> I put a UD field on Order entry so we can put a customer's email address in
> and send him an order ack with a BAM and APM. We are now looking to send
> packing slips the same way using the email from the orderhed. Can anyone
> think of a way to copy the orderhed field to shiphead? I was hoping a BPM
> might be able to do this but havent figured out a way to make it happen. Any
> suggestions would be much appreciated.
>
>
>