cancel
Showing results for 
Search instead for 
Did you mean: 

sap_wapi_workitem_forward not working properly in sap workflow

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

anand_sagarsethi
Contributor
0 Kudos

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

Answers (0)