Tuesday, May 25, 2010

How To Create a Simple Workflow Using Object Definition and Implementation

Summary This article explains how to create a simple workflow ...Summary This article explains how to create a simple workflow using Object Definition and Implementation, Standard Tasks (Pftc), Event Definition And Implementation, Rule Definition and Implementation, Triggering an Event Explicitly by programming, process a work item in exceptional cases and starting a workflow via the work item manager API . By: John Varughese Company and Title: Applexus Technologies, SAP HR Manager Date: 15 Mar 2005 Object Definition and Implementation When implementing a workflow you will often notice that the object types supplied by SAP do not meet your requirements fully. In these cases, you must extend an existing object type by creating a customer specific subtype for it. In Transaction SWO1 , create a subtype „ZMARAJESUB‟ for object type BUS1001. Create a subtype „ZMARAJES‟of your material object type by entering your parent object „ZMARAJESUB‟. Extend your new object type so that it meets additional requirements. For the workflow development ,

you require events as triggering or terminating events of your tasks. Create two new events BasicMaterialChanged and OldMaterialChanged for your object type. Implement the two events using event creation from change documents.The Change document required is MATERIAL. Restrict the triggering of the event for BasicMaterialChanged to the mara-wrkst field and for OldMaterialChanged to mara-bismt. For the Old MaterialChanged, add a field restriction so that the event is only triggered when mara-bismt changes from anything to NEW. Type transaction SWEC for the change document event creation. Define another DeadlineTest event for you object type with a LatestEndDate parameter Referring to the syst-datum field. This parameter will be used to transfer an end deadline for a step within a workflow. Create a new ChangedBy attribute based on the mara-aenam field. This attribute specifies the user who last changed the underlying material. You will use this attribute later to filter out your material. Create a new Change method on the basis of transaction MM02. This transaction writes your changes to the database using an update task. deselect the synchronous flag in General tab. Now select the method and then choose the program icon to generate the code. BEGIN_METHOD CHANGE CHANGING CONTAINER. DATA: MATERIALVIEW...

Website: sapdocs.info | Filesize: 1543kb
No of Page(s): 74
Download How To Create a Simple Workflow Using Object Definition and Implementation.pdf

No comments:

Post a Comment