Not getting current date in InputDate Field while setting MinValue..

I drag and drop an Input Date field in jspx page..For setting the MinValue as current date,i bind the MinValue to a variable declared in backingbean..When i want to select current date ,*Current date is diasbled*..But the message is showing that "*Enter a date on or after 6/29/2009*"..*How i select current date* (6/29/2009)..
code in jspx page
===========
*<af:inputDate label="Release Date" id="ipdtDate"*
*binding="#{backing_RelPlan.ipdtDate}"*
*minValue="#{backing_RelPlan.today}"/>*
+backing bean contains+
=======
*Date today=new Date();*
*public void setToday(Date today) {*
*this.today = today;*
*public Date getToday() {*
*return today;*
*}*

Hi Briston,
you must somehow set time to 00:00 or cut it. this works for me:
package brano.test1.view;
import java.text.SimpleDateFormat;
import java.util.Date;
public class MyBB {
    private Date today;
    public MyBB() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        try {
            String stringToday = sdf.format(new Date());
            today = sdf.parse(stringToday);
            System.out.println(stringToday);
        } catch (Exception e) {
    public void setToday(Date today) {
    this.today = today;
    public Date getToday() {
    return today;
}regards,
Branislav

Similar Messages

  • Iam not getting the data on screen after using the user exit zxpadu01

    Dear Freinds
                As per my requirement when the user enters value Ansal  it should get defaulted to Amount field (bet01 ) based on the wage type
    i have written calculation ( q0008-bet01 = ansal/100) before it getting defaulted to bet01, i found that value is not getting default  on the screen for bet01 once i enter value for Ansal , please any body correct my code
    in   ZXPADU02 i have written the code as  below :
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
    CASE innnn-infty.
    when '0008'.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.   -- HERE I GOT ALL THE DATA EXCEPT BET01
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008  --- HERE I CAN SEE EVEN THE BET01 IS FILLED
    IMPORTING
    prelp = innnn.         --- HERE I CAN SEE LGART BUT NOT AMOUNT VALUE
    endif.
    when others.
    endcase.
    IN ZXPADU01 I HAVE WRITTEN AS BELOW:
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
    CASE innnn-infty.
    when '0008'.
    MOVE-CORRESPONDING  innnn to wa_p0008.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008   --- I CAN SEE ONLY WHEN I COME AGAIN
    IMPORTING
    prelp = innnn.
    endif.
    when others.
    endcase.
    Now my problem is as follows :
                   i have entered the value for Ansal (ex: p0008-Ansal = 1000) ..........and i say enter then i should found the calculated value for the ansal through my coding
    and it should  display in bet01 as 10 ( q0008-bet01 =  p0008-ansal /100)
    but i dont find the value 10 being displayed for the field bet01 on the screen  when
    user enters Ansal  as 1000 .........even then i have saved it to test the scenario......
    now i came in displayed mode (pa20 ) for the infotype 008 for the same personnel no for the same  dates .....where i created the record........i found that the value
    bet01 is there i.e i can see  the value bet01 as 10 ( my requiremnt here matching)
    but when the user say enter during the time of creation of the record the value
    bet01 is not getting defaulted with 10 .........why iam not able to understand
    PLEASE ANY BODY HELP ME IN THIS REGARD 
    regards
    shanti.

    Hi Pranesh,
                   i have used the logic which you hav given as below
    in ZXPADU02
      FIELD-SYMBOLS <fs>  TYPE ANY.
    ASSIGN ('(MP000800)Q0008-betrg') TO <fs>.
    if <fs> is assigned.
    <fs> = l_v_amount .  ---  amount as (ansal /100 i.e 1000/100 = 10) 10
    endif.
    still iam not getting the data for the field bet01
    this is the coding i am using
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
      FIELD-SYMBOLS <fs>  TYPE ANY.
    CASE innnn-infty.
    when '0008'.
    MOVE-CORRESPONDING  innnn to wa_p0008.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    ASSIGN ('(MP000800)Q0008-betrg') TO <fs>.
    if <fs> is assigned.
    <fs> = l_v_amount .
    endif.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008
    IMPORTING
    prelp = innnn.
    endif.
    when others.
    endcase.
    please help me as iam still not getting (value in bet 01) when i press enter once i enter value in ansal feild.
    regards
    shanti.

  • XL Reporter not getting any data

    <b>Hi</b>
    When I am using XL Composer and generating report using it, I am getting data what the fields I have dragged. Not getting any data when generating same report in organizer from composer except the Title field names. Before I got but now I am not getting.
    <b>STEPS Taken</b>  
                     XL Reporter Composer Tool bar
                     Generate
                     Generate(Window)(Name: given Sample & checked Generate report    then ok)
    And having another problem when generating sample reports I am getting data and when editing that report are preparing new with some fields, I am not getting any data.
    <b>Example:</b>   I have made Edit of Bank Book and placed extra field Document No,   saved the report and generated I am not getting any data except titled fields.
         In new report I have taken BP Code and sales Employee I am not getting any data.
    Please Can any one help me,   It is urgent.
    Thanks in Advance.
    <i><b>Urs
    Sindhu</b></i>

    If you did not select any "total" field (quantities, totals, etc), XL Reporter will show data only at report composer. It will not work at final XL Report itself.
    This is a normal behaviour of XL Reporter, unfortunetaly.
    If you are trying to create a simple list of records, I suggest to use Query Generator, combined to PLD in order to get a formatted report.

  • ALV fields which are not referenced to data dictionary table fields

    Hello,
    I am using function module reuse_alv_popup_to_select.
    How do I display fields in ALV which are not referenced to
    data dictionary table fields.
    I am showing 4 columns in alv out of which first column is checkbox
    and remaining 3 columns are from data dictionary and it works fine.
    Now I need to add one more column which is of type checkbox.
    I have added this field in my ITAB as flag(1) type C.
    When I add this flag field in the field catalog, I get exception.
    Regards,
    Vishal.

    Hey guys,
    Finally I got rid of such a stupid problem.
    There were no problem in the code.
    while assigning fieldname to field catalog I had given fieldname
    in lowercase.
    I changed it to uppercase and problem got solved.
    Thanks,
    Vishal.

  • SAP Fiori Purchase Order  not getting any  data & getting a 404 Error Message

    Hi
    I have downloaded Purchase Order SAPUI5 code from SAP Fiori server.  import it into Eclipse then try to run that Apps/code(SAPUI5) from browser.
    1) Not getting any Data.
    2) It show 404 Error Message.
    3) Its show wrong User Name as Login

    Hi Pankaj,
    First question :
    Are you able to get the data in Fiori ?
    Secondly,
    You have mentioned as Purchase order, but here you have given snapshot of Purchase requisition app, and you are calling also purchase req app from the browser. Please clarify
    If you have mistakenly written PO  : If you are still not getting data for Approve Purc req, then check if your RFC connections are proper from Gateway to backend and backend to Gateway.
    If RFC is working fine, check the Remote logon, it should be marked as Current user. If its not marked as current user, then it will show some other user.
    Regards,
    Tejas

  • How does BR get current date, user, and associate member with Attribute Dim

    I need use Business rules or Calc script to implement following functions:
    1. Get current date and the name of user who is running the BR and save the information to cube.
    I don't find any functions to get current date and users.
    Also, since text and date is store in relational database and essbase cube only stores the index, it looks that the value can't be changed or stored by using "==" directly, is there any function to change value of members with Text or Date types in BR/Calc script?
    2. End users select attribute value (via smart list) of products or projects(Sparse dimensions) in data form, run BR to update the association of these members with attribute dimension.
    I don't find any functions to change the attribute association in BR/Calc, is there any CDF (Custom Defined Function) that can do it?
    Thanks!

    Hi,
    For the date functionality, check out the post below.
    Re: Days behaviour between two dates
    As for the username, there is a little tricky way that requires an unused or a new dimension along with a smart list of user names. It's also possible to capture the user name from the cookies and pass it on to the form. The latter is possible through validatedata.js however requires hefty coding here and there.
    As for the attributes, it's not possible to update metadata through business rule. So no luck in there.
    Cheers,
    Alp

  • Adding current date to text field w/ Javascript in Acrobat 8

    I am trying to add the current date to a text field using javascript in Acrobat 8 Professional. I am using the util.printd function in a javascript function but the date of creation shows in the text field, NOT today's date. Any clues??
    var f = this.getField("myField");
    if (!f.value) f.value = util.printd ("m/d/yyyy", new Date());

    Thanks. I've used it also without the empty value check and had the same result of showing the creation date and not the current date.

  • To get current data block name

    Hi;
    I have 2 data blocks on my form and I want to get current data block name on my form. How can I do this???
    Thank you

    Like Rosario said, use the :SYSTEM.CURSOR_BLOCK.
    you can also use :SYSTEM.TRIGGER_BLOCK in triggers to find which block was responsible of the firing event of a trigger.
    Do not use :SYSTEM.CURRENT_% variables in Forms 9i and above, those are only there for compatibility reasons.
    You can also check the online help for more details on :SYSTEM.% system variables.
    Tony

  • Refernce Nav igational Attribute is not getting the data in Infoprovider

    Hi,
    I am facing the issue with Reference Characteristic which is  a navigational attribute for which data  is not getting populated in the cube.Please find the below scenario.
    We have three characteristics 0RECV_WBS_E , 0WBS_ELEMT, ZPSBUSA .Char 0RECV_WBS_E is reference of 0WBS_ELEMT.
    0RECV_WBS_E__ZPSBUSA,0WBS_ELEMT__ZPSBUSA are the Navigational attributes of ZPSBUSA, these two are maintained as Navigational attributes in the cube and at info object level. The Nav Attribute  0RECV_WBS_E__ZPSBUSA is not getting the data in infocube where as 0WBS_ELEMT__ZPSBUSA is getting the data .The data is available for the two Nav attributes in the info object ZPSBUSA .Can you please suggest why this reference Nav attribute  0RECV_WBS_E__ZPSBUSA is not getting data in the infocube.
    Thanks,
    SUbhash

    Hi,
    I am facing the issue with Reference Characteristic which is a navigational attribute for which data is not getting populated in the cube.Please find the below scenario.
    We have three characteristics 0RECV_WBS_E , 0WBS_ELEMT, ZPSBUSA .Char 0RECV_WBS_E is reference of 0WBS_ELEMT.
    0RECV_WBS_E__ZPSBUSA,0WBS_ELEMT__ZPSBUSA are the Navigational attributes of 0WBS_ELEMT, these two are maintained as Navigational attributes in the cube and at info object level. The Nav Attribute 0RECV_WBS_E__ZPSBUSA is not getting the data in infocube where as 0WBS_ELEMT__ZPSBUSA is getting the data .The data is available for the two Nav attributes in the info object 0WBS_ELEMT .Can you please suggest why this reference Nav attribute 0RECV_WBS_E__ZPSBUSA is not getting data in the infocube.
    Thanks,
    SUbhash
    Edited by: MarkSubhash on Dec 9, 2011 11:11 AM

  • I am not getting the data in Bex from the cube

    Hi Experts,
    i am not getting the data from the cube to Bex,
    cube having the data, but i am not able to see this data in the Bex result area.
    Can  any one help me.
    Best regards,
    Bhaskar

    Hi
    In the manage cube, is reporting symbol is there for your requests
    If you have any red requests delete them and refresh
    If all requests having reporting symbols you may check the BEx without any filters or selection criterions
    Regards
    N Ganesh

  • Why the 2LIS_08TRTK extractor can not get  all data

    Hello, BW Gurus.
    Why the 2LIS_08TRTK and 2LIS_08TRTLP extractors can not get all data. I had used the RSA3 and get 10 registers, when a check at the VTTK table I had 20 registers, I didnt use filters at RSA3, could you help to know what happen o correct it.

    Is it because
    <i>
    Shipment documents and their dependent objects (shipment stages as well as shipment items [deliveries in the shipment]) are only extracted into BW when the Shipment completion status has been set.
    This is necessary because the numeric values that result from the delivery documents are only established at the time. If the data were already stored earlier in BW, the shipment data would not be updated if the delivery notes were changed in BW.
    </i>
    - from oss note 573470.

  • Problem with getting current date and time using oracle.jbo.domain.Date

    I`d like to get current date and time using oracle.jbo.domain.Date method getCurrentDate(), but it always return current date and 12:00:00. I also need to get the current time.

    I think you should use java.sql.Timestamp domain.
    (And set database type to TIME or DATETIME.)
    Jan

  • Get  current date and time

    hello.
    How can I get current date and time in JAVA?
    Thanks.

    Sorry, I mean:
    how can I get the value of DATE, MONTH, and YEAR of the
    current date?
         Date date = new Date();
         System.out.println(date);

  • How to get current date for posting date

    hi,
    how to get current date for posting date ? any sample code ?
    Thanks

    Hi......
    Use
    Select getdate()
    for current date.......
    Regards,
    Rahul

  • Get current date style

    Hi
    How I can get current date adn time style?
    Thank you.

    Well, what do you need it for? If you just want to use the default locale when parsing/formatting a date, you just use DateFormat or SimpleDateFormat. You don't need to worry about the pattern.
    If you want to check what the pattern is with the default locale, you can try this:
    SimpleDateFormat sdf = (SimpleDateFormat)DateFormat.getInstance();
    System.out.println(sdf.toPattern());There is also a distinction between short, medium and long format, and you can get the time or date pattern only if you want. Check the API.

Maybe you are looking for

  • Interest calculation on Customer Debit Balance

    Hello all, I have a unique scenario where we pay the interest to the customer on their Debit Balance ( Balance of customer over payment) e.g. Customer invoice is open for $100 but customer send us $150, so we will pay the interst on $50,. I dont want

  • Mouse cursor sometime jumps down

    I have ThinkPad Yoga 20CD0-038. If I use OneLink Dock, my mouse cursor sometime jump to down or down-right and sometimes makes a click or right-click. I have two OneLink Dock and two different mouse. It is the same when the mouse is connected to USB

  • Conditional button based on client's IP address

    i know this is not secured, but .... I have little app with no login. It is a documentation for our project, it uses a tree, .... bla bla bla nobody can change anything (it is really just a few pages of documentation). I want one, just one, user to b

  • [Solved] radeon module freezes system with dpm enabled

    Hello, I have been running my Radeon HD 5770 with xf86-video-ati (1:7.5.0-1) for quite some time now without any issues. Yesterday, I upgraded mesa and my system started to freeze with a black screen during boot. Blacklisting the radeon module allowe

  • Oracle Objects for OLE (oo4o)

    Is there anywhere I can find documentation about oo4o??? //Ulf