Workflow conditional statement not working

I have 2 level approvals of objects in Documents list.
The document first uploaded by user and then first need to get approval from HR Line Manager and then get approval from HR manager.
the attach image shows shows workflow , the issue is either I select approve or reject in first approval the if statement is always true , it should not go inside if statement if first approval is rejected by HR Line Manager roles
Tech Learner

Hi,
To make the condition work in the workflow, there are two more things need to be done:
1. Enable content approval in the Documents library which the workflow is associated with.
Go to the Library Settings page of the Documents library > click Versioning settings > select Yes under Require content approval for submitted items.
If we do not enable this, the value of Approval Status column will always be Approved.
2. Add a Set Workflow Variable step above the Start Approval Process step and set it to Yes in the workflow.
After adding the Set Workflow Variable step, we can set the Approval Status column when we approve or reject the task process. Otherwise the Approval Status column will not change no matter how the task process works.
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support

Similar Messages

  • If condition statement not working in jsp scriptlet

    <%
    String hostName = java.net.InetAddress.getLocalHost().getCanonicalHostName();
    if(hostName.endsWith("dinesh.com"))
    System.out.println("it works");
    else {
    System.out.println("it doesn't work");
    %>
    I am getting output as it works & it doesn't work. It seems the If condition is not working. Pls help with this issue.
    Thanks

    Dinesh_Nala wrote:
    Even the condition in if is returning true, the x value i am get as "/user2/"How did you knew that it returns true? Or did you just expect that? Do you trust yourself more than Java? Too bad.
    Just debug it:
    System.out.println("Actual hostname value: [" + hostName + "]");
    System.out.println("Does it end with dinesh.com? " + hostName.endsWith("dinesh.com"));

  • Select statement not working

    hi to all,
    I am trying to write use inner joining . here is code
    DATA:tabname LIKE dd02L-tabname,
         table_disc LIKE dd02t-ddtext.
      SELECT  dd02ltabname dd02tddtext INTO (tabname,table_disc)
        FROM dd02l INNER JOIN dd02t on dd02ltabname = dd02ttabname
              WHERE dd02tddlanguage = 'E' AND dd02ltabclass = 'TRANSP'
                                AND dd02L~tabname = 'ZANKI*'.
        endselect.
          write : tabname.
    I also checked in tables dd02t and dd02l for the table zanki* and data available in both table . but here select statement not working .do u have any idea about this. thank you

    Hi,
    I executed the ur inner join conditin by commenting 'z*' it's working fine.
    I think  where condition is not getting satisfied so u r not getting any data.
    Please conform in where condition you need * 'AND'* or OR
    I change decalration as below.
    DATA:tabname    type TABNAME,
          table_disc type AS4TEXT.
    SELECT dd02l~tabname
           dd02t~ddtext  INTO (tabname, table_disc)
    FROM dd02l  INNER JOIN dd02t on dd02l~tabname = dd02t~tabname
    WHERE dd02t~ddlanguage = 'E' AND
          dd02l~tabclass = 'TRANSP'AND
        dd02L~tabname = 'ZANKI*'.
    endselect.
    write : tabname.
    Regards,
    Pravin

  • Why condition does not work.

    Hi Pros,
            in my bex query, there is a CKF OT hours, having a value 30.000, when I set a condition for 'OT hours = 30.000', but get no result out. could you please tell why condition does not work.

    HI,
    please check the "Characteristic Assignment" Tab in change condition window.
    In that tab default  selection as "All Characteristic in the drill down independently" change that selection  as "Individual characteristic and Char. combinations"  and choose the particular characteristic. for ex OT hours against employee means select employee alone.
    Regards
    Sureshkumar C

  • Guard Condition is not working

    Dear Friends,
    I have created a dashboard using BI queries. output of queries is displaying via charts.
    Now i have to display charts one by one in single layer. Here i triggered the Select Event on the output of CHART A and Guard Condition as well.
    Now guard condition is not working properly. i want display of CHART A first then after clicking on tab i want display of CHART B. But here i always get CHART B first, which is not the requirement.
    I am using VC 7.0 with flex2 compiler. EP patc level is SP17.
    Kindly hep me out to resolve this.
    Thanks & Regards
    Nivedita

    Drag an output from your table to a data store and add a field to the datastore (lets call it GUARDFIELD). Click the connector between the table and the data store. Make sure the event name is select and assign GUARDFIELD with the following value:
    STORE@GUARDFIELD+1
    Now add a guard condition to the select connector between the table and chart B and use following code:
    STORE@GUARDFIELD>0
    This is going to check that GUARDFIELD is greater than 0, which will only be true when you click the table for first time. If this doesn't make sense let me know and I'll try find the blog which explains this.

  • WF with Multi-condition is not work

    Hi All,
    I am using an object subtype of the FIPP - document park, which is called a YFIPP01, and I have to include a new atribbutes (vbkpf-Blart). swo1:
    YFIPP01.DocumentType        DocumentType  (released)
    Now my WF is being generated and  the workitem too. But my WF is working with a small problem, I made multiple condition using the new attribute (Blart) is not working.
    When I check the log through the Tcode SWEL/Workitem see that the attribute in the container (Blart) is marked "not set".
    SWEL/Workitem :
    Display Container Instance for Workitem 00000004081
    Expression          Values
    Documenttype     <Not Set>
    Any help is very welcome.
    Joao

    Karri Kemppi,  First thanks for responding.
    If you test/instantiate an object in SWO1, is the attribute getting populated? You should test it in SWO1 at the first place. Only after you get it working there, you can expect it to work in workflow.
    ok I had already tested the object as shown below and the attribute is populated.
       YFIPP01                        005019000002282011
            Atributos
                  DOCUMENTNO                        1900000228
                  DOCUMENTTYPE                      T1
                  FISCALYEAR                        2011
                  FLAGCOMPLETE                      X
                  FLAGRELEASED
                  LEVELCOUNTER                      00
                  OBJECTTYPE                           YFIPP01
                  SOURCECOMPANYCODE                 0050
                  USERCHANGE                        ABAP

  • Time based workflow:wait action not working

    I need to build a workflow for sending mail to manager if for an opportunity sales stage "requirement" remains for more than 30 days,I have given the workflow condition as:
    ([<SalesStage>] = "01 - Requirements")
    & then 2 actions 1st "Wait" & then "Send mail" somehow its not working.Please guide where i am getting wrong..

    Let me understand your business case: You need to send ONE email to the manager of the opportunity owner, if the Sales Stage = '01 - Requirements' for more that 30 days.
    You need two workflows and a unused/custom field (a boolean field is preferred). Both workflows are similar. The first workflow is based on the event - When new record saved. This workflow will be invoked as soon as a new opportunity is created. The second workflow is invoked whenever the opportunity is modified using the event - When modified record saved. Any user who has edit rights to the opportunity could modify the opportunity but not change the sales stage. This results in an unpleasant situation where the manager could be flooded with emails. That's where we use the boolean field to protect against multiple updates and ensure a single email is sent after 30 days if the sales stage is still '01 - Requirements'
    Workflow 1
    Record Type: Opportunity
    Event: When new record saved
    Condition:[<SalesStageId>] = "12ASA-XCD34" AND ([<IndexedBoolean0>] IS NULL OR [<IndexedBoolean0>] = "N")
    Note:
    1. IndexedBoolean0 is the field named Indexed Checkbox in the list of fields
    2. I have used the sales stage id. You have to find out the sales stage id for '01 - Requirements' and use it here.
    Workflow 1 - Actions (remember to activate all actions and workflows)
    1. Action = Wait
    Period= 30 days
    Reevaluate Rule Conditions After Wait = Y
    2. Action = Field Update After Wait
    Field Name = Indexed Checkbox
    Value = "Y"
    Overwrite Existing Values = Y
    3. Action = Email
    From > Specific Email Address> "[email protected]"
    To > Relative User On Record > Opportunity Owner's Manager
    Repeat this workflow configuration for Workflow 2, where the only difference is the event which should be When modified record saved
    Exposing the Indexed Checkbox on the opportunity detail page layout for all users is optional (not recommended). It might be a good idea to expose this checkbox on the opportunity detail page for the administrator role only... so that he/she can take corrective action if an email is not sent after 30 days.

  • IF - Else condition is not working properly in Bex Query Designer

    Hi All,
    I have a KF called KPI Value. Based on the KPI Value, my report display has to show by using the if-else condition.  If the KPI value is '999999' then that particular KPI value has to display as 'X' against to that KPI No. Thats all my requirement. To achieve this I have created a formula based on the KF.
    (KPI Value == 999999)*(1/0)+(KPI Value <> 999999)*(KPI Value)*1
    Unfortunately, the above expression is shwoing the entire colmn as 'X' irrespective of the KPI value. i.e., logic is not working Could any one please suggest how to achieve this requirement. Your assistance is highly appreciable and very helpful. Thank you in advance!!!
    Best Regards
    Venkat...

    AL,
    I can visualize how condition should give results. The problem here is reality, I tired in my system with your formula and I got like as I mentioned.
    If you observe closely your If..else formula, (KPI Value == 999999)*0+(KPI Value <> 999999)*KPI Value
    If KPI Value == 999999 Result is 0, Else(Assuming) KPI Value <> 999999 Result is other nos like 1111, 2222 etc.
    Actually it is not If..else, it is IF..ENDIF. Both conditions should get satisfied to give below:--
    KPI value  Formula
    9999          X
    1111         1111
    2222          2222
    9999          X
    3333          3333
    4444          4444
    9999           X
    In the course of adding both conditions results, system is not able to add 0+ Other Values in single column. So it is giving mixed values * like below:--
    KPI value  Formula
    9999          X
    1111           *
    2222           *
    9999          X
    3333           *
    4444           *
    9999           X
    Note: Once again I want to say it is not to prove you wrong. Let's get some clarity on the issue. I might be also wrong. But I want to know the actual result. If you can test it tomorrow and let me know..it would be great.
    Regards,
    Suman

  • The Create List Item workflow action does not work in document library with document template

    My end goal is more complex but below is a basic example of the issue I’m having that just simply does not work.
    I'm trying to use a site workflow to create an item in a document library that has a document template applied to it but the file that gets created by the workflow is corrupt and cannot be opened.
    I created a document library and edited the document template by adding some text to the header and changing it to a Word docx file instead of a Word dotx file. I tested the document template by clicking the files tab in the ribbon and then clicking new
    document which opens the document template in Word and allows me to edit and save the document back to SharePoint. Then I created a SharePoint 2013 site workflow in SharePoint Designer that contains a single Create List Item action, and that action creates
    an item in the document library with the name field statically defined. I published the workflow and then manually start it on the site. The workflow completes successfully and when I navigate to the document library the document has been created by the workflow.
    When I click on the document to open it in the Word Web App it throws the error pictured below and if I open it in the Word client application it just opens a blank document and not the correct document template.
    I also tried using a SharePoint 2010 workflow with pretty much the same results. Opening the document in Word Web App gives the same error as above and opening the document in the Word client application gives the error pictured below.
    Come on Microsoft creating a Word Document in a SharePoint Document Library from a SharePoint Workflow should just work! Is this a bug or does anyone have any ideas on what is causing the this issue?

    I had the same problem with corrupted document - this worked for me:
    1. Create a 2010 Workflow which creates the list element in a document library
    (you may start this workflow from your 2013 workflow if applicable)
    2. In the Create New List Item properties - make sure to set ContentTypeId to your content type
    ("Id for indholdstype" is Danish for "Contenttype ID")
    3. Your Content Type template should be a ".docx" file - NOT a ".dotx" file...!
    (I have always created my templates for content types as .dotx files - seems Microsoft wants us to use ordinary .docx files as template files for content types)
    Hope this helps you!

  • Case when statement not working

    hi there, I am trying to work out how to get my case statement to work.
    I have got the following code. 
    select pthproto.pthdbo.cnarole.tpkcnarole, pthproto.pthdbo.cnaidta.formataddr as formataddr, cnaidta.dateeffect as maxdate, isnull(cast (pthproto.pthdbo.cnaaddr.prefix1key as varchar (50)),'') + ' ' + isnull(cast (pthproto.pthdbo.cnaaddr.prefix2key
    as varchar (50)),'')+ ' ' + isnull(cast (pthproto.pthdbo.cnaaddr.prefix3key as varchar (50)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.houseidkey as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component1
    as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component2 as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component3 as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component4
    as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component5 as varchar (100)),'') as mailaddress, row_number() over(partition by pthproto.pthdbo.cnarole.tpkcnarole order by cnaidta.dateeffect desc) as rn into #address from pthproto.pthdbo.cnarole
    inner join pthproto.pthdbo.cnaidty on cnarole.tfkcnaidty =cnaidty.tpkcnaidty inner join pthproto.pthdbo.cnaidta on cnaidty.tpkcnaidty = cnaidta.tfkcnaidty inner join pthproto.pthdbo.cnaaddr on cnaidta.tfkcnaaddr = cnaaddr.tpkcnaaddr order by cnaidta.dateeffect
    select *, case when mailaddress is not null then mailaddress else formataddr end as test from #address where tpkcnarole = '18306695'
    The case when statement is struggling with how i have created the column mailaddress.  As it does seem to understand when it is null.  In the example I have got there is no value in any of the columns to create
    the mailaddress.  Hence why I am referencing it from elsewhere.  Due to having a way on the system where it picks up data from 2 different places.    The mailaddress is always correct if there is one, hence why
    trying to reference that one first.  So how do i change this case when statement to work ?            

    It's ok I have fixed my own problem
    when
    (mailaddress
    is
    null 
    or mailaddress

    then formataddr
    else mailaddress
    end
    as test
    case

  • FDM Conditional mapping not working

    I currently have the following #script as my map in FDM. The first part of the map is not working as all the 9* source accounts are mapping to "70111". The rule should be; with any source account of "9*", with a source profit center where the 3rd digit is "??1???", then account is "43905", else "70111".
    If Left(varValues(23),3) = "1" Then
    Result = "43905"
    Else
    Result = "70111"
    End if
    Not sure why the first result is not working...anyone have any suggestions?

    Hi
    I think I may have seen this question answered previously but in case....
    Your IF statement is comparing the first 3 characters to "1" so it will never match.
    Assuming that you want to compare the 3rd character then you want If Mid(varValues(23),3,1) = "1" Then
    Hope this helps
    Stuart

  • Active state not working in scrolling site (with anchor links)

    I'm design a scrolling site with anchor links and an horizontal menu on the top.
    when i publish the site and click on the menu buttons the site scrolling to the place of the anchor but the active state in the menu is not working.
    now... when i leave the main page (were the scrolling site is) and then return back to it all active states are working perfectly
    anyone have this bug? or any one know how to fix it ?

    Hmmm...I've just been playing around, and I think I got the Active State to work correctly.  I think my problem was not understand what Active State means.
    To answer your question, I was changing the Font Color and Box Fill Color of the Active State.
    I did not understand that Active State means the look of the Menu Item when the PAGE is active.  I thought it meant the look of the Menu item when the cursor is scrolling down the Menu (i.e. when the MENU is Active, not the page).
    Look at this page for an example of what I'm trying to achieve...
    http://www.pgavdestinations.com
    When you hover over the "Work" menu item, and move the cursor down the menu, the state of "Work" remains changed until you move the cursor off of that menu column. It does NOT return back to it's Normal state until you are off of that menu column.
    Is there a way to achieve this with the menu states in Muse?
    Thanks for the replies!
    Dave.

  • Disabling Radio Button Conditionally is not working Well

    Hi friends,
    I have three radio buttons
    <li>self
    <li>New Hire
    <li>On Behalf of
    I will be showing this radio button conditionally according to the user who logs into the application.
    Assume, suppose if a person 'A' enters into the application means he will be shown only these radio button options ---NH---,----OB----,----Self-----
    Suppose, if a person 'B' enters into the application means he will be shown only these radio button options ----NH----,----Self---
    If a person 'C' enters into the application means he will be shown only these radio button options ---Self---
    I have restricted those radio buttons according to the users who enter into the application using their roles.
    But my challenge here is once the user logged in and if he select anyone of the radio button means,
    Example if he selects----NH---means, then ---OB----and -----Self---radio button has to disable and if he selects ---OB----means then ----NH-----and ---Self---has to
    disable(vice versa).
    I have also achieved the same using the DA.
    With true action as: javascript Expression i have given the following codings( i have written the below DA for three cases, if the request_class_code is equal to
    (NH,OB,S)
    var enabled=$v('P22_REQUEST_CLASS_CODE');
    if (!$u_SubString(enabled,'S')) $('#P22_REQUEST_CLASS_CODE_2').attr("disabled","disabled");
    if (!$u_SubString(enabled,'NH')) $('#P22_REQUEST_CLASS_CODE_0').attr("disabled","disabled");
    if (!$u_SubString(enabled,'OB')) $('#P22_REQUEST_CLASS_CODE_1').attr("disabled","disabled"); The above DA is working great only for the user who has the option of viewing three radio buttons in my form(i.e)(NH,OB,S).
    For the user who has the option of viewing two or one radio button, it is not working properly(i.e)(NH,S) or(OB,S) or(S).
    Why it is not working for the user with two options or with one option radio button means, the source of that radio button property is changing. Since i have taken
    the source of my radio button in my DA only when the three options are present.
    How i can solve this issue for the user who is having this two radio option or one radio option.
    Hope you understood clearly about the problem.
    Brgds,
    Mini

    Hi,
    If I did understand what you like have this might work
    var lVal = $v('P22_REQUEST_CLASS_CODE');
    $('#P22_REQUEST_CLASS_CODE input:not([value="' + lVal + '"])').attr("disabled","disabled");Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME

  • Import/Export statement  not working..

    Hi all,
       I want to export some data from BADI & Import it back in user exit.
    I wrote following line of code in BADI
           export P1 FROM xstr to memory id 'ZABHI'.
    & following line of code in User Exit
          import P1 to xstr FROM memory id 'ZABHI'.
    After export sy-subrc becomes 0 hence export statement is working fine but when aftr import xstr remains blank.(sy-subrc = 4)
    I tried to execute same code in single ztest abap program & it works fine there.
    Thanks in advance.

    hi abhijeet,
    you are most welcome....
    to delete, use
    ** deletes the data to save wastage of memory
    delete from database indx(xy)
      client sy-mandt
      id 'ZABHI'.
    you need to delete it coz, its available to all programs in the R/3
    server via the ID and you don't want anybody to view the data u are
    sending into memory.
    the statement that u used earlier was program specific and hence
    not accessible to the user exit.
    Regards,
    Samson Rodrigues.

  • Hide statement not working

    Hi experts,
    i am using hide statement but it is not working..The problem with it is that after line selection the variable on which i have used hide is carrying the last value of internal table always..<< Removed >>
    Regards,
    Raman
    Edited by: Rob Burbank on Jun 30, 2009 10:41 AM

    I am sending a test program with same problem...iin this after line selection the field variable emp-name is displayin only last entry of internal table...
    *& Report  ZBASICX12
    REPORT  ZBASICX12.
    INITIALIZATION.
      DATA: BEGIN OF ITAB OCCURS 0,
            EMPID  TYPE ZTEMP-EMPID,
            EMPNAME TYPE ZTEMP-EMPNAME,
            END OF ITAB.
    START-OF-SELECTION.
      SELECT EMPID EMPNAME FROM ZTEMP INTO TABLE ITAB.
      SORT ITAB BY EMPID.
      LOOP AT ITAB.
        WRITE: / ITAB-EMPID HOTSPOT.
        HIDE ITAB-EMPID.
      ENDLOOP.
    END-OF-SELECTION.
    AT LINE-SELECTION.
      CASE SY-LSIND.
        WHEN 1.
          WRITE: ITAB-EMPNAME.
      ENDCASE.

Maybe you are looking for

  • Safari 6.0 (on Mac OS X 10.8) will not open https links

    Hi, I would not be able to post this if I were not using Firefox.  Ever since I upgraded to Mac OS X 10.8 with Safari 6.0, I have not been able to open a single https link.  Safari help says to make sure you are on the Latest OS, the latest browser a

  • Total Newb Deep in the Water.. please help ah friend Out!!

    greetings everyone, i am jumping ship from a windows 2003 server and going to apple. This is the configuration i am going to have to set up... Fiber Switch connecting an xserve,metadata controller,and another x server for a backup metadata controller

  • UPGRADING TO VISTA FROM XP ON T61P

    Hi, You might have addressed this but I dont see any exact matches so here goes.  I upgraded my 6460-DVU T61P from XP to Vista.  Most of the devices on the machine were given drivers automatically by vista, except for one which I have had a problem w

  • Validation or User-Exit during AuC settle (AIBU)

    Hi Gurus I'd like to perform some checks during AuC Settle using AIBU Transaction. Someone knows if is possible to do it using Exit, Badi oìr Validation ???? Thanks in advance for your reply. Claudio

  • Double-clicking to open files stops working after opening lots of files.

    When I double-click a file it will open the file in CS6 version 13.0.1, but then after a while double-clicking will no longer open jpeg or raw files.  I can open the same files by going to File > Open in the Menu Bar. When I am simply opening downloa