sap_wapi_start_workflow

Sunni sunni sunnilondon at hotmail.com
Mon Feb 10 11:49:21 EST 2003


Hi Workflow experts,
 
I'm trying to start a workflow explicitly using the WAPI
SAP_WAPI_START_WORKFLOW.  I was able to start it with an event
swe_event_create easily enough, but this did not support synchronous dialog
chain (advance with dialogue), hence I'm trying out the WAPI.
I'm confused with what parameters to send it in my program.
 
'Task' is ok, I pass it the Workflow template number. I don't know how to
get it to pick up the object type (BUS2080) and object key (from object
instance).  I think I'm suppose to use the input container, but all this
contains is two string variables, element and value??? I don't know how
these value pairs work.  I've done the courses and read the book, no details
to be found on how to make this work.
 
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
         EXPORTING
              TASK            = TASK
*            LANGUAGE        = SY-LANGU
         IMPORTING
              RETURN_CODE     = RETURN_CODE
              WORKITEM_ID     = WORKITEM_ID
         TABLES
              INPUT_CONTAINER = INPUT_CONTAINER
              MESSAGE_LINES   = MESSAGE_LINES
         EXCEPTIONS
              OTHERS          = 0.
 
I would appreciate if anyone has used this before and can give me a little
guidance.  I'm starting a workflow from a bespoke button on a screen, and I
need the first step to show up immediately.
 
Any ideas?
 
Kind regards
Sunni Marcus
 
 
 
 
 
_________________________________________________________________
Surf together with new Shared Browsing
http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059
 


More information about the SAP-WUG mailing list