Home > SAP Tips > SAP best practices > Advanced Workflow features -- SWITCH
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SAP BEST PRACTICES

Advanced Workflow features -- SWITCH


Suresh Kumar Parvathaneni
12.08.2006
Rating: -4.70- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


SAP has introduced new features in Business Workflow with releases 6.20, NW04 and NW04s.

This article will provide an introduction to a new feature called SWITCH, which is provided in the "Multiple Condition" step of SAP Workflow. It is assumed that the reader of this article has some knowledge of Business Workflow and has worked with the "Multiple Condition" step.

The SWITCH feature in the step "Multiple Condition" is available as of the release NW04. Before NW04, the only feature available with this step was "CASE". In the situation of "CASE", the Workflow system checks the value of the basis of comparison against the defined comparison values (as shown below).

In SWITCH, each branch carries a condition definition. We can visualize "Multiple Condition" with SWITCH as a group of "Condition" steps.

A small scenario using "Multiple Condition" with SWITCH is shown below:

1. Create a new workflow definition with a container element "CARRID".
(A well known example for training purposes)

Set the "Properties" as import.

2. Double-click on the undefined step to create a step "Multiple Condition". The following screen appears:

3. Select the "Switch" option in the Type field.

4. Different types of conditions can be defined for each "Outcome". Please note that:

  • The conditions are defined in the given order
  • The first branch whose condition is evaluated TRUE is considered
  • If none of the conditions is TRUE, a default branch is taken ("Other values" in the definition)

Following are the conditions used in our example:

5. The workflow definition would appear as follows:

6. Insert an email step for each branch and check the output for various "Carrid" values.

Rate this Tip
To rate tips, you must be a member of SearchSAP.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
SAP best practices
Increase column width in a transaction screen
Select Text fields: Case-insensitive
Finding BADIs you can use
Updating an RT table entry in SAP HR Payroll -- without the ADDWTE option
Is this the quickest way to find a BADI?
Adding custom fields for retail product comparisons in SAP BW
ABAP Objects in SAP Workflow to provide improved performance
Top 10 SAP tips of 2007
Retrieve BI data with Web Services
Eliminate database read/write times with ABAP shared memory

SAP Workflow
Is C, C++ and Java knowledge required when learning SAP?
Select Text fields: Case-insensitive
Finding BADIs you can use
Quiz: SAP ABAP development
Using change documents to update a Z table
Approving workflows from Outlook
Tools for enabling SAP screens on a BlackBerry
Calling a custom workflow
Is there a 'load of program' option in report generation?
Deleting entries from a dynamic table

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsBlogsTipsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts