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

Similar Messages

  • 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

  • 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.
    Harish

    Hi 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

  • Using send email step in workflow

    Hi Experts,
    I have a question regarding the send email step in workflow.
    We have the Receipient Type as Organizational Object and Expression as &WF_INITIATOR&.
    I want to know if the mail will be sent to the SAP email ID (i.e) in SBWP or will be it be sent to the Outlook email ID.
    We want to send it to the Outlook email ID of the User. Can you guide us as to how we can do the same.
    In some cases, we want to send the notification to both the employee and his manager. Can this be managed through the SEND EMAIL step in the workflow or do we have to explicitly create a method and use a std FM that sends the email to the concerned.
    Request your help on the same.
    Cheers,
    Belinda Clarke

    >We are getting the pernr of the employee. We can retrieve his email address for the same. So do we need to pass this to a workflow container and then use that workflow container value in the space provided for the email address.
    Yes. It is really up to you how you will develop everything. I personally like to get all the data into the workflow container, because it might be handy later in the life. Let's say that you go on with your custom email sending step and add there the code the get the data that you need in the email. It will work perfectly. But let's say that after six months the HR administrators want to get emails with a bit different content from this same workflow. Now you will need do another custom step. But if you had already all the data in the container you can simply add another standard email step and formulate the text with the editor and add the variables from the workflow container. Easy and simple.
    So, my advice is that for example add just add some background step to get all the possible data regarding the employees & leave request & managers or whatever. Now you have everything in the container and you can use them in the email(s) - and you can use them in other places too - for example in the work item texts, etc.
    Regards,
    Karri

  • 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

  • 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,
    Deb

    Hi 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 runtime error ehile execution of Mail step in workflow

    Hi all when i execute mail step in workflow i am getting following error-
    SQL error in the database when accesing a table.
    How to correct the error
       Database error text........: "SQL system error. MSGID= Job=038082/DEV05/WP02"
       Internal call code.........: "[RSQL/INSR/ARFCSDATA ]"
       Please check the entries in the system log (Transaction SM21).
       If the error occures in a non-modified SAP program, you may be able to
       find an interim solution in an SAP Note.
       If you have access to SAP Notes, carry out a search with the following
       keywords:
       "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
       "SAPLARFC" or "LARFCU03"
       "END_TRANSACTION_NONE_LOCAL_UPD"
       If you cannot solve the problem yourself and want to send an error
       notification to SAP, include the following information:
       1. The description of the current problem (short dump)
          To save the description, choose "System->List->Save->Local File
       (Unconverted)".
       2. Corresponding system log
          Display the system log by calling transaction SM21.
          Restrict the time interval to 10 minutes before and five minutes
       after the short dump. Then choose "System->List->Save->Local File
       (Unconverted)".
       3. If the problem occurs in a problem of your own or a modified SAP
       program: The source code of the program
          In the editor, choose "Utilities->More
    Please guide.
    Thanks.

    Hi Sanjay,
    Firstly are you using Send mail Activity or are u calling Fm SO_DOCUMENT_SEND_API1.
    Well  I suppose u are calling the FM, in that case just check the data that you are fetching before calling this FM. This error is related to sql query so check your select statements used before sending mail.
    Hope this helps.

  • 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

  • Shopping cart's One step approval workflow activation

    Hi Gurus,
    Please reply me for, how to create a shopping cart with One step approval workflow activation?
    regards,
    George.

    Hi George,
    The creation of the SC stays the same. Only the event linkage and the start conditions determine which workflow will be started.
    Regards,
    Martin

  • Multi Condition step

    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 AM

    Hi 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

  • Condition step

    Dear Friend,
    How to check whether a variable is initial or not in condition step type.
    Thanks & Regards,
    Arti

    Usually 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

  • G/L account in start conditions of a workflow

    Hi SRM gurus,
    is is possible to check the G/L account in a start condition of a workflow? Can not find it.
    Example: Company 1234 and TotalValue >= 1000 and G/L account=777777 --> Then WS10000129 "One Step approval of shopping cart" should be initiated?
    Would be great if that works!
    Thanks and best regards,
    Henning

    Hi
    As per standard one step WF..GL account is not built as criteria. You have have your own custom code for this. Thanks
    Piece of logic from standard WF task
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Workflow WS10000129    No default currency
      Event Shopping cart created
       (  " Einkaufen von Employee
         &EC Requirement Coverage Request.TotalValue& < 100,000.00
         and    &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
         and    &EC Requirement Coverage Request.TotalValue& u2265 1,000.00
         and    &EC Requirement Coverage Request.Requester User.Activity Group& NE SAP_BBP_STAL_MANAGER 
         and    &EC Requirement Coverage Request.Unlimited& u2260 X
         and    &EC Requirement Coverage Request.Spending Limit& NX 
         and    &EC Requirement Coverage Request.UserBudgetDefined& NX 
         and    &EC Requirement Coverage Request.Exists w.out Price& u2260 X
      ) " Einkaufen von Employee
      or    (  " Einkaufen von Manager
         &EC Requirement Coverage Request.Requester User.Activity Group& CE SAP_BBP_STAL_MANAGER
         and    &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
         and    &EC Requirement Coverage Request.TotalValue& u2265 500,000.00
         and    &EC Requirement Coverage Request.Unlimited& u2260 X
         and    &EC Requirement Coverage Request.Spending Limit& NX 
         and    &EC Requirement Coverage Request.UserBudgetDefined& NX 
         and    &EC Requirement Coverage Request.Exists w.out Price& u2260 X
      ) " Einkaufen von Manager
      or    &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
      and    &EC Requirement Coverage Request.Unlimited& = X
      or    (  " Einkaufsbudget Scenario
         &EC Requirement Coverage Request.UserBudgetDefined& EX 
         and    &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
         and    &EC Requirement Coverage Request.UserBudgetSpent& > &EC Requirement Coverage Request. UserBudgetDefined&
         and    &EC Requirement Coverage Request.Unlimited& u2260 X
         and    &EC Requirement Coverage Request.Exists w.out Price& u2260 X
      ) " Einkaufsbudget Scenario
    True 
       Start workflow:  One Step approval of shopping cart
    False 
       No action
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Rgds
    Kiran

  • Creating a new condition in a Workflow

    Hello,
    I am a beginner in using the Workflow Builder (SWDD) and I need to add a new condition in a Workflow.
    In the properties of my new condition I need to click on "Click here to create a new condition" and then a Change Condition Window appears. I need to select The Expression 1 in the Container but the one I need is not listed.
    I would like to create a new entry in the Container. How can I do that?
    Thank you in advance for guiding me.
    Best regards,
    Sylvain

    Hello Sylvain,
    Attached link explains creation of Container element in detail.
    [Creating WF Container elements|http://help.sap.com/erp2005_ehp_04/helpdata/DE/a6/9bac935f2c11d194a40000e82dec10/frameset.htm]
    Thanks,
    Shital Nimje

  • 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
    Gowrishankar

    I 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>

Maybe you are looking for

  • Premiere Elements 9 running extremely slow on Core i7 Win7 Quadro system

    Hello, We've had a single installation of Premiere Elements 9 for some time now and for love nor money we've been unable to get it working properly, i've tried all manner of driver combinations for graphics and motherboard and the problems persist. B

  • UCS I/O Throttle with Esxi 5.1 Update 2 and UCSM 2.1 and 2.2

    Hi, I have heard that Cisco recommends that the I/O throttle be changed to 256 when using esxi 5.1 Update 2. Does anyone have any official information on the change that Cisco recommends?

  • Printing from desktop suddenly stopped

    printing from desktop suddenly stopped 2 days ago; remote printing still works perfectly; desktop shows printer "uninstalled." Print doctor says the printer and desktop are connected to different routers, but nothing has been changed; the issue simpl

  • PDF export with menus auto open

    Is there a way to export a PDF for a client so that when they click on your PDF, a certain PDF menu opens automatically with it (like the 3D model tree)? Or the layers fly out side menu? Or to have certain tools open across the top? Thanks friends, T

  • Software updater won't let me update to E71 to new...

    Hi, I have an E71 with firmware v300.21.012, I went to the Nokia software update page which told me the newest firmware release is 410.21.010, I downloaded the most recent ovi suite including software updater as per the instructions here. I ran the d