Skip to Content

sap_wapi_workitem_forward not working properly in sap workflow

Hi Experts,

I am fetching workflow annd work items id for an invoice MIR4 using function MODULE

SAP_WAPI_WORKITEMS_TO_OBJECT by passing objtype BUS2081 and objkey as the invoice no .

this function module is not resulting in any result in the table worklist parameter.

please let me know if I am missing any thing.

thanks,

rg

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jun 19, 2017 at 07:51 PM

    Ramaya,

    Your heading and description is hard to understand. Are you trying to fwd a work item by

    sap_wapi_workitem_forward

    but you don't have the right work item in hand to send this function to. That is why you are relying on SAP_WAPI_WORKITEMS_TO_OBJECT to give you the work item that can be forwarded.

    well to use here is an example:

    SAP_WAPI_WORKITEMS_TO_OBJECT

    Objkey will have belnr and gjahr combined

    Worklist has the header workitem.

    You CAN NOT use that work item to use it forward, its a header workitem where the workflow actually starts.

    you have to find the dialog step item that you want to forward.

    You have to use this work item id add search in SWWWIHEAD table field WI_CHCKWI

    & find the work item that is WI_TYPE = 'W' and use that workitem to forward to workitem_forward function module.

    Thanks

    Anand

    Add comment
    10|10000 characters needed characters exceeded