Skip to Content

Alternative to SAP_WAPI_WORKITEMS_TO_OBJECT

Hi,

I'm using FM SAP_WAPI_WORKITEMS_TO_OBJECT in a check function module in order to find eventually other workflows for an object. But deeply in this function module a commit work is executed and this in not allowed in the check function module - thus I get a dump.

Can anyone come up with another way of finding running workflows for an object?

Thanks,

Claus.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 08, 2015 at 08:48 AM

    You could read the data directly from table SWW_WI2OBJ.

    Also, take a look to transaction SWI6. Perhaps you can get an idea.

    Actually I am little bit surprised about your problem. I think it is quite normal approach to use that function in check function module (without problems). Refer to this post: SAP_WF: Customer Connection - Event Linkage setting

    Regards,

    Karri

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Claus Lücking

      Perhaps you have something "wrong" in the development (in your workflow template perhaps)? I assume this happens only in development? Isn't SWD_CHECK_ACTIVE_VERSION for checking the active workflow template version? What if you generated a new version for your template?

      Debugging could tell you a lot, but I guess it is difficult if the problem doesn't appear always.

      Regards,

      Karri

  • Jan 08, 2015 at 08:47 AM

    hi,

      you can find entries in SWW_WI2OBJ table

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 08, 2015 at 01:25 PM

    Not sure what is going on - but yes, it is in development.

    I will continue using the same FM at see if it gives any issues in the qa system

    Add comment
    10|10000 characters needed characters exceeded