cancel
Showing results for 
Search instead for 
Did you mean: 

BPM

Former Member
0 Kudos

Hi

What is the use of 'Switch' in integration process. For what scenarios we need to use 'Switch' in designing BPM?

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Shruthi,

SWITCH is like any Switch- Case in a programming language. It allows you to define multiple conditions.

http://help.sap.com/saphelp_nw04/helpdata/en/6a/db283fd0ca8443e10000000a114084/content.htm

Regards,

Bhavesh

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks for your replies and i was successful in using it also. But here i have another query.

My BPM has data in message type which is unbounded (can i say something like internal table).....the total row in the message type is 5 and if i use switch with just one condition it checks the last record in the message type and if the condition is satisfied it executes the step. i want to check the condition for each and every record in the message type. is it possible to do within the bpm using loop or other properties. kindly adivse.

Thkx

Former Member
0 Kudos

shruti,

use the concept of corelation.....

search in help.sap for corelatio, ull ge tto knw abt it else u can see the scenarios created in SAP Basis Component for examples...

just for ur help:

http://help.sap.com/saphelp_nw2004s/helpdata/en/ca/7c5c41fe06cf1ee10000000a155106/frameset.htm

regards,

Vishal

Former Member
0 Kudos

Hi ,

In switch step you can check any type of condition for any number of records with the help of condition editor.

Sekhar

agasthuri_doss
Active Contributor
0 Kudos

Hi Shruthi,

It is like IF/ELSE. you can configure the required steps in Branch,Based on the condition (YES or NO) the steps of 1 or Otherwise will excute.

This will help you

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c071d7bb-0601-0010-d6b8-f4e...

Switch:

http://help.sap.com/saphelp_nw04/helpdata/en/6a/db283fd0ca8443e10000000a114084/content.htm

Fork:

http://help.sap.com/saphelp_nw04/helpdata/en/24/e2283f2bbad036e10000000a114084/content.htm

Also check this weblog which uses a fork step.

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm

Thanks & Regards

Agasthuri Doss

Message was edited by: Agasthuri Doss Baladandapani

former_member206604
Active Contributor
0 Kudos

Hi,

You use a switch step to define different processing branches. You need to define a condition for each branch and the condition is checked at runtime and the process is continued for which the condition is true. Its some thing like SWITCH CASE is any programming language.

For example some data is coming in... say if the Flag is X you need to do some mapping and send it to a different reciever and if the flag is Y you need to send to different system.

Thanks,

Prakash

Former Member
0 Kudos

Hi Shruthi,

in integration repository goto software component SAP BASIS: There are samples explained.

Regards Mario