Hello SAP Workflow community,
In our project there is a task to implement User Decision history/log management. I want to get programmatically (via ABAP, in order to be able to store this data in DB too) the history all user decisions (statuses of all User Decision work items) inside of specific workflow and send the summary report to the workflow initiator/workflow administrator upon the workflow completion.
After some search I found the complete set of relevant function modules under SAP_WAPI_WORKITEM_*, where you can get detailed information per work item, including their statuses, but I'm not sure, that this is the best practice to implement such task.
Of course, we can go «brute force» and built such log manually: to log each user decision and store it in multiline container and after that find some way to send it to the desired person. But I'm pretty sure, that there must be another way, should be some standard, SAP-provided way to build such summary report. Could you, please, point me to the relevant directions.
The Bottom line is at the end of each workflow execution I want to send to workflow initiator the report with list of all User Decisions, their statuses (approved/declined) and username, who took the decision.