Skip to Content
0
Former Member
Jan 25, 2011 at 03:06 PM

How to get purchase order guid from workflow exit.

57 Views

Dear experts,

I need to save a log when a purchase order is approved or rejected or when an approval workflow is interrupted. I chose to create a class, including interface IF_SWF_IFS_WORKITEM_EXIT to intercept the workflow event "state_chg" and save the log. My question is: how could I get the purchse order guid from workflow container?

I start my method implementation (IF_SWF_IFS_WORKITEM_EXIT~EVENT_RAISED) with:

  DATA: wf_header    TYPE        swr_wihdr,
        wf_container TYPE REF TO if_swf_ifs_parameter_container,
        wi_container TYPE REF TO if_swf_ifs_parameter_container.

  wf_header    = im_workitem_context->get_header( ).
  wf_container = im_workitem_context->get_wf_container( ).
  wi_container = im_workitem_context->get_wi_container( ).

But from wf_container I don't know how to get the guid of purchase order.

Thanks,

Norberto.