SAP_WAPI_START_WORKFLOW

Rick Bakker rbakker at gmail.com
Tue Mar 10 14:47:04 EDT 2009


Yes.

INCLUDE <CNTN01>.

data: lv_rc like sy-subrc.
data: lt_messages type standard table of SWR_MESSAG.

data:
 begin of lv_object_instance,
   objtype type swo_objtyp,
   objkey  type swo_typeid,
 end of lv_object_instance.

* Define the container
swc_container lt_wf_cont.

* Create the container
swc_create_container lt_wf_cont.
* Clear the container (not necessary here)
swc_clear_container lt_wf_cont.

lv_object_instance-objtype = 'FORMABSENC'.
lv_object_instance-objkey = '0000000088'.

lt_wf_cont-element = 'ABSENCEFORM'.
lt_wf_cont-value = lv_object_instance.
append lt_wf_cont.

CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
  EXPORTING
    TASK                     = 'WS30000015'
*   LANGUAGE                 = SY-LANGU
    DO_COMMIT                = 'X'
*   USER                     = SY-UNAME
*   START_ASYNCHRONOUS       = ' '
*   DESIRED_START_DATE       =
*   DESIRED_START_TIME       =
*  IMPORTING
    RETURN_CODE              = lv_rc
*    WORKITEM_ID              = lv_wfid
*    NEW_STATUS               = lv_wistat
  TABLES
    INPUT_CONTAINER          = lt_wf_cont
    MESSAGE_LINES            = lt_messages
*   MESSAGE_STRUCT           =
*   AGENTS                   =
          .


On 3/10/09, Andy Curtis <abcurtis at gmail.com> wrote:
> has anyone successfully used SAP_WAPI_START_WORKFLOW with a Container
> Element that is a Business Object and not a simple variable?
>
> --
> Andy Curtis
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>



More information about the SAP-WUG mailing list