HI,
I have one problem,In workflow If i give the Material Master Number as input then it has to take the Material Description From the Makt table then
It's need to trigger one email to the Workflow Intiator. Please have a look on below attached image.
For completing this I used Step type Activity, Under the task using bo method i pick the material Description.
Everything is fine.
Same thing i would like to trigger using function module
SAP_WAPI_START_WORKFLOW
I had used the above function module In se38,If i run the program,After execute the function module .
Return code is 0 and sy-subrc eq 0.
Workflow is triggering but From bo is not triggering, I hope.
In bo method ->program , I put break-point.
When ever i execute the workflow from front end Not se38 ,while communicate with bo->method It is stopping at break point.
But from the function module it's not triggering.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = 'WS95100011'
* 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 = return_code
workitem_id = workitem_id
new_status = new_status
TABLES
input_container = it_swr_cont[]
message_lines = it_swr_messag
* MESSAGE_STRUCT =
* AGENTS =
.
if sy-subrc eq 0.
endif.
I was checked swi1, workflow is triggering.Why it is not triggering, I remove the break point too. then i execute the se38 Same problem.
Front end working correctly, i mean if i execute the workflow At SWDD. Any information please update me.