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

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

  • Using an If-Else type condition in condition step

    Hi Gurus,
    I am requried to use an If - Else kind of condition before branching out.
    I tried using the condition step and parantheses but am not able to figure out how to go about it.
    IF you have used a simlar condition before,kindly share with me how I can achieve it.
    My requirement is :
    IF x = '123' or '456'.
    do your work
    elseif.
    x = '111' or '222'.
    do your work(2)
    endif.
    Thanks and Regards,
    Ameya Kulkarni

    Hi,
      There must be 4 element x1, x2, x3, x4
      At first select Multiple condition step.
    Then in condition Tab select type as Switch.
    Then click on the Condition of 1st line.
    There a new window open. There click on expression select x1 , click on operator select = ,  click on expression 2 ,  write 123 ,  click on AND/OR, select OR , Then  click again on expression select x2 , click on operator select = ,  click on expression 2 ,  write 456 . 
    Then click on the Condition of 2nd line.
    There a new window open. There click on expression select x3 , click on operator select = ,  click on expression 2 ,  write 111 ,  click on AND/OR, select OR , Then  click again on expression select x4 , click on operator select = ,  click on expression 2 ,  write 222 .
    In this way you can do this.

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

  • 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

  • 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

  • OBI Column selector and Condition step

    In OBI 11.1.1.6.2 I have an analysis which contains a column selector, a pivot table and a regular table. The pivot table uses the fields of the column selector.
    In this configuration it is not possible to add a condition step to the regular table. Only when removing the column selector view it is possible to add a condition step.
    I know that it is possible to create a dashboard that uses two analysis: one pivot table with the column selector and one regular table with the condition step. But this is not what I want.
    I am not sure if this is a works as designed thing, or that it is a bug. If it's works as designed, than I would have expected a message that it is not allowed to add a condition step when a column selector is present.
    Does anybody have experience with this?
    Thanks,
    Bas
    Edited by: 981938 on Jan 15, 2013 3:03 AM

    This is functional question, Any SD consultant can help you out . Well I recommend you to post it on some SAP SD forum!! Rather then waiting over here .
    Thanks
    Saquib

  • Incorrect logical expression: Comparison / SELECT-OPTION can only be follow

    Hi,
    I'm new to ABAP, please help me with the below code. When i check the code i get the message "E:Incorrect logical expression: Comparison / SELECT-OPTION can only be followed by "AND", "OR" or ")".
    data: pphd(7) type p decimals 2,
              ppha(7) type p decimals 2,
              abs_pphd(7) type p decimals 2.
        if pphd >= 0.
          if pphd < 1.
            ppha = 0.
          elseif 1 <= pphd <= 4.
            ppha = '0.16'.
          elseif 4.01 <= pphd <= 8.
            ppha = '0.32'.
          elseif 8.01 <= pphd <= 12.
            ppha = '0.50'.
          elseif 12.01 <= pphd <= 16.
            ppha = '0.66'.
          elseif 16.01 <= pphd <= 20.
            ppha = '0.83'.
          elseif 20.01 <= pphd <= 24.
            ppha = '1.00'.
          elseif 24.01 <= pphd <= 28.
            ppha = '1.16'.
          elseif 28.01 <= pphd <= 32.
            ppha = '1.32'.
          elseif pphd >= 32.
            ppha = '1.50'.
          endif.
        else.
          abs_pphd = abs( pphd ).
          if abs_pphd < 1.
            abs_ppha = 0.
          elseif 1 <= abs_pphd <= 4.
            ppha = '-0.16'.
          elseif 4.01 <= abs_pphd <= 8.
            ppha = '-0.32'.
          elseif 8.01 <= abs_pphd <= 12.
            ppha = '-0.50'.
          elseif 12.01 <= abs_pphd <= 16.
            ppha = '-0.66'.
          elseif 16.01 <= abs_pphd <= 20.
            ppha = '-0.83'.
          elseif 20.01 <= abs_pphd <= 24.
            ppha = '-1.00'.
          elseif 24.01 <= abs_pphd <= 28.
            ppha = '-1.16'.
          elseif 28.01 <= abs_pphd <= 32.
            ppha = '-1.32'.
          elseif abs_pphd >= 32.
            ppha = '-1.50'.
          endif.
        endif.
    Thanks,
    AM

    Hi Raj,
    Thanks a lot for the reply. i modified the code as you suggested but i get the error "E:Incorrect logical expression: Only "... BETWEEN  AND ..." is expected."  Below is the modified code.
    data: pphd(7) type p decimals 2,
          ppha(7) type p decimals 2,
          abs_pphd(7) type p decimals 2.
    if pphd >= 0.
      if pphd < 1.
        ppha = 0.
      elseif pphd between 1 and 4.
      ppha = '0.16'.
      elseif pphd between 4.01 and 8.
        ppha = '0.32'.
      elseif pphd between 8.01 and 12.
        ppha = '0.50'.
      elseif pphd between 12.01 and 16.
        ppha = '0.66'.
      elseif pphd between 16.01 and 20.
        ppha = '0.83'.
      elseif pphd between 20.01 and 24.
        ppha = '1.00'.
      elseif pphd between 24.01 and 28.
        ppha = '1.16'.
      elseif pphd between 28.01 and 32.
        ppha = '1.32'.
      elseif pphd >= 32.
        ppha = '1.50'.
      endif.
    else.
      abs_pphd = abs( pphd ).
    if abs_pphd < 1.
        ppha = 0.
      elseif abs_pphd between 1 and 4.
        ppha = '-0.16'.
      elseif abs_pphd between 4.01 and 8.
        ppha = '-0.32'.
      elseif abs_pphd between 8.01 and 12.
        ppha = '-0.50'.
      elseif abs_pphd between 12.01 and 16.
        ppha = '-0.66'.
      elseif abs_pphd between 16.01 and 20.
        ppha = '-0.83'.
      elseif abs_pphd between 20.01 and 24.
        ppha = '-1.00'.
      elseif abs_pphd between 24.01 and 28.
        ppha = '-1.16'.
      elseif abs_pphd between 28.01 and 32.
        ppha = '-1.32'.
      elseif abs_pphd >= 32.
        ppha = '-1.50'.
      endif.
    endif.

  • 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

  • Condition step : currency field = constant ?

    Hi All,
    I am stuck with a silly thing while making my WF , Pls help me out.
    I am designing WF for parking invoice (tcode- FV60),there I need to give following condition:
    If Invoice Amount > 2500 USD then mail is sent  to some particular approver otherwise some other approver.
    I have declared one variable 'Amount' in WF container with refrence to table- INVFO and field - WRBTR.(this is a currency field.)
    and in condition step in WF, I am giving a condition .i.e - 'Amount' > 2500
    But problem is :- condition editor shows 2500 as 2.500,00
    i hv tried to give 2500 as 2500.00 then too its shown as 2.500,00 .
    Pls advice how to go about it ??
    Rgds
    Priya

    Hi PS,
    Just test your WF through FV60 and see whether your condition is getting satisfied.
    Are you worried because instead of showing 2500, system is showing 2500,00 - if that is so thats fine, because settings in SAP are maintained that way.
    I mean, 2500 for SAP is 2500,00.
    Aditya
    P.S else, your way is correct on declaring the element in the condition editor.

  • 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

  • How can I delete Conditional Build Expressions in RH7?

    I have a project with some Conditional Build Expression artifacts that I simply cannot get rid of.
    For example, I have created two Conditional Build Expressions:
    Internal OR Foo1
    Foo1 OR Foo2
    It has been determined that the second expression is the one we want.  But, the first one still shows up as an option in the SSL.  Furthermore, when I view a page, the first expression clutters up my list of possible Conditional Build Expressions.
    How can I lose a Conditional Build Expression?  I have quite a few possible arrangements, and I don't want to confuse other authors by having too many choices (especially with similar names).
    Kevin

    Hi Kevin.
    I think you have to do this by manually editing the project's .pss file (projectname.pss). If you take a backup of this file and open it in Notepad you'll find a [Global Build Tag Expressions] section and hopefully in there will be your "Internal OR Foo1" expression preceded with a date/time stamp. If you remove this line it should no longer appear in your project.
    Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
    Follow the RoboColum(n) on Twitter

  • Deleting conditional build expressions

    I have created a project in RH7 and it has expanded to become
    our company's single source for user documentation. This is a good
    thing. However, as I've added information for different audiences,
    I've ended up with a number of conditional build expressions that I
    no longer need. I'd like to delete them so I don't have to search
    through a long list on the WebHelp General screen.
    I've searched the forum and don't see any information about
    deleting conditional build expressions (tags, yes; expressions,
    no). Can anyone tell me how to do this?
    Thanks for your help!

    Dear Mr. Grange,
    Forgive me for resurrecting such an old post. In your reply you state: "any layout that contains the build expression). By 'layout' do you mean the topics?
    Thank you in advance for your assistance.

Maybe you are looking for

  • Error opening the portable document file document. error code = 0x4000000c

    I have been getting this error message when I try to open a .pdf that was created in Word. I have searched for this error code and nothing comes up. The file was created from a Word newsletter template. I had no problem opening this in PS before I up

  • Javascript in offline html

    Hallo. I have a simple question. Is javascript in offline html supporteted in DSP? I tried to place very very simple html with one row javascript into my article. Updating article to the server takes hours!!! . DL from server to iPad is impossible

  • Web module crashes during export OR upload (Mac OSX 10.5x)

    Been happening more and more for some reason. The number seems to not matter, though typically there are 700 to 1400 images to either export or upload - and both crash LR. I'm on a Mac (OSX 1.5x) running LR 3.2. Actually, we're running TWO macs, and

  • No address record error during installation

    Definitely new to linux I'm following the beginners' guide.  I've got to the point in which I Select Packages and get the error: Packman preparation failed! Check /dev/tty7 for errors When I check /dev/tty7 I see: Using mirror: ftp://mirrors2.kernel.

  • URGENT HELP: PC can't post after Bios Update on MSI NX6600GT-VTD128

    The LiveBIOS utility on my PC showed that there was an updated BIOS of my MSI NX6600GT-VTD128 that I was using and I proceeded to update using the facility. Everything seem fine until the system was rebooted, now the system refuse to post. All I see