Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function for workflow details?

former_member202077
Participant
0 Likes
2,323

Hello,

My goal: Workflow - I have blocked Invoice(PO's Purchase Order History tab in ME22N tx.) number with me and trying to find out for whose approval its waiting to release? In other words, currently in whose workflow inbox the Invoice is waiting for action?

In similar scenario but for a PO doc, I used the FMs 'SAP_WAPI_WORKITEMS_TO_OBJECT'(with BUS2012) and

'SAP_WAPI_GET_WI_AGENTS' I got the same info about the currently waiting workflow approver name.

But for Invoice when I used the same FM 'SAP_WAPI_WORKITEMS_TO_OBJECT' with BUS2081 then the FM is not returning any results!

Pl. let me know how to get my goal that how can I get the workflow details for an Invoice in question? If its the FM 'SAP_WAPI_WORKITEMS_TO_OBJECT' then what BUS BO i have to pass to this FM?

Thank you

1 ACCEPTED SOLUTION
Read only

Gourab_Dey
Product and Topic Expert
Product and Topic Expert
2,015

Go to the t-code "SWIA" and give the selection criteria for your workitem and execute. Check the log of the workflow and find out the agent of the current task.

Thanks,

Gourab

3 REPLIES 3
Read only

Gourab_Dey
Product and Topic Expert
Product and Topic Expert
2,016

Go to the t-code "SWIA" and give the selection criteria for your workitem and execute. Check the log of the workflow and find out the agent of the current task.

Thanks,

Gourab

Read only

0 Likes
2,015

Thank you but I need to get it in my ABAP report, also I have only one info i.e. Invoice #, I don't have work item ID.

I need to develop a report, the available info is invoice # and display all the approvers in ALV

Read only

Gourab_Dey
Product and Topic Expert
Product and Topic Expert
2,015

Check out the below link for tables. Check out the table "SWWUSERWI". Also, check out the other relevant table from the table section of the list.

SAP WORKFLOW TCODES AND SAP WORKFLOW TABLES

Thanks,

Gourab