Condition step issue in a workflow
Hi Gurus,
I have a condition in my workflow which checks for an attribute value of he business object if its equal to 'X' based on which it takes two different paths for 'yes' or 'no'. I find it always takes the 'no' path irrespective of what is the value of the attribute whether 'X' or space. I have done this kind of steps many times in the past and never had an issue like this.
I check the attribute value gets populated well in the container.
Has anybody faced this ind of issue, great if some body can tell if I am missing on any thing. I am on ECC6.0
Any help will be highly appreciated.
Thanks
Sasi
Hi,
say your attribute as 'flag'
and you are trying to check flag = X yes then do something,
for No do something else
check whether flag is populated correct and bindings are done correctly.
Kind Regards
Hari Sankar M
Similar Messages
-
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 -
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 -
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 -
Urgent: Issue in Automatic workflow Customizing.
hi,
Can someone please help me with this issue in Automatic workflow customizing ( SWU3)
When I try to execute the step
Maintain Runtime Environment > Schedule Background Jobs with missed deadlines
I get the error message saying
"Output Device "" not known"
Can someone help me how to resolve this? This is very urgent for me.
Regards,
Sam KThe guidelines tell you not use the word urgent in your message title, so please don't. Personally I try to not answer such questions until at least one day has passed, giving you some time to cool off and perhaps solve the problem on your own.
I can't recall seing this message myself, but my guess is that either your user or the user WF-BATCH (if the job is being scheduled with that user) has a default printer (output device) that is not defined in the system. -
Hi all,
I am using demantra 7.3.1 version,In that how exactly the * conditional step * works real time
for ex:if I query in sql space as select 1 from table where approve=0 here my logic is that table should not contain any record as 0 if it is found it should execute false else true( so my question is that above query is more than enough for this conditional step to work or is that we need to pass any parameters???Hi,
unless there's a new release strategy found and unless a release code is set, which is a prerequesite to another release code, there will be no further events for BUS2012.ReleaseStepCreated.
From another point of view:
For each release code that is open, there is exactly once an event .ReleaseStepCreated.
Depending on the customizing, changes to the object may reset all given release codes. The common understanding is a "within 2% value change" doesn't reset the release.
If you need to have your workflow triggered on changes, as well, you'd be off with linking it to the .Changed event. To keep compatibility with the standard's event, I won't recommend to create a .ReleaseStepCreated by another linkage (such as the .Changed-event).
Best wishes,
Florin -
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 -
Conditional step in interface determination
Hi All,
The Scenario is a proxy to file server..
we are sending datas to different service based on File Content Conversion..
Depending on the data on a certain field the records are delivered to different location.adapter we use is a file adapter.
For this we need to give the conditional step in interface determination..
the sender is a message system and the receiver is a business service.
The issue here is when i try to give the condition in interface determination the error below appears.
"<b>Message interface does not exist in any software components installed on this business system</b>"
due to this we are not able to get the structure of the specified message type in the condition editor...
What can be done here to give the conditions in the condition step?Hey
The error occurs if the GUID of the software component at the SLD is different to the one at the repository. Please compare the GUID at the SLD -> Administration -> Content Maintenance -> Dropdown "Component Version" -> Dropdown "Software Component Version". At the Integration Repository you select the Software Component Version at at the tab "Keys" you find the related GUID.
The error occured because the Software component has been created manually at the system. The repository content came from another system via import with own SLD (and because of that with another GUID for the software component).
source:https://forums.sdn.sap.com/click.jspa?searchID=3574640&messageID=945384
Thanx
Ahmad -
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 -
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 -
Issue Transporting Business workflow from one System to Another
Hi All,
As there are many limitations in Import/Export of Workflow I'm going for a Transport of Workflow from one sytem to another.
There are some query's reagrding transporting of the Business Workflow through Transport Request.
1) How can get the Transport Request no. of the Workflow to be transported? (As there are no direct versions displayed from menu).
2) If there are any dependent objects first how to find the dependent objects lof workflow like if any data element, Domain, Table, Structure (if these objects are used in your WF definition or may be BOR method), Function module, function group BOR, Rule, WF template, task and Task assignment ?
3) How to get Transport Request no. of such dependent objects specifically The Task,Rule , WF template etc.?
4) I have object Type ZBUS2081 related to it how can i get its TR ?
Please describe as I'm new to workflow.
Please identify if there can be some issues after transporting workflow .
Regards,
UjjwalHi Ujjwal,
Please find the below hint's.
1. Regarding the objects included in the Transport request check the Tables - E070*.
2. For dependent objects, you should check the workflow template. You have to check all the Task's and in the task go to
utilities ---> Object directory entry --> Lock overview . Here you can see the request. It will show you the current request for the Task.
3. To get the TR for Business object, Go to basic data ---> Transport data --> Here you can see the Request ID for the business object.
Thanks,
Viji. -
How to get the Asset's current step under a specific workflow process via API?
Everyone,
Is there a way to get the asset's current step for a specific workflow process by the WebCenter Sites API? We are showing out the asset created within the WebCenter Sites in another application via its API. We would like some actions get to be done once determined assets went into a specific step of a workflow process. Any suggestions are welcomed.
Regards!Here is some information from the FDK Programmer's guide page 115:
IMPORTANT: A valid text range can span multiple paragraphs, subcolumns, or text frames.
It cant span multiple flows, footnotes, table cells, or text lines.
It is possible for a document to have no text selection or insertion point at all. This can occur in
the following circumstances:
● One or more graphic objects in the document are selected
● One or more entire table cells in the document are selected
● There is no selection of any type in the document
So, I did select one or more entire table cells in the document in my first test. It's logical that the result was not like expected.
But selecting one or more entire table cells is a crucial requirement for my plugin, is there anyway to get things straight?
Simply put, I want to enable users to select one or more table cells in the document, and I want to get the object handles of the first cell and the last cell through Framemaker API calls. How?
Many thanks in advance!
Best Regards,
Ellen N. Zhao
Maybe you are looking for
-
Hello, Weu2019re on BI 7, Crystal Report 2008 V1 and SAP Integration Kit 3.1. Query is created in BEx Query Designer, with Variable. In Crystal Report, I have set to use the MDX driver u2013 recommended by SAP. I have created the Crystal Report on to
-
Good evening everyone, I have a file of numbers to be printed via AirPrint, in print preview the contents of the paper takes up all the space on a page, but when I go to print, the content is always smaller leaving 2/3 cm unused ? advice?
-
I am trying to reset my security questions, however the send reset security info to email option is not available to me. Anyone know how I can fix this please.
-
I am unable to reach the my content page of mysites from the name link within my site collection
For some reason I am no longer able to get to the personal mysites page from within our site collection. My name appears at the top right and it has an option for setting which leads to some minimal page but I can no longer use this to get to the act
-
Another bug in CC: Global colors will not convert
In CS5 I often converted a global color by using the Color Panel flyout menu: "Invert" or "Complementary". This is no longer possible in CC. The color must first be converted to CMYK or RGB. I realize the conversion loses to "Global" designation, but