cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow issue..

Former Member
0 Kudos

Hi Gurus,

How the system determines, which workflow it has to trigger.

What are the settings needed for that.

What is the function of SWDD/SWDM.

What we exactly do in the event linking and agent assining.

Please give me full details of workflow functionality.

Thanks in adv

IS

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Answered

Former Member
0 Kudos

Hi,

The system determines which workflow to trigger for which document based on the EVENT LINKAGE defined in transaction SWE2.

This is the first step in activating any workflow for a particular document.E.g. For the Business object/doc ,SHOPPING CART,the Business Object BUS2121 will have different events like CREATE,SAVED etc.So for these events,you can have a workflow assigned.i.e. If you define a workflow for the event SAVED,that particular workflow should get triggered when that event happens in the system i.e. When a SC is SAVED.

Now you can have seevral different workflows for a particular doc say SC.So you can define start conditions for starting a particular workflow.e.g when the SC is SAVED,based on the starting conditions defined,i can have any of the workflows A,B or C triggered.

Your starting conditions could be something like :

When total value of SC>100 but <100 -->trigger workflow A

When total value of SC>1000 but <10000 -->trigger workflow B

So basically EVENT linkage is the very first step for activating a workflow for a particular document /object in the system.

In transaction SWDD,you can create your own custom workflows.Also check /activate workflows for any errors.

AGENT assignemnt defines to whom(WHICH user) the work item should go for approval/processing/execution.

You can have agents defined directly based on the user ID.In addition you can also deifne agent assignemnet based on ROLES.E.g. all users having a particular role,will get the work item for execution.

You can look out for the basic terms/concepts of workflow used on the site www.help.sap.com.

Also for all the SRM standard workflows available for the different business objects,refer the link in the previous replies.

HTH.

BR,

Disha.

imthiaz_ahmed
Active Contributor
0 Kudos

To maintain the quality of this forum, we as valuable contributors should avoid answering these kind of questions which shows complete lack of putting some effort on learning some basics. For sure we can help anyone who are struggling after putting some effort.

Regards, IA

Former Member
0 Kudos

SAP has already created some standard workflows which get triggered when some events occured.. events like

APPLICATIONERROR Error in the application

APPROVED Shopping Cart Approved

ASSIGNED WF_COMMIT called

CHANGED Changed

CHANGEDANDACKNOLEDGE Changed with notification of creator

COMUNICATIONERROR Communication error

DELETED Deleted during approval

DELETEPOSITION DeleteItem

FINISHEDAPPROVAL Approval Complete

INSERTAPPROVALSTEP Approval step was inserted

PM_SEND Plant maintenance object saved

REJECTED Shopping cart rejected

RESTARTAPPROVALSTEP Restart Current Approval Step

RESUBMITPOSITION ResubmitItem

SAVED Shopping cart created

For all these standard events there are standard workflows that gets triggered.

If you want to go for custom development then we need to create a workflow in SWDD and also business object for that and we in custom development FM "'SWE_EVENT_CREATE'" needs to be included and you need to pass the task no for this so that ... That particualr Workflow gets triggered

Former Member
0 Kudos

Hi,

If you observe any main workflow, it has some starting event(s).

Based on this starting event(s) the workflow will start.

These starting events are maintained in BOR(eg: BUS1001006, BUS2121 etc).

Workflow sometimes will trigger based on the programs also.

SWDD is used to create the workflow. But for Workflow creation PFTC tcode is suggestable.

Event linkage is to trigger the workflow by giving the starting event for the workflow.

You can activate this event linkage either directly from workflow or by using TCode SWETYPV.

Agent assignment is used to execute the step in the workflow in runtime.

You can assign agents for the particular task.

Go through saptechnical site for examples

Regards,

Chandu

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

You can find workflow basics in help.sap.com.

[http://help.sap.com/saphelp_nw70/helpdata/EN/a1/172437130e0d09e10000009b38f839/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/a1/172437130e0d09e10000009b38f839/frameset.htm]

There is tutorials to learn workflow basics.

[http://help.sap.com/saphelp_nw70/helpdata/EN/fd/517b42303e0e53e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/fd/517b42303e0e53e10000000a155106/frameset.htm]

Regards,

Masa