Supply Chain Management Blogs by SAP
Expand your SAP SCM knowledge and stay informed about supply chain management technology and solutions with blog posts by SAP. Follow and stay connected.
cancel
Showing results for 
Search instead for 
Did you mean: 
Rohit_Mahajan
Product and Topic Expert
Product and Topic Expert

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 .

  1. Set FO Block on FO creation

Rohit361_0-1717658699691.png

 

 

Rohit361_1-1717658699693.png

 

 

Rohit361_2-1717658699695.png

 

  1. To set FO execution block -> By creating instance of /SCMTMS/CL_BLOCK_MANAGER_TOR and adding entry for execution block with block category – Manual block during FO creation
  2. Trigger Workflow -> Trigger workflow during FO creation after setting FO block.

Trigger workflow using CL_SWF_EVT_EVENT=> RAISE based on workflow event class - ZCL_ZTK_WF_TOR_APPR

 

Rohit361_3-1717658699698.png

 

 

  1. Workflow set up for approval and remove FO block

Rohit361_4-1717658699701.png

 

 

Rohit361_5-1717658699703.png

 

 

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

Rohit361_6-1717658699706.png

 

 

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

 

 

Rohit361_7-1717658699709.png

 

 

Step 2 . Based on Decision to remove FO execution blank , remove Blocking form FO

Rohit361_8-1717658699712.png

 

Create Workflow task by passing Object type and Method which actually removes FO execution block by calling /SCMTMS/TOR Root Level action – OVERRULE_BLOCK

 

Rohit361_9-1717658699714.png

 

 

Execution

  1. Once FO is created and Saved, Execution Block is set with Block category – Manual block

 

Rohit361_10-1717658699717.png

 

 

  1. Workflow is trigger for FO which is created - 6100000750

Rohit361_11-1717658699720.png

 

 

  1. Accept the Workflow notification for FO created

Rohit361_12-1717658699725.png

 

 

  1. Freight Order Execution Block is overruled and , Execution is not blocked anymore

Rohit361_13-1717658699728.png

https://community.sap.com/t5/supply-chain-management-blogs-by-sap/premium-hub-coe-dsc-sap-tm-code-fo...

 

Do follow @gunther_sanchez for Premium Hub CoE topics on TM and EWM. 

https://community.sap.com/t5/supply-chain-management-blogs-by-sap/premium-hub-coe-dsc-knowledge-bits...

 

2 Comments