I am trying to find a suitable function module to retrieve all workflow-related steps performed on a vendor invoice document. Examples of steps include: the workflow step that created the invoice document, sending of notification to the user for approval, approval and so on. I tried using the SAP_WAPI* function module but can't seem to retrieve all the steps. Is there another way of doing it?
You can use function module CHECK_OBJECT_IN_WF passing in the vendor invoice document. This will return all the work items which contain this object instance.
Dig Deeper on SAP workflow development
Find out how to configure clients so that the same version of an SAP workflow item is used when the workflow is triggered in separate clients.
An SAP user has created a user decision step in an SAP workflow item and wants to know how an end user can send an attachment to other users.
A SearchSAP.com reader wants to know how to hide the forward button in an SAP Business Workplace toolbar.