sap_wapi_start_workflow
Florin Wach
florin.wach at gmx.net
Thu Sep 13 09:46:52 EDT 2007
Hi Bjorn,
the element's import name is 'PurchaseOrder' and not BUS2012.
* lw_tab-element = 'BUS2012'. "DEL
lw_tab-element = 'PURCHASEORDER'. "INS
Best wishes,
Florin
-------- Original-Nachricht --------
> Datum: Thu, 13 Sep 2007 15:16:14 +0200
> Von: "Bjorn Demol" <Bjorn.Demol at oasisconsultants.com>
> An: sap-wug at mit.edu
> Betreff: sap_wapi_start_workflow
> Hi,
>
> I'm testing the FM sap_wapi_start_workflow, but I'm having some trouble
> filling in the container.
> The object is BUS2012, I created a new object ZBUS2012.
> When I look into the start event, The system transfers the purchaseorder
> (which is the object), releasecode and wf_initiator.
> When I try the FM, the sy-subrc returns 0, but I don't see an item in the
> inbox where I expect the item to appear.
>
> This is my code :
>
>
> REPORT TEST.
>
> data : l_obj type swotobjid.
>
> data : l_tab type table of swr_cont.
>
> data : lw_tab type swr_cont.
>
> l_obj-objkey = '4500003943'.
>
> l_obj-objtype = 'BUS2012'.
>
> l_obj-describe = 'BUS2012'.
>
> lw_tab-element = 'BUS2012'.
>
> lw_tab-value = l_obj.
>
> append lw_tab to l_tab.
>
> lw_tab-element = 'releasecode'.
>
> lw_tab-value = 'E4'.
>
> append lw_tab to l_tab.
>
> CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
>
> EXPORTING
>
> task = 'WS20000075'
>
> LANGUAGE = SY-LANGU
>
> DO_COMMIT = 'X'
>
> USER = SY-UNAME
>
> * START_ASYNCHRONOUS = ' '
>
> * DESIRED_START_DATE =
>
> * DESIRED_START_TIME =
>
> * DESIRED_START_ZONLO = SY-ZONLO
>
> * IFS_XML_CONTAINER =
>
> * IMPORTING
>
> * RETURN_CODE =
>
> * WORKITEM_ID =
>
> * NEW_STATUS =
>
> TABLES
>
> INPUT_CONTAINER = l_tab
>
> * MESSAGE_LINES =
>
> * MESSAGE_STRUCT =
>
> * AGENTS =
>
> .
>
>
>
> Anyone can tell me what I'm doing wrong ?
>
>
>
> thanks !
>
More information about the SAP-WUG
mailing list