![](https://community.sap.com/html/assets/img_tile-default.png)
Many times we get this requirement, where Business want TM docs should get approval while changing of a resource, Charge Amount Changes, Removal of some items from the document.
We ( Varsha, Sanjeev ) from COE India Team have developed a simple Workflow example to cater these use cases for some customers and want to share with you so that you can also do the same.
Our Example is very simple, Freight Order will be on block status on creation and when approved, it will remove the Block from Freight Order.
When Freight order is created, We are setting Freight Order in execution block, It will sends notification to approve to remove Freight execution block.
To achieve this once Freight Order set up is ready create workflow and trigger workflow during FO creation as explained below .
Trigger workflow using CL_SWF_EVT_EVENT=> RAISE based on workflow event class - ZCL_ZTK_WF_TOR_APPR
Step 1 – Decision to Remove Execution block on FO, by passing agents as user who intiates Workflow, here we can add agents role, org unit etc
Considering standard decision Task as requirement is only to approve or reject. if more information like comments to be added then create Custom task and make changes accordingly
Step 2 . Based on Decision to remove FO execution blank , remove Blocking form FO
Create Workflow task by passing Object type and Method which actually removes FO execution block by calling /SCMTMS/TOR Root Level action – OVERRULE_BLOCK
Execution
Do follow @gunther_sanchez for Premium Hub CoE topics on TM and EWM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
18 | |
9 | |
4 | |
4 | |
3 | |
3 | |
2 | |
1 | |
1 | |
1 |