Application Development 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 workflow error message

Former Member
0 Kudos

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

1 REPLY 1

former_member189779
Active Contributor
0 Kudos

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.