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