Two if condition in JSTL

can I use and in if statement in JSTL, I f I want to change the following code to JSTL , what should I do
if (!(Tassistant.equals("on"))&&         (!TassistantStart.equals("dd/mm/yyyy"))&&         (!TassistantUntill.equals("dd/mm/yyyy")))
do I have to use ? can I use and to connection then I don't need that much close </c:if>
<c:if test="${found.tassistant!='on'}"> }<c:if test="${found.tassistant!='dd/mm/yyyy'}"> </c:if>               </c:if>
Thnak you!

You can just use the same operators in EL.
And in the future, please choose forum carefully. Posting a very simple question at a wrong forum doesn't let you overcome as smart.

Similar Messages

  • Two pricing conditions for FB60

    Hi
    I want to post two invoices through. In one case, i will book normal invoice with 10.30% of service tax on total basic price. So i will enter entire invoice amount and tax code and post the entry.
    Another scenario is that, i want to calculate 10.30% of service tax on 10% of the invoice. In that case, effective tax rate would be 1.030%. In FV11, i do not want to enter effective rate against that condition type. It is because my basic amount (in the report) will be 100% on which 1.030% tax will be calculated.
    Hence my reporting is wrong. I want to populate basic amount as 10% of the invoice on which 10.30% is calculated. I think this is possible only with the help of creating separate pricing condition. So i am asking if two pricing condition is possible in FB60.

    Hi,
    I am curious where do you use VF11 condition recored in FB60 transaction.
    In FB60 transaction you can enter tax code which is different from condition record.
    Could you explain more detailed pls.
    BR Tarik

  • Two different condition types in one report

    Hello,
    i have a problem with the conditional display of a report.
    I want to use two different condition types for one report.
    For example I want to show the report only when the page is not in printer friendly mode and when the value of an item is NULL.
    Is that possible?
    Has anyone a solution for this problem?
    Thank you,
    Tim

    Tim,
    you can use
    IF V('PRINTER_FRIENDLY') = 'YES' AND :P1_ITEM IS NOT NULL THEN RETURN FALSE;
    ELSE RETURN TRUE;
    END IF;
    in the Conditional Display picking PL/SQL Function Body returning a Boolean.
    Denes Kubicek

  • Two percent condition Amount

    Hello,<br>
    <br>
    I have two percent condition at item level. When I create a sales orders with two conditions, those conditions don't have the same amount. For example:<br>
    <br>
    Line Amount 100$<br>
    First discount 10% = 10$ (100 * 10 / 100)<br>
    Second discount 10% = 9$ (90 * 10 / 100) <br>
    <br>
    I would that the two discount works with the total line amount(100$). How can I do that?<br>
    <br>
    Thank you very much,<br>

    Hi
    Kindly check the from and to column given in the pricing procedure for the second discount in the t code V/08
    Regards
    Damu

  • We are using two pricing conditions 1st is ZBP1 Automatic pricing condition

    Dear Experts,
    We are using two pricing conditions 1st is ZBP1 Automatic pricing
    condition type, 2nd is ZBP2 manual pricing condition type. While
    creating sales order, when our sales users entering old pricing date, SAP
    system automatically proposing the manual condition ZBP2 (Manual)instead
    of ZBP1(from condition records)
    We want to restrict this behavior of the system. System should not pick
    the manual condition ZBP2 if the automatic pricing condition ZBP1 exist
    for that particular line item (irrespective of the pricing date). We
    donu2019t want to use manual conditions to all the other customers except
    intercompany customer.
    Please give your comments
    Regards,
    MH

    Hi,
    It would be better if you remove the Check Box as mandatory for that Manual Condition Type in the Pricing Procedure.In such case , system will not ask you to enter the Manual Condition Type , where ever it is required , Sales Users can enter it manually.
    But still Sales User try to give manually then you have to make a small coding in the new Routine at Manual Condition Type in the Pricing Procedure that if Condition Record for automatic Condition Type exits then system should not allow to enter it manually.
    Best Regards,
    Ankur

  • Two valid condition records loaded in CRM

    Hi
    I had created condition records for one of my condition type in SAP R/3 which were loaded into SAP CRM system.  Now when new condition records are created for the same condition type then old condition records in CRM are not terminated. So I have two condition records in R/3 but the old one is no more valid but CRM system has two conditions and both are valid. Now when an order is created in CRM then the condition type has two values summed up.
    How can I resolve this issue so that when a new condition records is created in R/3 then the old conditions in CRM are terminated and the new conditions are only valid?
    Thanks for your help
    Regards
    Javed

    Hi Anji,
    have you checked the condition maintenance groups for your condition type in CRM? In addition to the step you did in MNTNCT you need to assign your condition types in CRM to a condition maintenance group to allow maintaining them in CRM.
    You also need to assign that maintenance group to the context you want the conditions to be maintened in. All that can be found in SPRO in CRM under master data.
    Try if that helps you.
    Best regards,
    Manuel

  • Most recent date with two other conditions met

    Ok, so I'm sure somebody is going to suggest that I do a search first before posting on here.  So let me assure you, that I have exhausted all search possibilities that I could possibly think of before registering to post on here.  I've read a lot of good suggestions that got me just as far as I was getting on my own, because I couldn't find any posts of somebody asking exactly what I'm looking to do.  I have tried quite close to 100 different formulas without achieving the desired results.
    I'm a pilot, and I track all of my flights myself in a very well organized(I think so ) Numbers spreadsheet that I've been tweaking and perfecting over the past few years.  I have created plenty of formulas in it, and they all work great...except ONE.
    I've created a simplified version of the columns I am trying to match specific conditions with.  Essentially, I need the formula to return the most recent date(column 1), that is completed during a night time flight status(column 2), that is equal to or greater than 1.0 flight hours(column 3).
    As you can see, by evaluating the table below, the correct formula should return to me:        8-4-13
    The closest I've come to getting the correct results was with a "LOOKUP" formula, but I could not figure out how to get it to properly assess whether it was equal to or greater than 1.0 hours of flight, thus returning me the wrong date EVERYTIME(the most recent night flight period).
    I'm sure I've gotten close at least a few times, but I need some help getting this final formula figured out.  I really appreciate anybody's input on this.
    Date
    Flight Status
    Flight Hours
    8-1-13
    D
    2.4
    8-2-13
    N
    3.0
    8-3-13
    N
    1.1
    8-4-13
    N
    1.3
    8-5-13
    D
    2.2
    8-6-13
    N
    0.5
    8-7-13
    D
    1.1

    This may work and requires and extra column in your Data entry table (the one you provided in your post).  You can hide this new column.
    D2=IF(AND(C2>=1, B2="N"), A2, "")
    select D2 and fill down as needed.
    The table on the right is a summary table and is set up as follows:
    B2=MAX(Data :: D)
    I hope this is helpful

  • Struts validator for two fields(conditional required)

    Have a Drop down and an input field.
    When user selects "Type 1" from drop down only then the input field is required. otherwise it's not a required field.
    Looking at the validator guide in struts maybe I have to create a new validator rule which should check if drop down value "Type 1". But not sure how to code to say that the input field is required here.
    How to do this?
    Thanks.

    Yes you have to check for drop down value "Type 1".
    when you hit on submit it goes to the validation function right ...
    there add a condition. Check if tpe 1 is selected , if so proceed validation the text box , else skip that validation and come out.

  • Two Different conditions for BED in excise invoice

    Dear Team,
       I am using condition type JEXP condition type for automatic condition and for excise invoice, but for some specific cases my client wants to use one more condition for BED as manual condition where he want to enter BED amount as manual and ECS and HECS should calculate automatically on manual BED. He wants that other procedure with JEXP should be continue parallaly. But during the creation of excise invoice only one value is being passed to excise invoice for BED as I can maintain only one condition for "maintain excise defaults." In manual scenerio my ECS and HECS values are reflecting in excise invoice but BED is zero because at the place of BED JEXP is maintained in excise defaults. Kindly suggest how can I use both the scenerios to create excise invoice.
    Regards,
    Neeraj

    Hi
    I  have faced this problem in each of my projects. So sharing my idea of work around.
    Create a Condtion type - ZMAN (Manual excise fixed amount ) and ZMEX for manual excise in percentage and adjust his just above you Excise condtion type .
    100.           ZMAN Statistical  (Manual excise in Fixed Amount)                          Created Routine - 901
    105            ZMEX   Statistical (Manual excise in percentage )                             Created Routine  901
    110            JEXP    (BED)
    *If ZMAN is maintained then the KBETR (Amount)  is copied to JEXP
    *}   INSERT
    FORM FRM_KONDI_WERT_901.
    *{   INSERT         MCDK900627                                        1
    *FORM FRM_KONDI_WERT_901.
    DATA : ZMAN_KBETR TYPE KOMV-KBETR,
           ZMAN_KWERT TYPE KOMV-KWERT,
           ZMEX_KWERT TYPE KOMV-KWERT.
    DATA : FLAG_ZMAN(1),
           FLAG_ZMEX(1).
    READ TABLE XKOMV WITH KEY KSCHL = 'ZMAN'.
         IF SY-SUBRC = 0.
            FLAG_ZMAN = 'X'.
            ZMAN_KBETR  =   XKOMV-KBETR.
            ZMAN_KWERT  =   XKOMV-KWERT.        " CHANGE ON 3.7.2008
          ENDIF.
    READ TABLE XKOMV WITH KEY KSCHL = 'ZMEX'.
         IF SY-SUBRC = 0.
            FLAG_ZMEX = 'X'.
            ZMEX_KWERT  =   XKOMV-KWERT.
          ENDIF.
    READ TABLE XKOMV WITH KEY KSCHL = 'JEXP'.
    IF SY-SUBRC =  0.
       IF FLAG_ZMAN = 'X' AND FLAG_ZMEX = ' ' .
             IF ZMAN_KBETR > 0.
               XKWERT = ZMAN_KWERT.                "CHANGE ON 3.7.2008
               XKOMV-KBETR = ZMAN_KBETR.
               MODIFY XKOMV INDEX SY-TABIX.
              ENDIF.
        ELSEIF FLAG_ZMAN = ' ' AND FLAG_ZMEX = 'X' .
               XKWERT = ZMEX_KWERT.
        ELSEIF FLAG_ZMAN = 'X' AND FLAG_ZMEX = 'X' .
                XKWERT =  XKOMV-KWERT.
               MESSAGE  'Maintain either ZMEX or ZMAN' type 'S'.
         ENDIF.
    ENDIF.
    *break abap.
    *ROUNDING
    READ TABLE XKOMV WITH KEY KSCHL = 'JEXP'.
    if sy-subrc = 0.
    if komk-vkorg = 2000 and ( komk-vtweg = '10' or komk-vtweg = '30' ).
       exit.
    else.
           DATA : BEFORE_ROUND TYPE PC207-BETRG,
                  AFTER_ROUND TYPE PC207-BETRG.
            BEFORE_ROUND = XKWERT  .
    CALL FUNCTION 'HR_IN_ROUND_AMT'
      EXPORTING
        AMOUNT        = BEFORE_ROUND
        RNDOFF        = 100
       RNDLMT        = 'N'
    IMPORTING
       RETAMT        = AFTER_ROUND
      DLTAMT        =
    XKWERT = AFTER_ROUND.
    endif.
    *endif.
    *}   INSERT
    ENDFORM.
    Here we have created a routine 901 - So when i put any value in say ZMAN / ZMEX , the same vaule gets copied in the JEXP my baisc excise condition type . So when i post only JEXP is posted.
    At any point of time - only one condition type will be used - so in this we have written the same code.
    make sure you create them as Manual Statistical item condition , where the user has to press F4 and pick any one when he want to use this manual concept.
    You can ask you ABAPer to create this routine and write and map the above logic.
    The value of manual excise conition should get copy to you main excise condition. Also followed up with rounding of the values
    This will work definately.
    Thanks................Rishi

  • Query with two where conditions

    HI
    SELECT ENAME FROM EMP WHERE
    SAL > 1000 AND JOB='CLERK';
    How to implement in CMP(Entity bean)
    thank u

    at this point mapping to do this king of query would be on the container specific file. I will tellyou how this is done on a Orion App server. I bet that others are close to the same.
    first you make a finder method in your bean for the enploy name:
    Collection findBigClerk();
    Orion generates a file from the ejb-jar.xml file called orion-ejb-jar.xml. this is where the O/R mapping is changed for the beans.
    each method in a bean has short definition
    <finder-method query="EMP.SAL>1000 and EMP.JOB='CLERK'">
    Assuming that the CMP is mapped to the EMP table when you call findbigClerk it will add the above query to as a WHERE clause.
    Then get the name from the interface.
    Again, this is how I would do this on an Orion App server. Others will be simular until O/R mapping is moved from server-specific to the ejb-jar.xml file
    hope this helps a little

  • Plain SQL Conditional WHERE Clause with two sub-selects

    Hi SQL Experts,
    I need a bit quick of help with a query.
    This is a "select" statement for an OBI repository phyiscal table source object.
    So I cant put PL/SQL or Stored Procedures in it. I just need
    to have two different conditions/selects depending on the user role (this information comes
    from the session).
    The above, does not work:
    --------------ORA00905. 00000 -  "missing keyword"
      SELECT OFFICENO FROM orgunit
      WHERE
      CASE WHEN 'SESSION_VARIABLE' LIKE '%globalmanager%' THEN  
            ASSIGNEDOFFICES =
            SELECT DISTINCT ASSIGNEDOFFICES
            FROM USERSTABLE INNER JOIN orgunit ON
            orgunit.OFFICEKEY = USERSTABLE.OFFICEKEY
            WHERE USERSTABLE.USERNAME ='VALUEOF(NQ_SESSION.USER)'
      ELSE
            OFFICENO =
            SELECT DISTINCT OFFICENO FROM USERSTABLE
            INNER JOIN orgunit ON
            orgunit.OFFICEKEY = USERSTABLE.OFFICEKEY
            WHERE USERSTABLE.USERNAME ='VALUEOF(NQ_SESSION.USER)'
      END;   
    Can anyone help?

    Hi,
    I can't tell what you want to do just by looking at code that doesn't do it. Maybe:
    SELECT  officeno
    FROM    orgunit
    WHERE   (    session_variable  LIKE '%globalmanager%'
            AND  assignedofficies  IN
                     SELECT  assignedoffices
                     FROM    usertable  u1
                     JOIN    orgunit    o1  ON o1.officekey = u1.officekey
                     WHERE   u1.username    = 'VALUEOF(NQ_SESSION.USER)'
    OR      (    NVL ( session_variable
                     )        NOT LIKE '%globalmanager%'
            AND  officeno        IN
                     SELECT  officeno
                     FROM    usertable  u2
                     JOIN    orgunit    o2  ON  o2.officekey = u2.officekey
                     WHERE   u2.username   = 'VALUEOF(NQ_SESSION.USER)'
    There might be some simpler and more efficient way, depending on your tables and your reuirements.
    The condition u2.username   = 'VALUEOF(NQ_SESSION.USER)' is almost certainly not what you really want.
    Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002#9362002

  • Calendar in JSTL

    Hi ,
    I am using JSTL in JSP and there is an If statement which says
    if (Calendar.get(Calendar.YEAR)!=2000){
    do some thing
    I need to know how to write that if condition in JSTL.
    J4v4Guru.

    j4v4guru wrote:
    Hi ,
    I am using JSTL in JSP and there is an If statement which says
    if (Calendar.get(Calendar.YEAR)!=2000){
    do some thing
    I need to know how to write that if condition in JSTL.
    J4v4Guru.no JSTL docs available to you? think about <c:if> tag.
    %

  • Double PR00 condition at item level in the IC

    Hello SAP Gurus,
    I need your help with this issue.
    Scenario: I enter the Interaction Center UI and start creating a sales order with "MXN" as the currency at header level, I enter a product in "USD" and price is not calculated automatically and has to be enter manually.
    When going into the item details two identical price conditions appear:
    PR00 - ....... - USD (blank)
    PR00 - 1.34 - USD (the price I entered at header level)
    I tried to get rid-off one but ít wont let me,a messages is generated: "Cannot erase condition, it´s mandatory".
    I´ve also tried matching the header and item level currency but the same thing happens; the price is enter manually and two PR00 conditions are created.
    This cannot be left like this since it generates errors at the invoicing stage.
    Your help will be trully appreciated.
    Thanks.
    May
    PS.  I am working in the Interaction Center UI / ERP Order / CRM 7.0

    Found the reason and solution for this error in my situation, which has to do with how the prices are assigned to the material.
    The prices for the materials are maintain in a List of Prices per volume uploaded in ECC.  This list has serveral volumen scales, and each scale has a different price (Logic: as the volume increases, the price decreases).  The issue here is that the initial scale for some materials was to set to high and sales orders were being created with quantities under that scale, as a consequence the price was not calculated automatically because it didnt fell under any scale and the by manually entering the PR00 condition, somehow it would create an extra could not be erase.
    Example:
    - Material: ABCD
    - List of Prices per volume for ABCD: Scale 1) 1000KG - 1499KG -> 2.50 USD  /  Scale 2)1500KG - 1999KG -> 2.44 USD  /  Scale 3) 2000KG - 2499KG -> 2.38USD
    - Sales Order: Material ABCD / Qty order: 550KG = MISSING PR00 MANDATORY CONDITION
    - Reason: QTY 550 KG is out of scale
    The solution proposed, was to review the scales and if sales orders are being created in lower quantities, they need to set a low volumen for the initial scale.

  • How to change exchange rate type for specific pricing condition type

    Hello every one,
    I have a requirement for billing ie VF01.
    currently  all the exchange rate are being calculated with exchange rate type 'M' by default.
    but now client want it should calculate exchange rate with type 'E' for two pricing condition type for all others it should calculate with type 'M'
    Please any body can help me with the exit and code which i can use.
    I have checked exits SDVFX008.
    but how to change exchange rate with type 'E' only for two conditions.
    as changing exchange rate at document header will change exchange rate for all condition type.

    You need to assign KOMK-KURST = 'E', for those two condition types. If it had been item number specific, you could have used USEREXIT_PRICING_PREPARE_TKOMK(RV60AFZZ).
    Do one thing, put a breakpoint on FM 'PRICING' and then do selective runtime analysis.
    Check whether any user exit/BADI/ explicit enhancement are available when condition types are processed in a loop. If nothing is available, try implicit enhancement.
    Link to refer for selective runtime analysis - Runtime Analysis for VOFM
    Also try with VOFM requirements ( not sure whether changing KOMK-KURST is permissable in requirement as normally  we only set sy-subrc values to suppress/allow condition types ). Don't forget to assign requirements against condition types in pricing procedure.

  • How to control the pricing condition in billing document?

    Hello Experts,
    Greetings!
    We are using two pricing condition.One is PR00 another one is VA00.PR00 is a mandetory condition & prices comes from condition record only.Users are not allowed to enter pr00 manually.
    Now we have created one more condition VA00 by which user can  increase the price for some particular customers.
    Now if the user do enter the condition VA00 in sales order & if it beyound credit limit than system gives informative message & blocks for the delivery.
    Now the issue is if they do enter the condition in billing documents instead of sales order system does not check the credit limit at billing level.It allows invoice to be generated even beyond the credit limit.
    How can we control this? Is it possible that the condition VA00 can only be used for sales order only.It will not allow to enter at billing time?
    Plz suggest how can we resolve this issue in order to control the credit limit.
    Any help would be highly appriciated.
    Best Rgds
    Nitin

    Hi,
    you can use a surcharge condition type which calculates a percentage over the basic price price that is PR00 in your case.
    insert it in the pricing procedure just below the PR00
    and remember to maintain FROM & TO step no. of PR00, this condition should be manual entry alllowed
    and insert one more condtion type in pricing procedure that will add the values of above 2 condtions .
    make above condition type w/o account keys and assign account ker erl to this new condtion type,
    STEP NO.     COUNTER     C TYPE     DESCRIPTION     FROM      TO     R     ACCOUNT KEY
    8     0     PR00     BASIC PRICE                                           YES     
    11     0     ZSUR     SURCHARGE     8     8     YES     
    13     0     ZPR0     Price (Gross)     8     11     YES     ERL
    in condition type of ZSUR(surcharge)maintain "c"
    REVERT IF HELPFUL
    Mohit Singh

Maybe you are looking for

  • IPod classic won't sync

    Two iTunes updates ago my iPod classic stopped being recognized by iTunes and I can not longer sync my music. I tried uninstalling and installing an older version of iTunes but that didn't solve anything. My laptop recognizes my ipod though. and my i

  • Some websites are not loading

    Hello, some of the website www.facebook.com  , www.businessinside.com are not at all opening, it doesn't show any error, but seems to be hang/ i tried all known option, clear dnscache, reset safari didn't work, Even other browser in mac book also sam

  • Migrate from  Ingres DB to Oracle

    Hi Friends, I have to migrate from Ingres DB to Oracle and the application developed by Oracle Forms.How can we do this any process of docs. From my research,I came to know about Transparent gateways,But Oracle will support for this or not I'm not su

  • API or Scripts to generate JCA files of DB Adapter Programmaticaly

    Is it possible to generate the DB Adapter configuration files programmatically, either use ANT scripts or using JAVA API. My requirement is basically is to generate set of DB Adapters for a set of tables which is defined in some XML or properties fil

  • Potential Security Hole with 802.1x and Voice VLANs?

    I have been looking at 802.1x and Voice VLANs and I can see what I think is a bit of a security hole. If a user has no authentication details to gain access via 802.1x - i.e. they have not been given a User ID or the PC doesn't have a certificate etc