03-07-2012 10:38 AM
Hi experts,
I want to retrieve the error message for workflows. I want the message to be the one I see on SWI2_FREQ log. I need the last message from the last task it was able to perform.
Is there a function module / BAPI, .. to do this?
Regards,
Philippe
Edited by: Philippe Haesaert on Mar 7, 2012 11:41 AM
03-07-2012 10:48 AM
HI
Check
CALL FUNCTION 'SAP_WAPI_WORKITEMS_BY_FREQUENC'
EXPORTING
time = ls_time
selection_status_variant = 0000
text = 'X'
TABLES
workitem_type_filter = lt_type_filter
task_filter = lt_task_filter
worklist = lt_worklist
worklist_compact = lt_worklist_compact.