Extract Data Of Workflow Log

How to extract the data into the workflow log (Trx SWI1), by custom report?

Solution:

Extract the Work item ID from table SWWWIHEAD.

Then use the call function SWP_WORKFLOW_STEP_LOG_READ (entry with Work item ID ) to extract agent, date and time of a specific task single-step (in this way the task TS20000118).

Further Notes:

1. If you are looking to know the log of a specific workitem then you can get a set of function modules from the function group SWWL.

2. If you are looking to read the workitem container, like the details or the values that are stored in the workflow container then I think you can make use of the FM SAP_WAPI_READ_CONTAINER.

3. If you are looking for the tables then SWWWIHEAD, SWWUSERWI etc...

or

You should be investigating SAP_WAPI* functions - there is a lot there that could help you accomplish what you need.

or

You can try to use the following useful FMs:

SWP_WORKFLOW_LOG_READ
SWP_WORKFLOW_NODE_LOG_READ
SWP_WORKFLOW_STEP_LOG_READ

Read Also
Useful TCodes Used In SAP Workflow

SAP WF Reference Books:
SAP Workflow Configuration, Interview Questions and Certification, Books

Back to:
SAP Business Workflow Hints and Tips

Return to :-
SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.  The site www.gotothings.com is in no way affiliated with SAP AG.
Any unauthorised copying or mirroring is prohibited.