Using Decision Step in Process Chain
Using Decision Step in Process Chain
Chain
Applies to:
SAP BI 7.0 and above. For more information, visit the Business Intelligence homepage.
Summary
The current business scenarios are so complex that we require executing specific set of jobs in BW system
based on different conditions (e.g. Date, day etc) to meet the business reporting requirement. The decision
process type can be used to achieve such requirement in the process chain. The document provides an
overview of the decision process type in design of process chain.
Author Bio
Shakir Kapdi has more than 3 years of experince in SAP. He has worked on various project
like implementation, Upgarde, Application support and Enhancment. He has experince in
SAP BI 3.X and 7.0. He is currently working in Infosys Technologies LTD.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 1
Using Decision Step in Process Chain
Table of Contents
Overview of Decision process type .................................................................................................................... 3
Formula Builder ............................................................................................................................................... 5
Example of decision process type ................................................................................................................................ 7
Related Content ................................................................................................................................................ 10
Disclaimer and Liability Notice .......................................................................................................................... 11
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 2
Using Decision Step in Process Chain
As the name suggest the decision process type execute a specific predecessor process from multiple
alternative based on fulfillment of the specific condition.
This logic for the condition is provided through the formula that is checked at the runtime.
The formulas are assigned to a specific command. These commands are nothing but an “If – Else”
statement. Based upon fulfillment of the particular condition the command is executed thus triggering the
event assigned to it.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 3
Using Decision Step in Process Chain
The initial decision process type has a single “If –Else statement” as shown below.
By default, “If” condition is associated with event “1” (Option 01) while the “Else” statement is associated with
error event as shown above.
This association of the “Else” command can be changed if we want the else statement to trigger event “2”
(option 2) rather than giving error.
This can be done by clicking on the event tab and selecting the option as shown below.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 4
Using Decision Step in Process Chain
Note: As we can see in above cases the “Else” statement is not linked with any formula. If the conditions provided in the
“If” statements are not fulfilled the “Else” step is executed. Either we can associate it with error event or we can
trigger other process by associating it to “option 2” event.
We can add multiple “Else If” statement if required in the variant as shown below.
Formula Builder
The main element of the decision step is the formula builder where the conditions are formulated with the
logical expression.
To create a new formula click on the create formula button as shown below.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 5
Using Decision Step in Process Chain
Once the description is provided, the formula editor is opened. The initial screen of the formula builder is as
shown below.
4
2 3
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 6
Using Decision Step in Process Chain
Using the above feature the formula can be created pertain the logic for the decision condition.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 7
Using Decision Step in Process Chain
The “If” step will check if the current day is weekend (Sunday) otherwise else step is carried
out.
The formula used to check the weekend (Sunday) is as follows
Here the filed SYST_DATUM “Current date” is used which returns the current date on the
application server.
The function DATE_WEEKDAY1 returns the weekday number from date.
If the function returns the value 7 that means the current day is weekend (Sunday) the “If”
condition is fulfilled and is executed.
The layout of the process chain will be as follows
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 8
Using Decision Step in Process Chain
The same logic can be used to trigger any load or trigger a broadcast on the weekend.
Thus we can see how decision process type can help us trigger various job based on different
condition to meet the business requirement.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 9
Using Decision Step in Process Chain
Related Content
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/06/efd63b54e56276e10000000a11402f/frameset.htm
For more information, visit the Business Intelligence homepage.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 10
Using Decision Step in Process Chain
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 11