Wednesday, July 15, 2015

#SAP #workflow Two ways for personalize agent assignment in a SAP Workflow Purchase Order

Two ways for personalize agent assignment in a SAP Workflow Purchase Order

In certain SAP implementations, we face the fact that the regular release strategy of purchase orders is not enough for an agent determination or creating custom workflows to perform certain tasks.  In these cases we need to take over the assignment and look into any exit o "Z" development.
Here two different ways to accomplish this goal:
- USER Exit M06E0005:  Using the tradition way, TCODE CMOD, create your project and activating the enhancement.





- Changing the "Agents" property to "AC Rule" and then update the function module into the "Rule Definition" tab.

Rule definition:

  
 In any case we should fill the internal table ACTOR_TAB (STRUCTURE: SWHACTOR) with the desired values for the new agent assignment.

Here a very simple code for agent assignment:

  clear actor_tab-objid.
  actor_tab-otype = 'US'.
  actor_tab-objid = sy-uname.

  APPEND actor_tab.

By Jose Antonio Lagonell

No comments:

Post a Comment

Python - borrar lineas extra de archivos .txt en un directorio

 Aqui el codigo Python para borrar lineas extra en un archivo plano: import os path = "c:\\temp" path_new='c:\\temp\\CleanFile...