Hi Deepak
1) Keep the start event of your workflow as CREATED of BO BUS2038 (cross check if this is triggered- switch on the trace SWELS, then create notification from IW21 -> go to SWEL and see which event got created…that should be the triggering event
2) You can also take examples from Standard PM workflows -> WS00200074, WS20000317, WS20000318 and WS20000558 (in PFTC) -> they may not suffice your requirements, but would give you ideas
3) New to workflows – stick to Subtype and delegation for custom methods and attributes
4) SWDD-> Create step in WF -> type activity (Background processing) -> call the BO Custom Method to get the HOD mail
5) Create email step in WF – Send mail
6) Send WI to HOD using Activity, Fore ground processing ->call method to “Call transaction IW22” -> mark the flag “Confirm End of Processing” in the task definition (in PFTC)
7) Approved? Send mail to _Wf_Initiator
8) Remember to activate the event linkage in SWE2
Well, that is really a high level idea….
Go through the following links to know more on how to do the above
Building a Workflow From Scratch
http://scn.sap.com/docs/DOC-3224
A Beginner's Guide to Workflow and WebFlow
http://scn.sap.com/docs/DOC-3024
A little help for SAP Workflow 'freshers' (part 1)
Workflow Recipe for Passionate Starters - Part I (Spice up!!)
Workflow Recipe for Passionate Starters - Part II (Spice up!!)
The Best Workflow Book Ever:
SAP Business Workflow on SAP Help
http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm
Workflow transcations:
http://help.sap.com/erp2005_ehp_02/helpdata/en/9b/572614f6ca11d1952e0000e82dec10/frameset.htm
Using ABAP OO in Workflows:
Regards,
Modak