Fwd: SAP_WAPI_START_WORKFLOW

Andy Curtis abcurtis at gmail.com
Tue Mar 10 17:06:20 EDT 2009


Rick

Thanks.  Don't suppose anyone has the same but using Class/methods instead
of FM's?  Now that would be cool.

Andy


---------- Forwarded message ----------
From: Rick Bakker <rbakker at gmail.com>
Date: Mar 10, 2009 6:47 PM
Subject: Re: SAP_WAPI_START_WORKFLOW
To: SAP Workflow Users' Group <sap-wug at mit.edu>

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
>
>
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug


-- 
Andy Curtis
(m) 07798 603099
(t) 01737 843948
(e) abcurtis at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20090310/6f53b652/attachment.htm


More information about the SAP-WUG mailing list