Skip to Content

Re-determine Workflow Agent in background job

Dear all,

we have a wf on PO approval that determined the agent based on the Cost Center responsible person. However when the Cost Center of an already created PO is changed the work item remains on the previous approver. I know that from SWI1_RULE transaction by pressing "Execute Agent Rules" the new agent is determined. Is it possible to execute this function in a background job?

BR

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 17, 2017 at 11:12 AM

    Hi,

    –°an change WF, see 001.png

    Create EVENT which is triggered when "Cost Center of an already created PO is changed the work item....".

    Thereby will start a new cycle in WF with define new agents (see 002.png ).

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 24, 2017 at 07:15 AM

    Hi Denis,

    thank you for your answer. Can you please share more details about the settings? What settings shall the change agent element must have? In the cost center wait event, what shall i enter?

    thank you in advance.

    BR

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Standard PO approval will retrigger when event SIGNIFICANTLYCHANGED is triggered, There is a badi or exit where you can create your custom logic when this should trigger.

      Kind regards, Rob Dielemans

  • Jan 24, 2017 at 03:46 PM

    Hi Rob,

    I am using a copy of the standard wf and i have the step SIGNIFICANTLYCHANGED. Do you have more details about the badi or exit? Shall it be entered as a different step?

    However, Denis' answer, provides an alternative to badi and exit with a workflow step.

    BR

    Add comment
    10|10000 characters needed characters exceeded