I've being trying to do something like this for some time now and
I've finally figured it out!
I've created the BPM using the "PO.ChangeApproveSwitch" method and
created a Pre-Processing directive.
The condition is "number of rows in the (below) query in not less
than 1" and the query I used is:
for each ttPOHeader where (ttPOHeader.RowMod='A' or
ttPOHeader.RowMod='U') , each PORel where PORel.Company =
ttPOHeader.Company and PORel.PONum = ttPOHeader.PONum and
PORel.ExpChart = '8202'
(I want to stop users approving POs where the default GL Chart is
unchanged.)
Ok, it only checks the codes used at time of approval - not on each
line - but it'll do for my purposes.
Hope it helps,
Nigel.
--- In vantage@yahoogroups.com, "brendan_butterworth"
<brendan_butterworth@...> wrote:
I've finally figured it out!
I've created the BPM using the "PO.ChangeApproveSwitch" method and
created a Pre-Processing directive.
The condition is "number of rows in the (below) query in not less
than 1" and the query I used is:
for each ttPOHeader where (ttPOHeader.RowMod='A' or
ttPOHeader.RowMod='U') , each PORel where PORel.Company =
ttPOHeader.Company and PORel.PONum = ttPOHeader.PONum and
PORel.ExpChart = '8202'
(I want to stop users approving POs where the default GL Chart is
unchanged.)
Ok, it only checks the codes used at time of approval - not on each
line - but it'll do for my purposes.
Hope it helps,
Nigel.
--- In vantage@yahoogroups.com, "brendan_butterworth"
<brendan_butterworth@...> wrote:
>not
> I would like to use BPM to check the GL Chart account entered (or
> entered) by a user on the PO release when the user tries to approvea
> purchase order.have
>
> The problem I am having is that the approve field is in the header
> table and the chart value is in the release table. Therefore by the
> time the user approves the order the temporary tables (ttPORel)
> already been cleared.through
>
> Furthermore if the order has more than one line i need to loop
> the lines and check each one and pop up a message box to remind the
> user.
>
> Any ideas? Is there a better way to do this perhaps?
>