Maximum is not populating in the output of bex query

Hi friends,
I calculated maximum value of a key figure restricting on char value.
(Properties -> calculate Result as -> maximum )
But I am getting summation of maximum.
for example.
current-assigne open-cases    max-age-opencases.
rock--10--
75
charle--9--
80.
In above scenerio instead of giving max age of open cases it is giving sum of ages.
Please help guys.
Thanks,
James

Hi Oscar,
I applied max but still it's giving summation.
Thanks,
James.

Similar Messages

  • Reg : data is not getting in the output

    hi team,
                 data is not getting in the  output, but it is getting in the debug mode
    REPORT ZSAPP10 .
    *tables : pernr.
    TABLES : PA0001.
    type-pools : slis.
    types : begin of itab,
            pernr type pernr,
            orgeh type orgeh,
            abkrs type abkrs,
            end of itab,
            begin of itab2,
            pernr type pernr,
            vorna type pad_vorna,
            nachn type pad_nachn,
            end of itab2.
    parameter : p_pernr like pa0001-pernr.
    *DATA:  g_cprog  tYPE SY-CPROG.
    data : i_itab1 type table of itab initial size 0,
           i_itab2 type table of itab2 initial size 0.
    data : w_itab type itab,
           w_itab2 type itab2.
    data : t_fieldcat type slis_t_fieldcat_alv,
            w_fieldcat type slis_fieldcat_alv.
    data : t_event type slis_t_event,
            w_event type slis_alv_event.
    data : t_listheader type slis_t_listheader,
           w_listheader type slis_listheader.
    *get pernr.
    w_event-form = 'TOP_OF_PAGE'.
    w_event-form = 'sub1'.
    append w_event to t_event.
    w_listheader-typ = 'H'.
    w_listheader-info = 'this is new top of page'.
    append w_listheader to t_listheader.
    select pernr
           orgeh
           abkrs from pa0001 into table i_itab1 where pernr = p_pernr.
    w_fieldcat-col_pos = 1.
    w_fieldcat-seltext_m = 'personnal no'.
    w_fieldcat-fieldname = 'pernr'.
    w_fieldcat-tabname = 'i_itab1'.
    w_fieldcat-outputlen = '20'.
    append w_fieldcat to t_fieldcat.
    w_fieldcat-col_pos = 2.
    w_fieldcat-seltext_m = 'org. unit'.
    w_fieldcat-tabname = 'i_itab1'.
    w_fieldcat-fieldname = 'orgeh'.
    w_fieldcat-outputlen = '20'.
    append w_fieldcat to t_fieldcat.
    w_fieldcat-col_pos = 3.
    w_fieldcat-seltext_m = 'payroll area'.
    w_fieldcat-tabname = 'i_itab1'.
    w_fieldcat-fieldname = 'abkrs'.
    w_fieldcat-outputlen = '20'.
    append w_fieldcat to t_fieldcat.
    *g_cprog = SY-CPROG.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
               I_INTERFACE_CHECK                 = ' '
               I_BYPASSING_BUFFER                =
               I_BUFFER_ACTIVE                   = ' '
                 I_CALLBACK_PROGRAM                = SY-CPROG
               I_CALLBACK_PF_STATUS_SET          = ' '
               I_CALLBACK_USER_COMMAND           = ' '
               I_CALLBACK_TOP_OF_PAGE            = ' '
               I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
               I_CALLBACK_HTML_END_OF_LIST       = ' '
               I_STRUCTURE_NAME                  =
               I_BACKGROUND_ID                   = ' '
               I_GRID_TITLE                      =
               I_GRID_SETTINGS                   =
               IS_LAYOUT                         =
                 IT_FIELDCAT                       = T_FIELDCAT
               IT_EXCLUDING                      =
               IT_SPECIAL_GROUPS                 =
               IT_SORT                           =
               IT_FILTER                         =
               IS_SEL_HIDE                       =
               I_DEFAULT                         = 'X'
               I_SAVE                            = ' '
               IS_VARIANT                        =
                 IT_EVENTS                         = T_EVENT
               IT_EVENT_EXIT                     =
               IS_PRINT                          =
               IS_REPREP_ID                      =
               I_SCREEN_START_COLUMN             = 0
               I_SCREEN_START_LINE               = 0
               I_SCREEN_END_COLUMN               = 0
               I_SCREEN_END_LINE                 = 0
               IT_ALV_GRAPHICS                   =
               IT_ADD_FIELDCAT                   =
               IT_HYPERLINK                      =
               I_HTML_HEIGHT_TOP                 =
               I_HTML_HEIGHT_END                 =
               IT_EXCEPT_QINFO                   =
             IMPORTING
               E_EXIT_CAUSED_BY_CALLER           =
               ES_EXIT_CAUSED_BY_USER            =
                 TABLES
                 T_OUTTAB                          = I_ITAB1[]
              EXCEPTIONS
                PROGRAM_ERROR                     = 1
                OTHERS                            = 2
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
          FORM sub1                                                     *
    FORM sub1.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY       = t_listheader
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    ENDFORM.                                                    " sub1

    write this way...
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
            EXPORTING
            i_callback_program                = w_repid
            is_layout                = wa_layout
            i_callback_user_command  = 'USER_COMMAND_ACCT'
            i_grid_title             = 'Document Status Report'
             it_fieldcat                       = it_fcat[]
         IT_SORT                        = IT_SORT[]
             it_events                = it_events
             TABLES
               t_outtab                        = it_final_data[]
          EXCEPTIONS
            program_error                     = 1
            OTHERS                            = 2.

  • Billing tab of BP are not populated in the sales order automatically

    Hi
    Business Partners Billing Tab details like customer pricing procedure, currency, price group, Customer group etc are not populated in the Sales order automatically?
    I have checked the pricing procedure determination also.
    Thanks

    Thanks problem is solved.

  • Message type is not populating in the Inbound idoc control record

    Hi,
    I have created an Inbound Idoc function module and have done the necessary Idoc settings. But, while testing in WE19, I observed that control record is not getting populated with message type and it is dumping.
    The settings which I have done in WEDI as follows:
    1. Created Idoc segments with necessary fields and released
    2. Created Idoc type for the segment type
    3. Created message type
    4. Assigned message type to basic type
    5. In the inbound processing settings,
       filled the ALE attributes with the Idoc function module name and input value '0'
    6. Assigned FM to basic type and message type
    7. Created process code and assigned the process code to message type
    Please let me know, the reason for the message type not populating in the control record. Useful answers will be surely rewarded.
    Best Regards,
    Mallika

    Hi,     
    Maintain partner profile (Transaction code WE20) for the message type you defined in WE81 and put your process code in partner profile and check your logical system settings also in transaction SALE.
    Thanks
    Rahul

  • Added in to fieldcat but do not display in the output

    Dear Experts,
    I meet a problem that I add one recode into the fieldcat.But in output, the field's name do not appear in the output.The following is my code.The content 'Duodate' does not appear on the screen.
    form fieldcat_init using l_fieldcat type slis_t_fieldcat_alv.
      data: ls_fieldcat type slis_fieldcat_alv.
    *head field categories                                       *
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'LIFNR'.
      ls_fieldcat-tabname   = 'ITAB_HD_IT'.
      ls_fieldcat-seltext_l = 'Vonder'.
      ls_fieldcat-key       = 'X'.
      ls_fieldcat-fix_column     = 'X'.
    ls_fieldcat-outputlen = 12.
      append ls_fieldcat to l_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'NAME1'.
      ls_fieldcat-tabname   = 'ITAB_HD_IT'.
      ls_fieldcat-seltext_l = 'Vonder'.
      ls_fieldcat-key       = 'X'.
      ls_fieldcat-fix_column     = 'X'.
      ls_fieldcat-outputlen = 40.
      append ls_fieldcat to l_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'VBLNR'.
      ls_fieldcat-tabname   = 'ITAB_HD_IT'.
      ls_fieldcat-seltext_l = 'Payment'.
    ls_fieldcat-outputlen = 10.
      ls_fieldcat-do_sum = 'X'.
      append ls_fieldcat to l_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'WAERS'.
      ls_fieldcat-tabname   = 'ITAB_HD_IT'.
      ls_fieldcat-seltext_l = 'CURR.'.
    ls_fieldcat-outputlen = 10.
      ls_fieldcat-do_sum = 'X'.
      append ls_fieldcat to l_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'WRBTR'.
      ls_fieldcat-tabname   = 'ITAB_HD_IT'.
      ls_fieldcat-seltext_l = 'Amount'.
      ls_fieldcat-outputlen = 15.
      ls_fieldcat-do_sum = 'X'.
      append ls_fieldcat to l_fieldcat.
    *item field categories                                       *
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'BELNR'.
      ls_fieldcat-tabname   = 'ITAB_ITEM_IT'.
      ls_fieldcat-seltext_l = 'Docu.'.
      ls_fieldcat-key       = 'X'.
      ls_fieldcat-fix_column     = 'X'.
      ls_fieldcat-outputlen = 12.
      append ls_fieldcat to l_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'BLDAT'.
      ls_fieldcat-tabname   = 'ITAB_ITEM_IT'.
      ls_fieldcat-seltext_l = 'Document Date'.
      ls_fieldcat-outputlen = 10.
      ls_fieldcat-key       = 'X'.
      ls_fieldcat-fix_column     = 'X'.
      append ls_fieldcat to l_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'ZFBDT'.
      ls_fieldcat-tabname   = 'ITAB_ITEM_IT'.
      ls_fieldcat-seltext_l = 'BasDte'.
      ls_fieldcat-outputlen = 10.
      ls_fieldcat-key       = 'X'.
      ls_fieldcat-fix_column     = 'X'.
      append ls_fieldcat to l_fieldcat.
        clear ls_fieldcat.
      ls_fieldcat-fieldname = 'ZDUED'.
      ls_fieldcat-tabname   = 'ITAB_ITEM-IT'.
      ls_fieldcat-seltext_l = 'DueDate'.
      ls_fieldcat-outputlen = 10.
      append ls_fieldcat to l_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'ZTERM'.
      ls_fieldcat-tabname   = 'ITAB_ITEM_IT'.
      ls_fieldcat-seltext_l = 'Cond'.
      ls_fieldcat-outputlen = 4.
      ls_fieldcat-key       = 'X'.
      ls_fieldcat-fix_column     = 'X'.
      append ls_fieldcat to l_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'ZPAYT'.
      ls_fieldcat-tabname   = 'ITAB_ITEM_IT'.
      ls_fieldcat-seltext_l = 'Pmnt term'.
      ls_fieldcat-outputlen = 12.
      ls_fieldcat-key       = 'X'.
      ls_fieldcat-fix_column     = 'X'.
      append ls_fieldcat to l_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'WAERS'.
      ls_fieldcat-tabname   = 'ITAB_ITEM_IT'.
      ls_fieldcat-seltext_l = 'Currency'.
      ls_fieldcat-outputlen = 4.
      append ls_fieldcat to l_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname = 'WRBTR'.
      ls_fieldcat-tabname   = 'ITAB_ITEM_IT'.
      ls_fieldcat-seltext_l = 'Amount'.
      ls_fieldcat-outputlen = 15.
      append ls_fieldcat to l_fieldcat.
    ENDFORM.                    " FIELDCAT_INIT

    hi,
    try this code.
    ls_fieldcat-fieldname = 'LIFNR'.
    ls_fieldcat-seltext_l = 'Vonder'.
      ls_fieldcat-key = 'X'.
      ls_fieldcat-fix_column = 'X'.
       ls_fieldcat-outputlen = 12.
      append ls_fieldcat to l_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         IT_FIELDCAT                        = l_fieldcat.  " Pass the fielc cat here
    it must work.... and check out thels_fieldcat-fieldname  again.. you have to give the correct fielname in uppercase inside ' '.
    thankyou.

  • Possibele entries are not populating for the fields on the selection screen

    Hi,
    Possible entries are not populating for the fields on the selection screen for the query.But its working fine in Development and Quality Systems.
    Can any body help me out
    Regards,
    Amit.

    Hi,
    In the Selection screen,go to Settings->Value Restrictions tab->Read Mode Settings->Custom radio button and select the options Values in Master Data or Only Values in InfoProv or Only Posted values for navigation.
    After this setting,check whether you are getting the data or not.
    Rgds,
    Murali

  • Days supply is not populating in the planning book

    Hi Experts,
    When I select multiple products in the planning book, the value is papulating as total but if I drilled down to individual product then days supply(Key figure) values are not populating in the planning book.
    Please let me know if any idea.
    Regards,
    Hrishi

    From what you mention it looks like you do not use the standard SNP Planning Book. Was the macro inactive so that you had to regenerate?
    When you move a macro from workbench to level change it should not require to be regerated.
    Please check if following macros are active (green) under level change in sequence
    Determine Workdays
    Layout Attributes
    Drill (Level)
    Else compare the macros and sequence in the standard SNP Planning Book with the Planning Book you are using.
    The Day's Supply (All: Day's Supply) and Determine workdays macros are essential for populating the day's supply keyfigure.
    Thanks,
    Somnath

  • FINAL EXPORT / MIXDOWN FONCTION does not work. The Output Wave Resulting is a total silence?

    AUDITION FINAL EXPORT / MIXDOWN FONCTION does NOT ever work
    The Output Wave Resulting is a TOTAL SILENCE - NO SOUND AT ALL
    Bought & registered Program act as an expired DEMO...
    The result is a wave with a completely flat HORIZONTAL LINE of pure $300.00 rip off of SILENCE
    Even after many clean reinstallations AUDITION never is able to do a Final Mixdown with any Sound in it.
    A AUDITION Support Technician cleaned up during 1 hour about 15 secret hidden Adobe files in the Windows XP System.
    After this clean up the AUDITION program functionned ONCE! Once it was able to output a Final Mixdown with sound in it.
    That never occured again after. I have a very standard very well maintained Windows XP computer.
    My understanding & the experience with the Adobe Support Technician prooves that the problem is the deeply hidden spy files of Adobe who erroneously turn my bought & registered program into an expired DEMO. I have reported the problem numerous times to Adobe, & everytime I talk to support people at Adobe, they tell me they have never heard about this problem, when I already had reported it MANY times at the Adobe Tech Support department !!!
    I can only draw the conclusion Adobe is trying to hide this problem away by pretending they have never heard about it.. ?
    Anybody have had a similar AUDITION  / DEPRESSION nightmare & found a solution ?

    Astraelia wrote:
    Audition is the first & only program easely accessible for musicians who record themselves without having the expertise of a sound technician handling the recording operations. This is certainly by far, the greatest quality of Audition.
    I would term Audition to be the very first & only recording program (on PC) conceived for musicians. All the others Audio Logic, Q Base ect. are conceived for professionnal recording engineers.
    You seem to have a rather strange conception of Audition, I must say. Most musicians want it to do rather more than it does. It wasn't conceived for musicians at all really - it was originally designed to be just an editor, to which the functions of a multitrack tape recorder were added. Its primary use is professional - always has been, mainly by radio stations. Just about every station in the world has at least one copy, and some larger ones like the BBC have rather a lot more... and I'd say that it was the likes of Cubase and Logic that are conceived for musicians, not Audition. It's also used by a lot of Mastering studios, even though they won't admit it. The primary reason for it being in Adobe's Creative Suite is because it's getting more and more integrated with the video programs in it - nothing to do with music at all.
    I'm afraid that whether you like it or not, Audition is marketed towards people who do know what they're doing, by and large. That's why it behaves the way it does, and why you do really need to be at least a bit of a technician to use it effectively. And I'm still trying to think whether I know of any guitarists at all who use amplifiers and who don't understand at least the basics of how a mixer works, but I'm afraid that I can't think of any. I'm not going to say that it's common knowledge, but I don't think it's that rare either.

  • Procedure to save the output of a query into excel file or flat file

    Procedure to save the output of a query into excel file or flat file
    I want to store the output of my query into a file and then export it from sql server management studio to a desired location using stored procedure.
    I have run the query --
    DECLARE @cmd VARCHAR(255)
    SET @cmd = 'bcp "select * from dbo.test1" queryout "D:\testing2.xlsx;" -U "user-PC\user" -P "" -c '
    Exec xp_cmdshell @cmd
    error message--
    SQLState = 28000, NativeError = 18456
    Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'user-PC\user'.
    NULL
    Goel.Aman

    Hello,
    -T:
    Specifies that the bcp utility connects to SQL Server with a trusted connection using integrated security. The security credentials of the network user,
    login_id, and password are not required. If
    –T is not specified, you need to specify
    –U and –P to successfully log in.
    -U:
    Specifies the login ID used to connect to SQL Server.
    Note: When the bcp utility is connecting to SQL Server with a trusted connection using integrated security, use the
    -T option (trusted connection) instead of the
    user name and password combination
    I would suggest you take a look at the following article:
    bcp Utility: http://technet.microsoft.com/en-us/library/ms162802.aspx
    A similar thread regarding this issue:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b450937f-0ef5-427a-ae3b-115335c0d83c/bcp-connection-error-sqlstate-28000-nativeerror-18456?forum=sqldataaccess
    Regards,
    Elvis Long
    TechNet Community Support

  • Spooling the output of a Query with out displaying the rows

    Hello All,
    Is it possible to spool the output of
    a query/dbms_output.put_line with out displaying
    the Query output on the console.
    In my case,list of rows in the output is huge, I want
    to eliminate displaying the output of query
    so that spooling will complete faster.
    Thanks in advance.
    -Srini

    You can do:
    SET TERMOUT OFFIn your script before doing the spool command.
    You will have to write your query as a .SQL script and run it from SQL*Plus in order for it to work the way you expect.
    sqlplus -s username/password @query_script.SQL

  • Get the output of a query in a textpad..

    Hi..
    I need to get the output of a query in a notepad..
    Can anyone help me..

    spool c:\emp.txt
    fire select * from emp;
    spool off;
    go to c: and check your text file.
    hare krishna
    Alok

  • How the Drill down functionality works if the source is Bex Query

    Dear All,
    How the Drill down functionality works if the source is Bex Query through the query browser in Dashboard 4.1
    Please let me know process.
    Thanks
    Regards,
    Sai

    Hi sai,
    Drill down can be done by two ways.
    1. you need to bring all the data in one shot to the spreadsheet and then by using the components you can achieve it. Below given link explains in detailed about that.
    Filtering Through Combo Box
    2. you can use different set of query to pass the value from one set to another to fetch the data using the prompt. please check the below which explain them.
    Difference between "When value Becomes & When value Changes"
    Revert any clarification required on this.
    --SumanT

  • Virtual Characteristic value not populating in the query output

    Hi Experts,
    I am new to BAPI and I am using this to populate the values of virtual characteristics.
    I wrote the below code to populate if an order status got some status value then i need to populate the flag y if not n.
    I got the order value in the reprot. I need to go to order master data and should get the status and then i have to do the comparision and populate the flag zww_teco in the report.
    The below is the compute method of my implementation class.
    FIELD-SYMBOLS :
    <fs_0cs_order> TYPE ANY,
    <fs_zww_teco> TYPE ANY,
    <fs_status>  TYPE ANY.
    if p_cha_0cs_order > 0.
      ASSIGN COMPONENT p_cha_0cs_order OF STRUCTURE C_S_DATA to <fs_0cs_order>.
    endif.
    if p_cha_zww_teco > 0.
      ASSIGN COMPONENT p_cha_zww_teco OF STRUCTURE C_S_DATA to <fs_zww_teco>.
    endif.
    Select single /BIC/ZSYSTATUS
        from /BI0/PCS_ORDER into <fs_status>
       where CS_ORDER = <fs_cs_order>.
    if <fs_status> CP 'TECO'.
      <fs_zww_teco> = 'Y'.
    else.
        <fs_zww_teco> = 'N'.
    endif.
    But I am not sure why the values are not populated. But when i debug , i could see the values for
    P_cha_0cs_order = 35
    p_cha_zww_teco = 54
    But i could get the values of <fs_0cs_order>, <fs_zww_teco> after assign component statement.
    And it is firing me a dump in select statement. Also when I click c_s_data i am getting S____274, S____505 fields like that in the structure but i could see p_cha_0cs_order
    Can you please guide where i am missing ...
    Thanks
    Vamsi
    Edited by: vamsi talluri on Nov 9, 2011 6:14 PM

    Hi Sushant,
      RSRT --> Enter Query Name
    Click on Technical Information --> If " Virtual Char./Key Figures " = Y
    In my case , even then i clciked generate report,
    even after that P_CHA_0CS_ORDER = 35
    and after assign component P_CHA_0CS_ORDER of structure c_s_data to <FS_0CS_ORDER>.
    the <FS_0CS_ORDER> is nothing , here i should get the value of cs_order value of that record but it is coming empty which i am not able to rectify. How should i change or i need to put any other setting to get the value populated into my <FS_0CS_ORDER>.
    Can you please guide me .
    Thanks
    Vamsi

  • Value not populating in the print out (sales order) for the 1st time

    Hi friends,
    While saving a sales order, the order confirmation going to the user is not populating the LDC field. LDC is Last date of change. This field can be found in the Additonal data 2 tab of the material in the sales order. When I enter a date in this field and save, the print preview of the output has this value, but the print out does not carry this value.
    Another weird thing about this issue is that, the second time i trigger the output, the print out has the value.
    Please give me some clue on where to check and how to go about fixing this problem.
    Regards,
    Shanu.

    Dear Shanu,
    This issue may be related bug in the output program so take help of ABAPer to fix the issue.
    I hope this will help you,
    Regards,
    Murali.

  • Proxy output not displayed in the output XML

    Hi,
    I have created a web service and is calling the service using SOAP UI tool. To do it i have created an RFC Fm and inported to SAP PI and activated it with the input and output parameters that i need. When i am calling the service through the SOAP UI, in debugging( in the provider class of the service interface of the sproxy transaction ) i am able to see the values filled in one of the parameters but the same is not getting displayed in the output XML.(Response). Can any one please suggest what cud be the reason.
    Thanks

    Hi,
    can give us a hint? Code output, screenshot? btw I hope your service is a Synchronous service.
    Thanks Nick.

Maybe you are looking for

  • How can I use the same thread to display time in both JPanel & status bar

    Hi everyone! I'd like to ask for some assistance regarding the use of threads. I currently have an application that displays the current time, date & day on three separate JLabels on a JPanel by means of a thread class that I created and it's working

  • Adobe Flash download website is hosed?

    For some reason, my Flash update checker doesn't always work reliably or in a timely manner, so I regularly check for new versions of Flash by going into Control Panel > Flash Player > Advanced > Check Now.  It said that 10.3.183.10 was available.  I

  • Wish List for iTunes Store?

    Greetings Is there a way to have a Wish List in the iTunes Store? Would be very helpful Thanks!

  • Auto completion in number 3.0.1

    even in numbers 3.0.1 upgrade the auto completion is missing, will they give an upgarade or is it hidden or am i overlooking something for the same.

  • Problem inserting date into MS SQL Server

    I am trying insert date into MS SQL Server database. First I used Statement and when I insert the date only date used to be inserted properly and the time used to be always 12:00:00 AM. I tried PreparedStatement and when I insert I get an error messa