Hi All,
I am trying to implement leave module workflow for one of my requirement.
when i create a leave from PTARQ transaction workflow it is being triggered, but when i tried to do the same from a custom function Module using the same FMs used in PTARQ, workflow initiated but stopped at initial stage( at switch branch )
i went to SWI1 transaction and executed it manually, it end up with error saying ' Error when starting a SWITCH branch'
what should i do to move it forward.
Thanks,
Krish.
Hi Kishore,
For leave workflow, SAP has the separate frame work. They called the FM SAP_WAPI_START_WORKFLOW and pass all necessary data's to Process the leave workflow.
Its not advisable to overwrite the standard behavior. Please check your 'REQ' workflow container in the log. There will be a no data or Some data's might be Missed.
Before Call the FM, make sure that all data's are passed to the Table parameter, SImple_Container.
The reason for the Error in your workflow is, there is no data stored in REQ.STATUS container.
please check the Workflow log.
Thanks.
Add a comment