Insert a condition step in a workflow
Dear Expert,
I have a general question about the workflow. I have created a workflow template and currently it is being used. This workflow consist about 35 steps in it. Currently i have a requirement which is to insert a condition check in step 6. If satisfied the condition the it will continue in step 7 and so on, if it does not then will continue in step 20.
Is this possible to be done? How can i achieve this.
Thanks,
Regards,
Bryan
Hi,
1. First create a new version for the workflow in SWDD
SWDD ->workflow -> generate version
It will create new version because some times you may loss all steps while cut and paste
2. Define condition in step 6 , then it will opens two branches
a> true
b> false
3. In true branch will have all the steps from 7 to 35 , then u cut the steps from 20 to 35 and paste it in False side.
Better you create one more workflow that includes all the steps from 20 to 35 and call that sub workflow in False side.
If you made some mistake while cut and paste you just activate the old version and make use of it.
Similar Messages
-
Condition in condition step type always fails
Hello all !
I've a condition step type in workflow.
The condition is as follows :
&ZBUS2011.REQ_TYPE& = 0001 AND &PLANT& = X
The containers in workflow log is populated with required values. However, the above condition fails for no reason.
More over, on clicking "Evaluation condition with test data" button in condition display window, a pop-up message " The evaluation of the condition gives the result 'False' "appears.
Whether this could be the cause ? How to make the result 'True' ?
Any suggestion most welcome.
Regards,
S.Suresh.Hi Suresh,
Is your attribute ZBUS2011.REQ_TYPE a vitrual attribute ? If so please check if the attribute is getting re-calculated during runtime. You can check this by instantiating the BOR and check initial value and then click on refresh button and see if the value has changed.
Thanks,
Ajay Bose -
About case and switch in multiple condition step in workflow.
i ve some information about case and switch in multiple condition in workflow.
case - static determination
switch - runtime determination.
but i want brief explanation about case and switch and difference please help me.....hi velmurugan............
in case,
we can have only one value for comparison and can have any number of branches for it.
in switch,
we can compare any number of values and have any number of branches.
eg:
consider i am triggering a workflow for purchase order change and i am having a multiple condition step.
if i am going for a case:
i can have only on value (ie po number/vendor number.....) as a parameter and can check different values with it. ( eg vendor number < 1000
vendor number > 1000.... so on)
a branch will be created for each condition.
if i am going for a switch:
i can take any parameter needed. (eg: vendor number > 1000
order type = 'NB' .... so on)
so a single branch can have any number of comparisons with the help of 'and' and 'or' operators and i can have any parameter for my condition.
---regards,
alex b justin -
Workflow Condition Step Failing
Hi All,
I am facing a very peculiar error.
I have two outcomes modelled depending on a varible (Material Type) in the worklfow.
My workflow gets triggered when I push SUBMIT button on my ADOBE interactive form on ABAP Web Dynpro launcehd
from UWL. Now if i check the workflow container, the variable is set properly. But still the condition fails. A backgorund task
having import parameters as Owrkflow container elements fails with an exception even though the import parameters are set.
But yes, again the workflow container same elements can be displayed on any form in further steps by reading the container
from ABAP webDynpro launched from UWL. Peculiar !!!
The same workflow works fine if I directly set the variables and test the workflow.
Why this ?..... Any Idea.... ? If something is written on to the workflow container can the workflow work on those variables ?
Please suggest.
Thanks & Regards,
DebHi Rick,
Thanks for your suggestions. Actually we could solve it ina different way. It was a nice but tricky error in muy coding.
Here is what I was doing:
1) I tirgger my workflow on click of 'SUBMIT' button on my ADOBE interactive in AWD
2) Then I get the instance of the workflow to get the Workflow Work Item ID
3) Now I write the form data to the workflow container.
Note: By the time I write to my container, my workflow had been already triggered, with the condition step at the 1st.
And the container is not yet written, hence the condition fails.
Solution: I used a wait step. And Read the workflow container in loop untill the container elements are populated.
Once out of this loop, I now tirgger the write to the container and raise the wait event.
Cheers !!
Deb -
Regarding failuare of conditions step in Workflow.
Hi,
My workflow activity step calls webdynprofunction module.After screen is approved control goes back to workflow and condition statement immediatly below activity step get executed.However this condition always fails ie even after approving and getting approve value in container, reject branch of condition gets always executed. can anybody provide me solution?
Thanks & Regards.Hi Sanjay,
Many have come across this situation earlier and couldn't really find out why this happens.
I would suggest that you delete the condition step and recreate it. Also clear the buffer using SWU_OBUF and see if it helps.
This is what i did when i faced this issue and helped.
All the best.
Regards,
Raj -
Issue with Condition step in workflow
Hi Guys,
I am using a condition step to check the value of a variable A. If the value of A is 7 , then the wf will follow the true branch. If not it will go down the false branch. This is as simple as that. But the wf was going down the wrong path when i tried to test it. Meaning even if the value of A is 7, it was going down the false branch.
So i simulated that condition in the editor and manually entered a value of 7 for A and still it is going down the false branch.
I havent seen this issue before. Have any of you? I ahve tried clearing buffer, creating new version of the wf. But nothing has worked. I even tried to reverse the condition check. Like i tried to give IF A not equal to 7. Still its going down the worng branch.
Any ideas? The variable if declared of the type SYST-PEXPI. And the funny part is this wf is working fine in production.
HarishHi Harish,
Sometimes it happens that the value of the variable is not yet populated when the workflow is at the COndition step. Hence it always follow the same path irrespective of the actual value that needs to come.
Please check if the container element you are checking is having the correct value when at the COndition step. Else you can try adding a wait for few seconds step before the condition step and then test.
I guess the performance of the Production system is better than the dev or quality system so you are not facing the issue there.
Regards,
Saumya -
How to use LOOP(Until) step in a Workflow
Hi,
How to use LOOP(Until) step in a Workflow?
What are the steps involved in using the step LOOP(Until).Hmmm... using it is just like using a LOOP UNTIL statement in any programming language. You get at least one loop iteration, as opposed to a WHILE loop which may give you zero iterations.
You simply insert a node of this type in the workflow, and magically there will be a loop inside which you can insert the steps you want to execute in the loop, and by double-clicking at the end node of the loop you can enter the condition for exiting.
What exactly is it you are having trouble understanding about the use of it? -
Workflow Questions - How to execute the steps in a workflow automatically?
I am using MDM 5.5 SP6.
My Question is how to execute the steps in the workflow automatically. That means NO user interaction.
I have a simple workflow, Start- Process -- Syndicate - Stop.
When a new record added /updated/inserted this workflow will start automatically. The workflow inbox, the workflow status is u2018Receivedu2019 Step is u2018Processu2019. Now I have to right click on the record then u2018Next Stepu2019 then click on u2018Syndicateu2019 then workflow completes automatically.
How to execute the Syndication step automatically?. I donu2019t want to have any user interaction to syndicate these records.
Is this possible?
The reason for this is I want to do some field validation and based on the field validation some assignments then then I want to syndicate these records without user interaction..Hi,
If you want to do some validations and then based on result assignments on some of the fields before syndicating, then you have to use workflow. Only syndication server will not fulfill this requirement.
you may try by making validation's automatic property as "Error". This way it will not allow to add any record not fulfilling validation. You can also try using calculated fields instead of assignment.
I am not sure if you can make your workflow fully automatic, because atleast one process step is must for any workflow, and process step means user action.
Regards,
Shiv -
Assign values in condition step
Hi Friends..
iam creating container attribute refering standard structures..
and use that attributes in conditional step...
whenever iam executing the workflow it shows an warning message like this.
"container element is read purpose only.no values are assigned to it"
at the execution time this step was not working.. so what is the actual problem.. how can ihandle this
Thanks
GowrishankarI think You are creating attribute in Business Object. If you are doing so then create another container element in the Wflow and do a container operation of assigning the Attribute to this elelement. Please note that the Element type should match. I hope it is not a Multiliner. Use the container element which has been assigned the Attribute value in the Condition Step.
<b>Reward points if useful</b> -
Hi,
I am changing the approval custom worflow.
In my workflw intial two step are MULTI CONDITION for plant and condition types.
previously we have used different approval procedure for different plant.
now all plants are having the same procediure.
so i am planning to remove the first MULTI CONDITION step.
when I removed that step workitem is not creating and workflow error.
binding problem error showing in one of the step in container.
pl help.
other wise it it possible to use the same procedure fordifferent plant with out creating new steps.
Thans in advance
sharma
Edited by: sharma on Sep 10, 2009 5:43 AMHi Sharma,
I have noticed with my workflows that often when you add or delete a task in a workflow, the bindings of other steps are also affected.
In your case, the binding of some other step could have got disturbed because of deletion of the multi condition step.
I would suggest you to create a new version of the workflow and compare your workflow after deletion of the step with the previous version. Check the bindings at each step.
Hope this helps!
Regards,
Saumya -
N step SC Approval Workflow - PCW
Hi Experts,
I'm new to SRM.
We have requirment for N-Level Approvals Sequentially at item based for the SC .
The Approval Level needs to be determined dynamically , by comparing the Total value of the SC with the Approval limit maintined in the Custom Table.The maximum Level of approval is 3.
Example:
Workitem Should be triggered Sequentially.
If the SC has 2 line items .
First Line item
When the Ship-to address is maintained,the Total values of SC - 3000£ and the Line item Value is above threshold value.
Workitem reaches Approver1 - Approved then
Workitem reaches Approver2- Approved then
Workitem reaches Approver3
Second Line item
When the Ship-to address is maintained,the Total values of SC - 3000£ and the Line item Value is below threshold value.
Workitem Shouldnot Trigger.
Questions:
Do i need to maintain 1 or 3 process level at Config?
is it possible to check the Line item value at the Evaluation ID itself by copying the FM /SAPSRM/WF_BRF_0EXP000
, if so how to to know the for which line item(item guid) the Process level is been called?
There are three conditins to be checked for triggering the workitem
1.Ship to party check
2.Total value Sc check
3 Line item value check
Which conditions can be maintinaed in the Evaluation Id?
Which conditions can be maintinaed in the BAdi?
How to Achive the requirmeent.
Please Let me know how to proceed.
Thanks in Advance.
Edited by: srmtech on Dec 19, 2011 11:31 AMHi,
I got your email..Please refer the below link and close this thread..
N- step SC Approval Workflow
Saravanan -
Condition satisfied but still workflow determined it as false
in mss workflow one condition is satisfied but still it has taken it as false in that condition step
what can be the reason for thisMost probably the value was not set when the condition was checked. I would suggest to use container element binded to attributes of Business Object before using the condition step.
This will give visibility what was the value before the condition step was executed as the attribute value may get updated after condition step.
Thanks
Arghadip -
Condition step expression comparison
Hi all,
I want use a condition step to check acondition like lv_expression1 = lv_expression2.
but i am not able to use variable in expression2, it's accepting as constants.
How to compare two variables in workflow?
Thanks.It should be possible in the condition editor. First double click the first container element. Then set for example '='. Now double click another container element (don't put anything into the constant field). => You have comparison between two container elements.
Regards,
Karri
Edited by: Karri Kemppi on Dec 13, 2011 5:07 AM -
Dear Friend,
How to check whether a variable is initial or not in condition step type.
Thanks & Regards,
ArtiUsually the Not exist option also works. But why didn't you just try some things? It is not that hard to make a simple workflow with a condition and try out some option in the condition. I even think you would have had your answer sooner and also it would teach you something about the options you have in the condition.
Regards,
Martin -
Help required understanding steps of Transfer Workflow:WS01000014
Hi All,
Please help me understand the steps of this workflow..i have already gone thru some explaination about this workflow from this [link|http://www.sapfans.com/forums/viewtopic.php?f=11&t=292192&start=0&st=0&sk=t&sd=a] but getting confused with few steps.
Correct me if i am wrong ..the workflow is triggered when a new position is created?(to which employee is going to be transffered?)
In step1:check target postion..of who? and then what happens?
step on user and role is confusing too
there are two specify postion in two departments..what are the two postions for ? 1 fro employee and one for his new manager/hr admin?
pls advice
thanks in advanceHello,
The workflow is triggered when an instance of object ORGCHEARM
issues the event CREATED - ie there has been an organizational change.
Step 1 is condition "Check Target Position" :
( Designation.Root <> 'P' and
Designation.Object Type <> '' and
Designation.Object ID <> 00000000
) or
( Designation.Root = 'P' and
Designation.Object Type = 'S' and
Designation.Object ID <> 00000000
If true then continue, if false: Specify Agent.
Specify Agent branches according to type of
Agent Specification. The condition is:
Designation.User Name <> ''
In both cases task TS01000118 (Specify Position in New Department)
is called. If the condition was true then it's called with as agent
the contents of ORGCHEARM.ACROSSBORDERUSER; if not true then
the role AC0000168 is used to determine the superior(s) of the
"object type affected" and they are used as the agents (ie they receive the workitem).
Hope this helps.
regards,
Rick Bakker
Hanabi Technology
Maybe you are looking for
-
hey guyz iam new to java technology please tell me whether i ca send a EXCEL file(.xls) extention as a parameter to a method (later i have to create a backup file for that excel sheet) if any one know this method please give me suggestions !!! postin
-
Not able to install latest Konica drivers on MAC OS 10.8.x
I am trying to install drivers for a networked Konica Minolta Bizhub C360 printer on Mac OS 10.8.x. Using latest driver from Konica for 10.8.x. The Mac cannot find the printer on the network! Worked on earlier version of OS. Looking for solution.
-
How can I fix last updates error that won´t let me open itunes?
c++ error
-
Final Cut Pro, doesn't launch after updating to 5.1.4.
Hello there, I tried opening an older project with the version 5.1. but it only gave me an GENERAL ERROR 41. Then I downloaded the update to 5.1.4. and the application doesn't event want to launch anymore!! What can I do, what else could've gone wron
-
My iPhone is stuck on recovery mode while updating to iOS 8
my screen only shows an iTunes icon. What do i do without restoring my phone. I don't want to lose my stuff on my phone. -om