I want to call a zfunction module in my workflow shoud I raise my exception in the method where I call function module or should I create another task and create another method for xception??
Request clarification before answering.
Hi Rajib Bali,
It would be better if you tell the scenario to guide you in a better way.
In general, It can be done like creating a method and calling that method in an activity step.
Now this activity step is called when exception raised or normally depends on the scenario.
If exception then create an exception block using Block Step and in that block create an activity step which would call that method.
Hope this would help you.
Regards
N.N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajib,
Please find the steps that has to be implemented.
1. Create a method where the function module is called. Export and indicator from that method if it fails.
2. Create an activity step to call that method and buffer that indicator.
3. Create a condition step to check whether indicator is initial or not (not initial raise exception)
4. Create a local exception in Basic data of workflow.
Please refer this WIKI for further process [Handling Exceptions in Workflow |https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/exception%252bhandling%252bin%252bworkflows]
We have to use a [Process Control Step|http://help.sap.com/saphelp_nw70/helpdata/EN/8d/25f0d6454311d189430000e829fbbd/content.htm] to stop execution of Workflow
Hope this would help you, Revert if you have any issues.
Good luck
N.N
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.