Pl help,i need to validate the data in UI with my database-mysql

Hello All,
pl help.
i'm a newbie with jdbc and mysql
i'll tell my requirment -i need to check whether the email id in the UI matches with the email id in the db,if the email id exists,i need to find its eid(eid is t priamary key,auto_increment),i've set my email id to be unique key...
so if the email id matches with the email id in the db,i should get the eid,other wise ,need to insert the email id in the user_table...pl help me with the code.i'm working using exadel and java...need t code 2 do this in java
pl..pl

The user comes to the UI and enters the email address and he hits on submit button .... (if i am right)
it is a simple task of passing the value from jsp to action class and do those operation.
Can u provide the code that u have wriiten... so that i can help u !!!!

Similar Messages

  • Need to fatch the data from sqlserver to Oracle DATABASE ;not migration

    Hello,
    What is the easiest method to insert/refresh data into Oracle Tables from SQLSERVER 2005 table.Do I need ODBC connection and how it works in the PL/SQL to create the connection and fetch the data from sqlserver.
    Thanks,
    Sarabmann

    I need to fetch from ORACLE back-end ,for example I want to install the mechanism at the back-end server where if I write stored procedure and call this link which enable me to fetch the data from sqlserver.
    Environment:- Linux as OS
    Oracle 10G as a Database

  • How to validate the date in my class

    Hi
    In my project with jsp and struts I need to validate the date field.
    So in the action class I want to validate the date that is the date is in dd/mm/year format?
    can anybody please give some idea to do this?
    Thank you so much.

    Here is a method that validates day/month/year using the Calendar class.
         public boolean validateDate(int day, int month, int year) {
              try {
                   Calendar cal = Calendar.getInstance();
                   cal.clear();
                   cal.setLenient(false);
                   cal.set(year, month-1, day);
                   // need to call getTime() to make the calendar compute/validate the date
                   cal.getTime();
                   return true;
              catch (IllegalArgumentException e) {               
                   return false;
         }

  • How to validate the data in the table

    Hi Experts,
    My question is
    I am having a table control on my view. I need to validate the data entered by the user on the table
    and after validation i need to save the data into database table.
    Now my question is only related to Data Validation on table UI element.
    If the user enters 3 rows and if the 2nd and 3rd row are already existing,
    It should throw the message Entry already exists and the pointer should
    be at Row number 2 in this case.
    Similarly in the 2nd row i have a date field and if the user enters some character
    then it should throw an error message that Numeric values are only allowed and
    the pointer is placed in the 2nd row Date column so that it allows user to modify
    the wrong entry.
    Please advise.
    Regards,
    Chitrasen

    Hi,
    for validating user input in table , you have to get the entries inserted by user into an internal table using get_static_attribute_table and futher have your check using loop endloop.
    For date field, make the context attribute binded to date column as DATS. This would make sure the user inputs a valid date without your custom code.

  • How do u validate the data

    Hi
    I want to know Validate the data after extracting from R/3 to BW. Can any one of u please help me how should i go about this..
    If the annswers were given step by step briefly the full points wil be rewarded....
    waiting for the answrs

    Hi Kiran,
    Reconcilation:
    Reconcilation is the process of comparing the data after it is transferred to the BW system with the source system. The procedure to do reconcilation is either you can check the data from the SE16 if the data is coming from a particular table only or if the datasource is any std datasource then the data is coming from the many tables in that scenario what I used to do ask the R/3 consultant to report on that particular selections and used to get the data in the excel sheet and then used to reconcile with the data in BW . If you are familiar with the reports of R/3 then you are good to go meaning you need not be dependant on the R/3 consultant ( its better to know which reports to run to check the data ).
    I will give you a scenario to help you understand it better. Lets say BW extracts FI data from R/3. To make sure that all the records has been extracted from R/3 we can create a report in R/3 which will show the year-to-date balance of all the documents posted and we can create a BEx query on the BW cube which will also display the trial balnce. Any difference between the two balance will identify the records missing from R/3.
    Similary you can model other scenarios as per your requirement. If you are extracting from 2 or more different sources from R/3 then create a multicube on top of the individual cube and produce the report. You need to also create a similar report in R/3 as well.
    check this How to Doc:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7a5ee147-0501-0010-0a9d-f7abcba36b14
    Pls do check the link's below
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7a5ee147-0501-0010-0a9d-f7abcba36b14
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/how%20to%20validate%20infocube%20data%20by%20comparing%20it%20with%20psa%20data
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8c92d590-0201-0010-5aa0-ee7a993f295c
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/968dab90-0201-0010-c093-9d2a326969f1
    Question regarding Tranports?
    ****Assign Points If Helpful****
    Regards,
    Ravikanth

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ?
    Can I write like this ?
    LOOP AT it_tab .
    CHAIN.
    FIELD : it_tab-strtdat,it_tab-enddat.
    module date_validation.
    ENDCHAIN.
    ENDLOOP.
    Module Date_validation.
    ranges : vdat type sy-datum.
    vdat-sign = 'I'.
    VDAT-LOW = it_tab-STRTDAT.
    VDAT-HIGH = it_tab-ENDDAT.
    VDAT-OPTION = 'BT'.
    APPEND VDAT.
    WHAT CODE I have to write here to validate ?
    and If I write like this How can we know which is the current row being add ?
    It loops total internal table ..?
    Bye,
    Muttu.

    Hi,
    I think there is no need to put chain endchain.
    To do validation you have to write module in PAI which does required validations.
    Thanks
    DARSHAN PATEL

  • Please help I need to rest the deleted history

    Please help I need to rest the deleted history

    rest??
    Did you mean "restore"?
    Sorry, if you deleted your browsing history it is gone. No backups are made for browsing history, unless you have that set that up in a 3rd party application. Or if you have a backup of the places.sqlite file, which is where that data is stored in Firefox.

  • I need to display the date of every month 1st

    Hi All,
    I need to display the date from 01/01/2007 to 09/01/2008.
    example like this
    01/01/2007
    02/01/2007
    03/01/2007
    01/01/2008
    02/01/2008
    09/01/2008
    could u pls help me
    thanks,
    Dharma.

    This should give you something to work with:
    SQL> SELECT ADD_MONTHS(TO_DATE('01/01/2007','MM/DD/YYYY'),LEVEL-1) AS months from dual connect by level <= 21;
    MONTHS
    01/01/2007 00:00:00
    02/01/2007 00:00:00
    03/01/2007 00:00:00
    04/01/2007 00:00:00
    05/01/2007 00:00:00
    06/01/2007 00:00:00
    07/01/2007 00:00:00
    08/01/2007 00:00:00
    09/01/2007 00:00:00
    10/01/2007 00:00:00
    11/01/2007 00:00:00
    12/01/2007 00:00:00
    01/01/2008 00:00:00
    02/01/2008 00:00:00
    03/01/2008 00:00:00
    04/01/2008 00:00:00
    05/01/2008 00:00:00
    06/01/2008 00:00:00
    07/01/2008 00:00:00
    08/01/2008 00:00:00
    09/01/2008 00:00:00
    21 rows selected.Hope this helps!

  • Validate the data for SAP system

    How do you validate the data for SAP receiver system (RFC or IDOC adapter)?
    It is necessary to recognize does exists reference object or does field has the right value.
    Do you validate it in BPM or you handle  application/technical acnowlegment? Or Messaging monitoring is enough for your requirements.
    In case of ABAP Proxy will it enough to catch Fault Message in order to define what happens?

    Hi,
    there are two different kinds of validations:
    syntactical validation (length and data types of fields etc.) and semantical validations (correct customer in order, allowed number range etc.)
    From a theoretical point of view, only the first kind should be carried out in XI, all semantical validations should be part of the backend inbound processing. And indeed for IDocs and RFCs you will get according error messages in the backend. If you call proxies, you will need to code that yourself.
    In General i'd implement syntactical validations in XI, if more a necessary then XI already carries out (e.g. mandatory fields filled). For data validations i would rely on the backend, meaning for IDocs you should look into using ALEAUD IDoc, which will return any error messages during IDoc inbound processing. For RFCs you can have Exceptions defined which will translate to a negative application ACK.
    Regards
    Christine

  • Need to get the date's.

    Hi,
    I need to get the dates in interval of 7.
    My Scenario:
    When my user gives the date as 04/01/2013. My output should be like
    04/01/2013
    04/02/2013
    04/03/2013
    04/04/2103
    add of 4 dates. How can i acheive this in sql query? Could any one pls help me?
    Regards,
    Prasad k T,

    wilhelm wundt wrote:
    Hi,
    I need to get the dates in interval of 7.Your expected output is not talking about th einterval of 7 days..
    >
    My Scenario:
    When my user gives the date as 04/01/2013. My output should be like
    04/01/2013
    04/02/2013
    04/03/2013
    04/04/2103Is this date dd/mm or mm/dd
    If you need 4 consecutive dates, use
    select input_date+level-1
    from dual
    connect by level <= 4;>
    add of 4 dates. How can i acheive this in sql query? Could any one pls help me?
    Regards,
    Prasad k T,

  • What will be the peoplesoft query to calculate voluntary termination count and involuntary termination count? I am working on OBIA HR analytics workforce deployment reports and need to validate the reports

    what will be the peoplesoft query to calculate voluntary termination count and involuntary termination count? I am working on OBIA HR analytics workforce deployment reports and need to validate the reports. I also want to know the tables involved

    Hi Andrew,
    Part A:
    I've done some restating of the question, and distributed the calculations among several fields, not all of which need to be included on the visible layout. Other than formatting the Date fields and moving the 'Completed Date' field and its label, I've left this in the default "Layout 1" produced by AppleWorks.
    Field List:
    Priority: Popup menu with six items: 00, J, D, 1, 2, 3  Defaults to 00
    TL (time limit in months): Calculation:  CHOOSE('Priority',0,1,3,4,6,12)
    Received: Date. Option: Automatically insert today's date (ie. Date Record created) (may be edited)
    Target Date: Calculation:
    DATE(YEAR('Received')+INT(MONTH('Received')+'TL')/12,MOD(MONTH('Received')+'TL', 12),DAY('Received'))
    Remaining (Days): Calculation: INT('Target Date'+1-NOW())  (see revision below)
    Completed: Checkbox. Set default value to Unchecked.
    Completed Date: Date: Entered manually
    OnTarget: Calculation: IF('Completed',IF('Completed Date'<'Target Date',"On Target","Over"),IF(INT(NOW())>'Target Date',"Over","On Target"))
    The On Target field shows the current status of the case while still open, and the state on the closing date when it was closed.
    Having done that, I was unhappy with the Remaining field continuing to calculate an ever larger negative number after the case had been closed. Hence this revision below:
    Remaining: Calculation: IF('Completed','Target Date'-'Completed Date',INT('Target Date'+1-NOW()))
    Shows the number of days remaining while the case is open, the days remaining at completion if the case has been marked Completed and the completion date entered.
    Rsults (and some further formatting of the Layout) below.
    Part B:
    You will need Subsummary parts when sorted on Completed and on On Target. Fields can appear on  a Layout only once, so each subsummary part will need a separate Summary type field for each field to be summarized.
    Regards,
    Barry

  • Need to save the data in mutiple tables

    Dear Experts,
    I need to insert the data ,which is accepted from the user at runtime using table control and also generate automatic number when clicked on the save button the data should be in the database as well.
    I am new to module pool, your help is reqd. The user will be awarded ample points if answered correctly.
    regards,
    Rachel

    Hi Rachel,
    For automatic number generation you need to create number range object using tcode SNRO and then use the foolowing logic.
    *&      Form  GET_NEXT_NUMBER
          text
    -->  p1        text
    <--  p2        text
    FORM get_next_number .
      DATA: w_quant   LIKE inri-quantity,    "dummy
            w_code    LIKE inri-returncode.  "returncode
    To lock the number range object
      CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
        EXPORTING
          object           = 'ZNUM'
        EXCEPTIONS
          foreign_lock     = 1
          object_not_found = 2
          system_failure   = 3
          OTHERS           = 4.
    To raise the exception to the corresponding exception of
    'NUMBER_RANGE_ENQUEUE'
      IF sy-subrc NE 0.
        MESSAGE e368(00) WITH text-006."'Object is not found'
      ENDIF.                         "IF sy-subrc NE 0
    To get the next number from the object
      CALL FUNCTION 'NUMBER_GET_NEXT'
        EXPORTING
          nr_range_nr             = 'Z2'
          object                  = 'ZNUM'
          toyear                  = '2008'
        IMPORTING
          number                  = l_lbc_next
          quantity                = w_quant
          returncode              = w_code
        EXCEPTIONS
          interval_not_found      = 1
          number_range_not_intern = 2
          object_not_found        = 3
          quantity_is_0           = 4
          quantity_is_not_1       = 5
          interval_overflow       = 6
          buffer_overflow         = 7
          OTHERS                  = 8.
      IF sy-subrc <> 0.
        CLEAR ok_code.
        MESSAGE e368(00) WITH text-006."'Object is not found'
      ENDIF.               "IF sy-subrc <> 0
    To unlock the number range object
      CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
        EXPORTING
          object           = 'ZNUM'
        EXCEPTIONS
          object_not_found = 1
          OTHERS           = 2.
      IF sy-subrc NE 0.
        CLEAR ok_code.
        MESSAGE e368(00) WITH text-006."'Object is not found'
      ENDIF.              "IF sy-subrc NE 0
    ENDFORM.                    " GET_NEXT_NUMBER
    And for table control logic
    see the below link.
    Table control of Module Pool Program
    Regards,
    Raju

  • Need to grab the data from Web Page and send it to SAP using PI

    Hello Experts,
    I need to grab the exchanges rates from the below link.
    http://www.cbr.ru/scripts/XML_daily.asp?date_req=09-06-2011.
    This link returns an XML . I need to get the data from this XML page and post it to SAP ECC using PI.
    My requirement is that, process should start from the ECC and grabs the data from the web page which gives you the XML and post this data into ECC using PI. We have a RFC written in ECC side to post the data in ECC.
    Please help me to identify the adaptor's needed and what should I need to do to initiate the process from ECC.
    Would it be a Async or Sync process ?
    I would really appreciate the inputs.
    Thanks.
    Gaurav.

    Hi,
         Any particular reason that you want to go for a sync process as then you would need to either use a BPM (RFC to BPM where you use sync/async bridge to get the xml file from the specified link and then send the response back to ECC) or go for a synchronous Java proxy on the receiver side which will grab the exchange rates and then map back to the RFC response structure. In this case, you can avoid the BPM.
    Else, as mentioned in Michal's blog, you can break it up into 2 seperate scenarios. RFC/Proxy to File and then File to IDoc/RFC/Proxy which will get the exchange rates into ECC.
    Another option can be Proxy --> PI --> ECC(IDoc/Proxy/RFC). Here you can grab the exchange rates from the link in your message mapping through a UDF.
    Regards

  • Need to check the data flow from R/3 to BW server.

    Hi BI experts,
    This query is regarding need to check the data flow from R/3 to BW server.
    As of now I have some set of reports which I would need to take up in BW. The requirement is  to go through the list of transaction codes for reports in R/3 and find out if there are already  any existing objects in BW system which I can use for these reports.
    So, can u plz help me.

    Depends what are your Tcode or Reports users run in R/3 and they want the same in BW.Then in BI Content we have Out of the box Delivered reports.You can activate those Load data and use it.
    Gimme T-codes you have I can send you Standard reports in BI or Cube you can get these from.
    ~AK

  • Need to Make the DATA Load Faster

    Hi
    I need to load the data from the source to the target like 90 tables. The source has 36 million rows in some of the tables it is taking a long time altough I have dropped the indexes on the target. I really need to make it as fast as possible. Following is the code for 1 table that I am currently using. Any Help would be really appreciated.
    INSERT INTO AAA.CHECKHISTORYITEM@db1 (
    OID,
    AMOUNT,
    BANK_DEPOSIT,
    CHECKHISTORYOID,
    CODE,
    FIELD_NB,
    HISTTYPEOID,
    STATUTORY_DED,
    TAXCODEOID,
    VALIDTILL,
    ABBREV,
    CONVERSION_ID,
    DESCRIPTION,
    EXTERNAL_ID,
    ACTIVE,
    CREATEDON,
    CREATOROID,
    DELTAOID,
    MODIFIEDON,
    SCREEN_TRANSACTION_NUMBER,
    SECURITYOID,
    SHARABLE,
    SUBCLASS,
    TARGETUSEROID,
    VERSION,
    VERSION_NUMBER,
    ACM,
    MODIFIEDBYUSEROID,
    cidn)
    (select
    OID,
    AMOUNT,
    BANK_DEPOSIT,
    CHECKHISTORYOID,
    CODE,
    FIELD_NB,
    HISTTYPEOID,
    STATUTORY_DED,
    TAXCODEOID,
    VALIDTILL,
    ABBREV,
    CONVERSION_ID,
    DESCRIPTION,
    EXTERNAL_ID,
    ACTIVE,
    CREATEDON,
    CREATOROID,
    DELTAOID,
    MODIFIEDON,
    SCREEN_TRANSACTION_NUMBER,
    SECURITYOID,
    SHARABLE,
    SUBCLASS,
    TARGETUSEROID,
    VERSION,
    VERSION_NUMBER,
    ACM,
    MODIFIEDBYUSEROID,
    'ABCD from ABCD.CHECKHISTORYITEM);
    commit;

    Is there any trigger on the table you're inserting? You could consider disabling constraints (in case any exists) if you're sure enough of the data you're inserting and no one else "touches" the table while you're working on it.

Maybe you are looking for

  • Creation of Contextual Navigation Panel

    Hi Experts, I need to create a contaxtual navigation panal instead of tree for hierarchical display of records having two columns. first column being the hierachical struture and second is the static text. How I can create Contextual Navigation Panel

  • Desktop appears to be Read Only - Permissions issue

    I believe I have an issue with Permissions that has caused me to lose access to the Dock and items on the Desktop. I was having an issue with my external FW Drive and was doing some troubleshooting with it. At one point I restarted the entire system

  • When I plug in headphones into my iphone 4 the sound doesn't work.

    My headphones work fine on other devices, they aren't broken. The sound works WITHOUT headphones and on speaker. My phone isn't on silent either. I also don't want to reset my phone because I have apps I can't fully restore and my icloud is also mess

  • Erratic behaviour of 'all day events'

    I use iCal very successfully for recording campsite bookings. It's only a small campsite - never more than ten pitches at a time, so at best I have 10 'all day events' spread across a week view (as discussed in this forum, month view is no use for vi

  • VB 2008 and CR 2008 (chopped off vertical text)

    I have an annoying error that does not make any sense to me.  My development environment consists of Visual Basic 2008 Professional as well as Crystal Reports 2008.  I was first using the Crystal Reports 2008 Basic that came packaged with Visual Basi