Skip to Content

Inactive workflow starting new workitems

Hello experts,

I have two workflow models for the object BUS2104 (Appropriation Request). One is the standard WS00300022 and the other is a customized one (WS90000010).

The standard model WS00300022 has the event linkage deactivated, whereas the customized one has the activated linkage. Both to the same event TO_BE_APPROVED.

When the Appropriation Request triggers TO_BE_APPROVED event for the first time, the customized workflow starts, as expected.

Sometimes (not always and around 5%), when the user sends the Appropriation Request for second or third times to approval again, the same document starts the standard workflow, but the linkage to this one is deactivated.

I go for Event Simulation and it gives me the following results:

Event Simulation

Object types concerned:

-> BUS2104

Potential tasks to be started:

-> Successfully started

-> WS90000010

-> Result dependent on a check function module

-> Not started

-> WS00300022

-> Link to the event is deactivated

-> Result dependent on a check function module

Any tips?? Thank you in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on May 14, 2015 at 08:54 AM

    Hello

    Can you check the Transaction SWELS to see if the TO_BE_APPROVED event triggers theWS00300022 template. Also check if this WF is active in Unit test client. You have a Development client where this workflow might be deactivated but in Unit test client , it might be active; check transaction SWE2

    There is also a possibility that WS00300022 is entered in the SPRO configuration.

    I also found a interesting thread that says this WF template cannot be copied and SAP standard code has hard coding for WS00300022' refer below. Few SAP notes are also mentioned.


    Hope it helps.

    Appropriation Request workflow cannot be copied? | SCN

    CALL FUNCTION 'SWE_EVENT_REC_TYPE_READ'

    EXPORTING

    OBJTYPE = 'BUS2104'

    EVENT = 'TO_BE_APPROVED'

    RECTYPE = 'WS00300022'

    IMPORTING

    TYPE_COUPLING = L_COUPLING

    EXCEPTIONS

    READ_FAILED = 1

    OTHERS = 2.

    Regards

    Sandy

    Message was edited by: Sandy !

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 14, 2015 at 09:47 AM

    Hi,

    Please share the SWE2 Linkage screenshot.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 15, 2015 at 06:18 AM

    Hi Cibele,

    Could you Please share the screen shot of SWIA , how standard workflow is triggering from second/ third approval.

    Regards,

    Mohit Bansal

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 15, 2015 at 09:06 AM

    Hi,

    If I were you I would check Mike's suggestion.

    First make sure that the workflow template was not started directly, through a function module like SAP_WAPI_START_WORKFLOW. Or that it is used as a subflow in another workflow.

    Kind regards, Rob Dielemans

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 16, 2015 at 09:31 AM

    Dear Cibele,

    Please check the where to use of Function module SAP_WAPI_START_WORKFLOW in DEV system in your component.

    Thanks

    Nishant

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.