Receipt Entry BPM

Marco thanks for your response! However, when I tried both of your suggestions, they didn't work. Your first suggestion displays my informational message, but it doesn't change the receiptdate to today. Your second suggestion didn't return anything and I tried all of the options available to see if it would work, but it didn't. Any other suggestions?

Also, for the value on your second suggestion in the actions , I had to put in today's date instead of "today" b/c it gave me an error message. You wouldn't happened to know the progress code to tell it to choose today as the date value?

--- In vantage@yahoogroups.com, Marco Vissuet <mvissuet@...> wrote:
>
> For each ttrcvhead no-lock where
> Ttrcvhead.rowmod = "U" and
> Ttrcvhead.receiptdate <> today:
>
> Assign ttrcvhead.receiptdate = today.
>
> End.
>
>
>
> Or do a data directive where the condition is there is at least one updated row on the rcvhead table
> And the action is set the rcvhead.receipt date of the changed row to the today expression
>
>
> Marco Vissuet
> Systems Engineering
> Pacific Contours Corporation
> Office (619) 670-3900
> Fax (619) 670-1643
> mvissuet@...<mailto:marcov@...>
> http://www.pacificcontours.com/
>
> "The information contained herein may be subject to the International Traffic in Arms Regulations (ITAR) Warning: - This document contains data whose export is restricted by the Arms Export Control Act (Title 22, U.S.C., Sec 2751, et seq.) as amended, or the Export Administration Act (Title 50, U.S.C., App 2401 et seq.) as amended. Violations of these export laws are subject to severe criminal and civil penalties. Disseminate in accordance with provisions of DoD Directive 5230.25.
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Erica L
> Sent: Monday, November 12, 2012 3:58 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Receipt Entry BPM
>
>
>
> Hi all! I'm wanting to create a BPM that will force users to change the receipt date if they delete or change items on a packing slip. Epicor tech support sent me this code - for each ttrcvhead where ttrcvhead.RowMod= 'U' and ttrcvhead.ReceiptDate <> TODAY - and it's partly working, however, when I try to update the date to equal today to prevent backdating, it gives me a 'cannot update' error message. How do I get it to alert the user, then let the user update the receipt date? Any help is appreciated!! Thanks!
>
>
>
> [Non-text portions of this message have been removed]
>
Hi all! I'm wanting to create a BPM that will force users to change the receipt date if they delete or change items on a packing slip. Epicor tech support sent me this code - for each ttrcvhead where ttrcvhead.RowMod= 'U' and ttrcvhead.ReceiptDate <> TODAY - and it's partly working, however, when I try to update the date to equal today to prevent backdating, it gives me a 'cannot update' error message. How do I get it to alert the user, then let the user update the receipt date? Any help is appreciated!! Thanks!
For each ttrcvhead no-lock where
Ttrcvhead.rowmod = "U" and
Ttrcvhead.receiptdate <> today:

Assign ttrcvhead.receiptdate = today.

End.



Or do a data directive where the condition is there is at least one updated row on the rcvhead table
And the action is set the rcvhead.receipt date of the changed row to the today expression


Marco Vissuet
Systems Engineering
Pacific Contours Corporation
Office (619) 670-3900
Fax (619) 670-1643
mvissuet@...<mailto:marcov@...>
http://www.pacificcontours.com/

"The information contained herein may be subject to the International Traffic in Arms Regulations (ITAR) Warning: - This document contains data whose export is restricted by the Arms Export Control Act (Title 22, U.S.C., Sec 2751, et seq.) as amended, or the Export Administration Act (Title 50, U.S.C., App 2401 et seq.) as amended. Violations of these export laws are subject to severe criminal and civil penalties. Disseminate in accordance with provisions of DoD Directive 5230.25.

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Erica L
Sent: Monday, November 12, 2012 3:58 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Receipt Entry BPM



Hi all! I'm wanting to create a BPM that will force users to change the receipt date if they delete or change items on a packing slip. Epicor tech support sent me this code - for each ttrcvhead where ttrcvhead.RowMod= 'U' and ttrcvhead.ReceiptDate <> TODAY - and it's partly working, however, when I try to update the date to equal today to prevent backdating, it gives me a 'cannot update' error message. How do I get it to alert the user, then let the user update the receipt date? Any help is appreciated!! Thanks!



[Non-text portions of this message have been removed]