Error in condition

Hi guys,
When i am trying to fetch some data from DB, it seems an error in the while condition..
Is the following while loop a right way to proceed?
while(!d.compareTo(%><%=es.getDate(2) %><%)){ %>
// some codes
<%}%>d is a data type date (java.sql.Date)
es.getDate(2) fetches a date from DB(MySql)
the full code
try {
    String connectionURL = "jdbc:mysql://localhost:3234/";
    Connection connection = null;
    Statement statement = null;
     ResultSet rs = null;
      Class.forName("com.mysql.jdbc.Driver").newInstance();
     connection = DriverManager.getConnection(connectionURL, "root", "***");
     statement = connection.createStatement();
  Calendar cal1 = Calendar.getInstance();
     cal1.set(Calendar.YEAR, 2008);
       cal1.set(Calendar.MONTH, Calendar.AUGUST);
     cal1.set(Calendar.DATE, 4);
     cal1.set(Calendar.HOUR, 0);
     cal1.set(Calendar.MINUTE, 0);
     cal1.set(Calendar.SECOND, 0);
     cal1.set(Calendar.MILLISECOND, 0);
     long millis = cal1.getTime().getTime();
     java.sql.Date d = new java.sql.Date(millis);
        Calendar cal2 = Calendar.getInstance();
        cal2.set(Calendar.YEAR, 2008);
        cal2.set(Calendar.MONTH, Calendar.AUGUST);
     cal2.set(Calendar.DATE, 4);
     cal2.set(Calendar.HOUR, 0);
     cal2.set(Calendar.MINUTE, 0);
     cal2.set(Calendar.SECOND, 0);
     cal2.set(Calendar.MILLISECOND, 0);
        cal2.add(Calendar.DAY_OF_YEAR, 6);
        long millis3 = cal2.getTime().getTime();     
       java.sql.Date d3 = new java.sql.Date(millis3);
      String nameQuery = "select DISTINCT InstName from calendar  where (calendar.Date BETWEEN 'd' AND 'd3')";
       rs= statement.executeQuery(nameQuery);
       String str ="";
%>
     <table cellpadding="1" border="1"   cellspacing="1">
    <%      while (rs.next()) { %>
                  <tr >
                       <td width= "206" >
                       <% str = rs.getString(1); %> <%=rs.getString(1)%>
                       </td>
       <%
          String connection1URL = "jdbc:mysql://localhost:3234/";
           Connection connection1 = null;
          Statement statement1 = null;
            ResultSet es = null;
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          connection1 = DriverManager.getConnection(connection1URL, "root", "*******");
          statement1 = connection1.createStatement();
String eventQuery = "select Event, Date from calendar where (InstName = '" + str +  "'AND(calendar.Date BETWEEN 'd' AND 'd3'))";
  es= statement1.executeQuery(eventQuery);
                  while (es.next()){
                       while(!d.equals(%> <%=es.getDate(2)%> <%)){ %>
                                   <td>    </td>
                            <%     cal1.add(Calendar.DAY_OF_YEAR, 1);
                                 millis = cal1.getTime().getTime();     
                                 d = new java.sql.Date(millis);
                                } %>
                            <td><%= es.getString(1) %></td>
                    <%
                         } %>
               </tr>
         <%      }     
              rs.close();
              statement.close();
              connection.close(); %>
    </table>
     <% } catch (Exception ex){} %>  // here it shows an error " syntax error on token ",", delete this token
{code}
Edited by: frenchiee on Aug 6, 2008 3:42 PM
Edited by: frenchiee on Aug 6, 2008 3:43 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

This doesn't make much sense. You've got confused about which bits are to be rendered as content on the client and which bits are to be run as code on the server.
while(!d.compareTo(%><%=es.getDate(2) %><%)){ %>That will translate to something very roughly like:
while( !d.compareTo(
renderContent(es.getDate(2));
)) { ...You probably wanted:
while(!d.compareTo(es.getDate(2))){ ... Edited by: dcminter on 06-Aug-2008 16:50

Similar Messages

  • Pricing error: Mandatory condition ZPRI is missing

    Hi,
    When creating a credit memo request with reference to the original order we get the error: Pricing error: Mandatory condition ZPRI is missing.
    Checking in Analysis we get following information:
    "The condition is set as an automatic condition without access sequence. Stored condition formulas may deactivate the condition.
    Example: In the case of the NRAB free goods condition the minimum amount is not reached. In this case the condition is deactivated using the base value calculation formula 029."
    The condition type (statistical price) is setup not to be maintained manually and we want to keep it this way.
    As no access sequence exist I do not know how to add a condition record.
    I am also unable to trace any condition formulas.
    I have checked other credit memo requests for this sales area and none of them have ZPRI in their pricing analysis.
    Could anyone help me out?
    Let me know if you need more information.
    Thanks in advance!
    Best regards,
    Geert

    Hi
    Can you check the pricing procedure that is triggered in the Credit memo by going  to Pricing analysis..
    kinly check and maintain the same.
    Regards
    Damu

  • Urgently need solution for Pricing Error: Mandatory condition type missing

    Hello, All
    I am working on CRM 5.0 service module and I am facing a problem while creating a service order.
    When I enter the product in the service order it gives me an error
    "pricing error: mandatory condition type Z### is missing" even though I maintained the customer pricing procedure, the pricing procedure determination, and the condition record. The error shows that the pricing procedure is determined as the error shows the mandatory condition is determined but what I think is that it can’t find the condition record.  
    I already maintained the condition table and the condition record in the product master data but it does not pick the price, kindly help. Deserving points will be rewarded.
    Regards
    Jacopo François

    Hi,
    Open u r transaction which u r getting the error, Double click on product u ll get the item level info,   Select condition there u click on create icon, there u can define the condition.
                     OR
    While creating a sold to party check whether u  r entered a sales area data properly or not.
    Hope it helps u
    Gentila

  • Set "E" for V1801 Message: Pricing error: Mandatory condition ZR01 missing

    Dear All,
    I want to set below error message to appear as ERROR.
    Right now this message appear as a GREEN Color message. Therefore user can save the sales order without pricing.
    My requirement is to BLOCK the user from entering a sales order in to the system without pricing. (Not even a incomplete order)
    Message
    Pricing error: Mandatory condition ZR01 is missing
    Message no. V1801
    Please note I have done following configurations.
    - I have set ZR01 condition as MANDATORY in my pricing procedure. - B'se it's the price for the material
    - I have set "Manual Entry not possible" for this condition type - Price should always pick from VK11, User should not be able to enter manually.
    If Price is not there, user should not be able to create a SO.
    NOTE:
    In the transaction OVAH, I cant see this message no to set as E.
    even in SE91, I don't see a place to set the message type.
    Is there any other way to set this message as "E" & to prevent user from entering a SO to the system without price???
    Appreciate your help !

    Dear Senya,
    Your suggestion works really fine with me.
    It didn't make that message an ERROR message  type. But it prevents user saving any incomplete document, where in my case it's pricing. So user has to complete the pricing in order to save it.
    Thanks a lot for the help !
    All others, thanks a lot for your suggestions !!!
    Edited by: Anupa Wijesinghe on Aug 10, 2009 6:41 AM

  • "Item 10     IPC:TTE:Calculation error: Pricing error: Mandatory condition & is

    Hello Experts,
    I need your help to solve this TTE pricing error.
    In Service Order, I am getting this error message for one particular material only
    "Item 10     IPC:TTE:Calculation error: Pricing error: Mandatory condition & is missing".
    Remaining materils I am not getting this error message.
    Please proivide your suggestions to crack this.
    Thanks

    Hi,
      This message come when you caculate 0TTE when doing cross country transactions . Check if this codition needs to be caculated for your order. If it is not required you should not make call .You can try to eliminate this error bu uisng the BADI BADI_TTE_DOCUMENT

  • Convert Pricing Error : Mandatory condition PR00 missing as a red error

    HI GURUS,
    May I know if I can make the error "Pricing error : Mandatory condition PR00 missing" as a no-go red error?  We would not want to be able to save the sales order, then create the outbound delivery and only to reverse them after not being able to post the outbound delivery.  Making it a no-go error will help us save time and effort if we commit mistakes in the sales order encoding.
    Thanks a lot for your prompt reply.
    Regrds,
    Frances

    Hi
    Rahul
    The error is becose of two reason
    1. Check have u entered plant or not? If yes then
    2. Mintain PR00 condition thr. Tcode VK11 and do the update pricing.
    This two are the possibilities please check and try.
    Hope this will help you.
    Thx.

  • DMEE: Error in conditions for node Invcr: reference ID IDTP is not permitte

    Hi  Friends ,
    I have problem with nodes in DMEE .
    When child node is from a Exit funtion moduel , not from the Payment FPAYH/FPAYP/HX structures, is empty . I dont want the parent node to be displayed .
    EX:
    <INVCR>  -
    Should not display when node2 is empty
              <ID> -
    empty/or values from Userexit.
    I am using No mapping for parent nodes.
    trying to give Reference ID for childnode and using it in parent node conditions and i guess using a lower level REFId is not permitted . My DMEE is giving following error.
    Error in conditions for node Invcr: reference ID IDTP is not permitted
    Message no. DMEE_ABA305
    Diagnosis
    You have specified type 3 in the conditions, meaning that the argument is a reference ID. Your entry in the argument field, however, is not an existing reference ID.
    I did define the Reference NODE ID ,ID

    Hello Srikanth,
    The problem is with the semantics of the code you are writing.
    Refer to the following code to get Account ID from the value node:
    data: lv_account type string.
        lv_account = lv_value_node->get_property_as_string( iv_attr_name = 'ACCOUNT_ID'  ).
    or
    data: lv_account type bu_partner.
      CALL METHOD lr_value_node->get_property_as_value
        EXPORTING
          iv_attr_name = 'ACCOUNT_ID'                            "#EC NOTEXT
        IMPORTING
          ev_result    = lv_account.
    I hope this helps.
    Thanks
    Vishal

  • PowerCenter8.6.1:WinS2003:ERROR: Unexpected condition at file:pmmetrics.cpp

    Hi,
    Win Serv 2003
    PowerCenter 8.6.1 downloaded from edelivery.
    MS Windows Latin 1 (ANSI), superset of Latin1
    Repository Service start sucsesfull.
    Integrate service with message "The service did not start. Check the log for more information. "
    the log for domain contain such for powerCenter 8.6.1:
    Service Manager
    ERROR
    ?? ??? 28 10:46:10 2010
    Domain Monitor
    SPC_10008
    Service Process [BI_IntServ] output error [ERROR: Unexpected condition at file:[\861_build\build\powrmart\common\utils\pmmetrics.cpp] line:[2092]. Application terminating. Contact Informatica Technical Support for assistance. ].
    the log for domain contain such for powerCenter 8.6.1 hotfix6 :
    Domain Monitor
    SPC_10008
    Service Process [BI_IntServ] output error [ERROR: Unexpected condition at file:[\861HotFix\build\powrmart\common\utils\pmmetrics.cpp] line:[2111]. Application terminating. Contact Informatica Technical Support for assistance. ].
    Service Manager
    pls help me. I am new in PowerCenter and not good in English.
    The system installed as part of Oracle BI Appl.
    Edited by: Vash_Stampido on Jan 29, 2010 6:39 PM
    Edited by: Vash_Stampido on Jan 29, 2010 6:39 PM

    Launched on another machine, WIN XP / PowerCenter 8.6.1
    Used codepage "MS Windows Cyrillic (Slavic)"
    Services start normal,
    but when you try to import the repository (which is given in the BI APP), the next error became:
    C:\PowerCenter\server\bin>PmRep restore -u Administrator -p Administrator -i S:\
    !BI\BI_doc_install\inst\inf_repository\Oracle_BI_DW_Base.rep
    Informatica(r) PMREP, version [8.6.1], build [183.1218], Windows 32-bit
    Copyright (c) Informatica Corporation 1994 - 2008
    All Rights Reserved.
    This Software may be protected by U.S. Patent Numbers 6,208,990; 6,044,374; 6,01
    4,670; 6,032,158; 5,794,246; 6,339,775; 6,850,947; 6,895,471; 7,254,590 and othe
    r U.S. Patents Pending.
    Invoked at Fri Jan 29 18:48:14 2010
    Failed to execute restore.
    Completed at Fri Jan 29 18:48:15 2010

  • Approval Overtime iView Error - "Exception condition "PROFILE_NOT_FOUND"

    Hi There
    I have looked at every forum thread loaded on this site and if I missed something I do apologise.
    I keep on getting error - "Exception condition "PROFILE_NOT_FOUND" raised., error key: RFC_ERROR_SYSTEM_FAILURE"
    I have maintained what I deem the relevant configuration in my view and also updated the user parameters.
    SAP_LINE
    Field Selection Detail Screen        PERNR   Personnel Number
    Field Selection Indiv. Record View   PERNR   Personnel Number
    from the default
    Field Selection Detail Screen        ESS     Personnel Number
    Field Selection Indiv. Record View   ESS     Personnel Number
    CATS Approval: Individual Record - PERNR
    CATS Approval: Details - PERNR
    Approval Profiles - ZLIN
    Any help will be appreciated.
    Regards
    Maahir

    Dear Maahir,
    Have you defined a CATS Data Entry Profile in the CVR user parameter? Would you please also check whether the  default 'ESS' profile does exist in your system? The Manager have an infotype 105 in valid period right?
    Normally this error comes on ESS when the system is looking for a CATS Data Entry Profile, which has not been assigned to the user.
    This CATS profile can be assigned to the user either via the User Parameter 'CVR', with the name of the Date Entry Profile entered as the parameter value, or by creating a default ESS Data Entry Profile.  R/3 can then assign a profile to the employee even if the user parameter CVR has not been explicitly set.  The CATS Data Entry Profiles are stored in the table TCATS.
    For more information on creating the default Data Entry Profile, see the IMG, under Cross-Application Components -> Time Sheet -> Specific Settings for CATS -> CATS regular -> Set Up Data Entry Profiles.
    For more information on the CVR user parameter setting, see the SAP Library, under Cross-Application Components -> Cross-Application Time Sheet (CATS) -> User Interfaces -> CATS regular.
    As it is in MSS when approving, here I am giving you some information which will help you in this regard (PROFILE_NOT_FOUND):
    In the IMG (transaction SPRO), go to
    - SAP Customizing Implementation Guide
      - Cross-Application Components
        - Time Sheet
          - Specific Setting for CATS regular
            - CATS regular
              - Approve Working Time
                - Define Field Selection for Individual Approval View
                - Define Field Selection for Detail View
    Hope the above information should help.
    Best Regards,
    Deepak..

  • Dump error  Exception condition "DATA_INCONS_IN_EXIT_MANAGEM" raised.

    hi ppl,
              I have created a simple badi,when i call this badi  its showing the dump error  Exception condition "DATA_INCONS_IN_EXIT_MANAGEM" raised.

    HI,
    I have checked all of them
    Actually i am trying this example  from saptechnical. com
    Even i have tried others examples also but everytime I am recieving dame dump
    Exception condition "DATA_INCONS_IN_EXIT_MANAGEM" raised.*
    Edited by: Sumesh Nair on Apr 24, 2009 7:08 AM
    Edited by: Sumesh Nair on Apr 24, 2009 7:09 AM
    Edited by: Sumesh Nair on Apr 24, 2009 7:09 AM

  • (no inline validation error displayed)) condition type and plsql expression

    Hello all
    Is it possible to use a plsql expression (eg: (:REQUEST = 'PXX_LIST_ITEM')) AND (no inline validation error displayed)) condition type at the smae time ?
    HTMLDB must be testing a substitution variable when the conditional display section is set to 'no inline validation errors displayed'.

    Hello,
    I don't know for sure because I never used it, but I think you can use the pl/sql variable htmldb_application.g_inline_validation_error_cnt. This variable identifies number of inline errors found.
    You can also check if the variable htmldb_application.g_notification contains a value.
    Fred.

  • Pricing error:Mandatory condition xpi1(intercompany price) is missing

    when i wanted to create Return order with ref to Invoice,its throwing an error Pricing error:Mandatory condition xpi1(intercompany price) is missing.Infact this condition type is there in Order,but its missing in Invoice,so not able to create Return order.What cud be the reason for the condition type missing in Invoice????

    In T. Code V/06 go to this condiition type XPI1 and in control data 2 - check "Inter-company billing condition". This makes this condition to flow in the inter company invoice. Then you will be able to process the returns wrt to the invoice.
    In the copy controls from Inv to Retruns order , T Code VTAF, at the item level, use pricing type D or G(G if you want to redetermine taxes)
    Hope this helps
    Regards
    Sai

  • Pricing error : Mandatory condition ZHPR is missing

    The user is doing sales return.
    In VF02, The prices are not updated and ended up with the error " Pricing error : Mandatory condition ZHPR is missing"
    He used VK11 and updated the price and also tried in all key combination.
    Still it is showing an error.
    Please help.

    Hi,
    This is very common error, you can ref. through sdn.forum, however
    1, First check the Pricing procedure for  your condition ZHPR, also check if any requirements assigned  to your billing doc.
    2, Please check  the analysis of the pricing in u201CVF02u201D, Just click on the condition u201CZHPRu201D and view the reason on right side.
        I am sure you would find the fault.
    Regards
    DSR

  • Pricing error mandatory conditions TTE are missing

    Daer all,
    by creating an sales-order via transaction CRMD_BUS2000115 we get the following 2 errors after the input of one sales-position:
    - Item 10     No Tte Input document found B7FA9743CEC6A21DE1000000C0A84D08     
    - Item 10     Pricing error: Mandatory condition 0TTE is missing     
    The oss-notes 519942 (and the depending ones) did not lead into a solution. The simulation TTE_SIMULATION of the pricing was successful.
    Has anybody an idea especially, what appoints the relevant customizing settings ?
    Thanks in advance for any feed-back.

    Hi Michael
       CRM are dtermined using the condition technique(E.g.condition type MWST or UTXJ).Have you assisgned the Business partenr Tax Classification?.If the billing is carried out in the CRM system,tax determination will be accomplsihed by using the TTE.The condition typeOTTE triggers the call of the TTE.Maintenance will take place in CRM.
    PLEASE CHECK
    Business Partner Classification
    *Assignment of tax types and groups
    *Tax Calculation per country and Region.
    *Tax numbers for NATURAL PERSON
    Product Tax Classification.
    *Assisgnment of tax types and Groups
    *Tax Calculation per country and Region
    Organisational Unit-Business place
    Customizing of Tax Types and Tax Groups for BP and Products.
    I hope this helps!!

  • Pricing error: Mandatory condition Taxes via TTE (0TTE) is missing

    Hello All,
    For Complaint in CRM change in default item category gives the captioned error. The error is there for all Sales Organisations.
    Any suggestion how this error can be removed.
    Thanks & Regards,
    DP

    Hi PePe,
    Thanks for the response. Yes in the pricing procedure condition 0TTE is mandatory. We use this pricing procedure in some other transactions where tax is calculated.
    When we add an item (let say item 160) the defaulted item category does not result in any error , but when we change it to a different item category which is not price relevant this error pops up for item 110. Moreover this error disappears with some dummy change or with an Update price on Conditions tab.
    We in fact tried to trace the TTE for different instances and it fails with an error "TTE processing terminated" which eventually results with error "Pricing error: Mandatory condition Taxes via TTE (0TTE) is missing" on the order.
    Any suggestions what all needs to be checked and how this error can be diffused?
    Regards,
    DP

  • Pricing error - Mandatory conditions ZMWS DIFF are missing.

    Hi All,
    We have the error in package quotation Mandatory condition types (ZMWS) & (DIFF) is missing. We check randomly with some customers error is not appearing.(Error is occurring only for particularly ONE customer.)    
    Initially while entering the details in document (customer no., material, sales areau2026) before saving the document the error message is u201CInternal Error during Pricingu201D.
    After saving the document error is occurring as mentioned below.
    Error messages:   
    1. Pricing error: Mandatory condition MT Output Tax (ZMWS) is missing
    2. Pricing error: Mandatory condition Rounding Off (DIFF) is missing.
    Error message is clearing after some work around in the documents.   
    1. At header level, change the currency from CHF to EUR and then back to CHF.This will get rid of Round condition(DIFF).
    2. And to get rid of out put tax, Ship to address (at header partner tab) by change the country from CH to DE, and changing  Transportation zone and Post code country specific to DE. Close the address window and open it again. Change back the address to the original CH and close the window. Out put tax (ZMWS) error will go away.
    Kindly any one can give your valuable inputs on this issue. Your help will highly appreciate.
    Thanks in advance.
    Regards
    Bala

    Hi Michael
       CRM are dtermined using the condition technique(E.g.condition type MWST or UTXJ).Have you assisgned the Business partenr Tax Classification?.If the billing is carried out in the CRM system,tax determination will be accomplsihed by using the TTE.The condition typeOTTE triggers the call of the TTE.Maintenance will take place in CRM.
    PLEASE CHECK
    Business Partner Classification
    *Assignment of tax types and groups
    *Tax Calculation per country and Region.
    *Tax numbers for NATURAL PERSON
    Product Tax Classification.
    *Assisgnment of tax types and Groups
    *Tax Calculation per country and Region
    Organisational Unit-Business place
    Customizing of Tax Types and Tax Groups for BP and Products.
    I hope this helps!!

Maybe you are looking for

  • Dial a phone number in contacts with a prefix adde...

    I would like to automatically add a prefix of 4 digits to the phone number when I make an IDD call. Can someone advise how to configure N95 to have this feature. Thanks!

  • REPORT AND STATUS UPDATES - EXCHANGE

    Hello I have installed the Rollup 5 for Exchange 2010. So far so good. The issue is that in "" Updates Needed "" point, tells me that the machine needs the Rollup 4 and 2 ... Why can it be?? (I think It should not appear in the report ; NO need more

  • Subtitle Software for Mac?

    I am looking for anyone who has any info on software to do subtitling. Anyone here successfully doing this?

  • Where do taken pictures go on N958gb

    Hi, I'm getting really frustrated about the way items dissapear to unknown locations on this phone. I've taken a picture and want to get it on my pc. It's nowhere to be found with the file manager. The only place I can find it, is with the search fun

  • Tax code does not exists in TAXINN

    While doing FB60 and FB70 message shows Tax code does not exists in TAXINN. Since Tax code A0 and V0 are already assigned to company code and also maintained condition type, tax procedure, and condition record. Regards,