cancel
Showing results for 
Search instead for 
Did you mean: 

MM-LIV workflow issue

Former Member
0 Kudos

Dear WF gurus,

I have a requirement to change an existing WF for Logistics Invoice Verification.

Copy of a standard template MMIVToCompl is used

WF is triggered on BUS2081 by event PARKED.

Requirement and my problem is in nature of agent determination.

Work item after creating and parking an invoice should arrive to different agents based on referenced type of PO (EKKO-BSART) entered upon creation of invoice itself.

Example:

If referenced PO in invoice is let's say of type 'AAAA' or 'BBBB' then a parked invoice should go to finance department in (Org. unit 'ORG1') where they should post it, regardless of where in org. structure the parking of invoice takes place.

But invoices based on PO types 'CCCC' or 'DDDD' should go to finance departments (org. unit 'ORG2', 'ORG3', and 'ORG4') respectively. So when Invoice is created based upon PO type 'CCCC' somewhere in 'ORG2' than it should stay there and be posted by finance department in 'ORG2' and so on.

Organizational structure:

ORG_BASE

ORG1

ORG1-Finance dept. (posts invoices with ref. PO's type AAAA' or 'BBBB' created by clerks A,B,C,D)

ORG1-Clerk A

ORG2

ORG2-Finance dept. (posts invoices with ref. PO's type 'CCCC' or 'DDDD' created by clerks B)

ORG2-Clerk B

ORG3

ORG3-Finance dept. (posts invoices with ref. PO's type 'CCCC' or 'DDDD' created by clerk C)

ORG3-Clerk C

ORG4

ORG4-Finance dept. (posts invoices with ref. PO's type 'CCCC' or 'DDDD' created by clerk D)

ORG4-Clerk D

PLS, advise on how to approach in solving this requirement.

Is it possible to create a rule for this and avoid programming?

Suggestions and help appreciated,

Cheers,

Tom

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The thing is that object BUS2081 doesn't have an attribute or a reference with a PO number or PO type.

So I don't know how to connect these two, to find out PO type, Rel.Strategy or Rel.Group, and

finally use conditions mentioned above to define correct agent...

BUS2081 = Incoming Invoice

BUS2012 = Purchase order (upon which an invoice is created)

PO types (or combination Rel.Group/Rel.Strategy) should be used as condition for agent determination, but

as mentioned, in WF for posting invoices I have no clue on PO information...

Any suggestions please?

Thnx,

Tom

imthiaz_ahmed
Active Contributor
0 Kudos

You need to exdend the BO and add a virual attribute to get the PO type and pass this to the rule.

Regards, IA

Former Member
0 Kudos

Thnx,

solved my problem by programming a FM rule that determines correct agents.

Wanted to use this as a last resort, but I had no time on my hands.

Cheers,

Tom

Former Member
0 Kudos

Hi,

I have a same requirement as you to determine agents. Can I know where do you code this? In the business object itself or the workflow template? Thanks for your help.

former_member193382
Active Contributor
0 Kudos

Hi,

Check out this link.

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d053fe48-6513-2b10-a59f-871923ff99d8]

Regards,

Raj

Former Member
0 Kudos

Hi,

Thanks for the document. Actually I do know how to create the rule and link to an activity of the task. However, I have problem finding the activity. The workflow is: WS20001004. I suspect the activity is '000111 invoice Release' but it doesn't allow me to click on the activity: there will be an error message: 'invoice document does not exist' and the transaction will exit by itself. hence i have a problem adding the rule to the correct activity. Any advice to get round it? Your help is very much appreciated!