Skip to Content
0
Former Member
Mar 06, 2007 at 05:52 PM

Logistics Invoice workflow

153 Views

Hi All,

Requirement is for a Logistics Invoice Workflow

triggered when 1> Price variance block(P) 2>Qty variance block (Q)

3> when GR not found --- dont know which event this raises

Also 1 invoice can have associated multiple PO's . The PO's can have different buyers . So the buyers should be sent the workitem with only the details of the Po's that he is responsible for . Also if there is both a qty block and a price block then he should receive just 1 workitem . I don't think they require functionality as in workflow WS20000397 where the workflow automates the change / delete/verify actions and if change is selected then loops through the PO's in the change mode allowing to change price . This functionality will be performed manually , so the workflow itself is more like a notification .

This is how I was thinking of tackling this .

1. Get the list of blocked work items for the current invoice into a multiline.

2. Get the buyers for each invoice line item via the associated PO Litem

into another multiline

3. Get a list of buyers from pt 2 and remove duplicates . move into another multiline .

4. call a subworkflow ( once for each line of the multine for buyers ) .

5. This subworkflow will get the line items belonging to the buyer

it will then call a task which will list the line items ( similar to bus2081-LISTBLOCKEDPRICEITEMDATA ). might have to create another method for LISTBLOCKEDQTYTEMDATA and call the task based on whichever event is called . I don't know in which category would the no GR created block fall under ?

The work item can also contain object references for Invoice and each of the PO's so that he can view them as links and display the invoice and PO's .

The task will be completed by a invoice.released event , but if so then all the buyers will have to wait for the invoice has been released . maybe I can check if the relevant workitems have been unblocked . If not then send him another workitem . If the user chooses to reject the workitem the requirement is sent to the Accounting clerk which is fine .The workitem will remain in his inbox until he manually completes the workitem .

I hope this would work . The only thing I'm not very clear is how I can get a single workitem for both qty & price variances if they occur at the same time as they are 2 different events and will create 2 different workflows ?

Any ideas let me know .