Hello All,
I am calling a workflow using FM 'SAP_WAPI_START_WORKFLOW' from se38 abap program.
My workflow consists of simple user decision to approve and reject.
From my t.code SWDD if I execute the workflow, it will take me to test workflow screen and there again I have to execute once more to see the mail with approve and reject button in my inbox of bussiness workplace.
But when I call the worflow using the above FM it does not work.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = 'WS99000093'
language = sy-langu
IMPORTING
return_code = p_subrc
workitem_id = p_workitem.
It doesn't get triggerred I guess. Is there something to do with the double execution as above which takes place when we do it manually ( one normal execution of workflow and another test workflow).
Help Appreciated.
Regards,
Mac