Initializing and overlaying dates(second posting)

I am attempting to initialize a formattedTextField with the current date. I then want the user to be able to enter a date before the current date. The format I am using is MM/dd/yy. I want my user to be able to enter the date and not have to worry about the "/"s. If I don't initialize the field with the current date but with "00/00/00". The field behaves as required. I can use the following code
MaskFormatter formatter = new MaskFormatter("##/##/##");
            formatter.setPlaceholderCharacter('0');
            FromDate = new JFormattedTextField(formatter);
            FromDate.setValue("00/00/00");When I attempt to add the date as initialization I use the following code:
MaskFormatter formatter = new MaskFormatter("##/##/##");
            formatter.setPlaceholderCharacter('0');
            FromDate = new JFormattedTextField(formatter);
             DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);
            FromDate.setText(df.format(new Date()).toString());The date appears correctly. The field does not behave as before. It inserts characters instead of overlaying and doesn't seem to respect the mask.
What is a good way of initializing the date and overlaying the initialization while respecting the "/"s.

I am attempting to initialize a formattedTextField with the current date. I then want the user to be able to enter a date before the current date. The format I am using is MM/dd/yy. I want my user to be able to enter the date and not have to worry about the "/"s. If I don't initialize the field with the current date but with "00/00/00". The field behaves as required. I can use the following code
MaskFormatter formatter = new MaskFormatter("##/##/##");
            formatter.setPlaceholderCharacter('0');
            FromDate = new JFormattedTextField(formatter);
            FromDate.setValue("00/00/00");When I attempt to add the date as initialization I use the following code:
MaskFormatter formatter = new MaskFormatter("##/##/##");
            formatter.setPlaceholderCharacter('0');
            FromDate = new JFormattedTextField(formatter);
             DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);
            FromDate.setText(df.format(new Date()).toString());The date appears correctly. The field does not behave as before. It inserts characters instead of overlaying and doesn't seem to respect the mask.
What is a good way of initializing the date and overlaying the initialization while respecting the "/"s.

Similar Messages

  • Calling a new browser window with WD Abap and passing data via POST

    Hi there,
    does anybody know whether passing data via POST method is possible when opening a new browser window from within a Web Dynpro Component? In my case I use method IF_WD_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW for opening a new browser window. Now I want to pass a big amount of data which is only possible via POST method. How can I achieve that or is it not considered inside the Web Dynpro Framework?
    Kind regards,
    Albert

    Hi Priya,
    can you please explain a little bit more what you mean? I didn't get it..
    Kind regards,
    Albert

  • CRM BP Migration - telephone and Fax data not posted

    Hello Experts,
    I am having an issue while posting a Contact using IDoc in CRM 7.0, the contact is created, all data is ok, email is posted, but fax and telephone information is not posted.
    Have anyone faced this issue and now how to solve this?
    Thanks!

    Hi Nhlanhla,
      You can achieve this by IDOCS or XIF Function Modules.
       Preferred is develop a program using CRMXIF_PARTNER_SAVE and CRMXIF_PARTNER_REL_SAVE for better performance. Here you will find Z fields create through EEWB also.
      For IDOCs
    Message Type         CRMXIF_PARTNER_SAVE_M
    Basic Type           CRMXIF_PARTNER_SAVE_M03
    Message Type         CRMXIF_PARTNER_REL_SAVE_M
    Basic Type           CRMXIF_PARTNER_REL_SAVE_M02
    Regards,
    Bhanu

  • Get start and end date for posting period (YYYYMMM format)

    In revenue recognition I'd like to have the start date and the end date of the posting period, which is in format YYYYMMM. It's field VBREVR-BDJPOPER.
    Any idea?
    I had no luck so far to find a relevant FM.
    Thanks in advance,
    Peter

    Hi,
    Use this FM To convert the date into DD.MMM.YYYY format
    <b>CONVERSION_EXIT_SDATE_OUTPUT</b>.
    Use the followiong FM To convert the date into <b>user specified</b> format
    <b>SLS_MISC_CONVERT_TO_DATE</b>     
    Rewaed if helpful.
    Regards,
    Sandhya

  • Reduced Radio and 4G Data Reception Post-Update

    Hi!  I've been having quite the adventure with my phone lately.  Before the update, I used to receive 4G with all four bars filled at work at my desk.
    After the update, I've rarely been able to get 4G reception at my desk... Usually it is 3G, sometimes it is 1X, and sometimes there is no data connection at all (usually, of course, it blinks out while I'm trying to do something on my phone)... it is as if the update screwed with something in the phone to make 4G signal weaker.
    At home, it is harder to tell because I live closer to the edge of 4G reception, but I noticed last night that the bars do toggle a bit more (the 4G reception itself is fine though).
    I work in downtown Louisville, KY so I should receive good service as I had before... I'm near a window, and my building isn't particularly big nor is it near a lot of especially tall buildings.
    Any help would be appreciated!  Thanks!

    I have the same problem. I use my TBolt as a hotspot for my laptop at work. Before the MR2 update, I almost always had a good, consistent 4G connection about 80 to 90% of the time and it would occasionally drop to 3G for a short period, then pick up 4G again. Since the update, the situation has reversed and I'm in 3G about 80 to 90% of the time and can't keep a 4G connection.
    I can also tell you that the solution I use to fix it is one that Verizon tells us not to use. Before the update, I always used LTE onOFF to choose my connection and always used CDMA + LTE/EvDo auto which gave me a good 4G signal. Since the update, Verizon has added their own switch and is telling us to uninstall any third party apps such as LTE onOFF. Unfortunately, Verizon's switch doesn't work as well, so now I have reinstalled LTE onOFF and I now set it to LTE mode and it seems to force it into 4G. That seems to keep me in 4G most of the time again, but when it does drop out, it goes to 1x instead of 3g.
    I know it's not the location because I had a good 4G signal in the same location before the update. When I'm in LTE mode with LTE onOFF, the Verizon switch still shows LTE/CDMA because it doesn't have a choice of LTE only, only CDMA only.
    Maybe I'm not suppose to be using a third party app and maybe it's not suppose to work, but it seems to keep me in 4G a lot more consistently than Verizon's built in switch.

  • Restrict posting of invoice before PO and GR Date

    Hello,
    Can anybody tell me how system allows to post MIRO before PO and GR Date.
    I created a Purchase Order in March.GR Based IV was ticked in PO for all items.
    GRN  was done on April 4th . When MIRO was done with reference to PO , by default current date
    appears into posting date field.but when i change the date manually as 30th march , system does
    not give any error.We are able to post miro before GRN posting Date though GR based IV was ticked.
    Is there any way to restrict it???????
    Regards,
    Kavita

    Check FI period is open for mar '10 account type - 'K'.
    If year end closing is happening,special periods may be open(13 to 16),it will allow postings in previous periods also.
    You can also control it thru user authorization for posting in single/current period only in ob52.(Check authorization group).

  • Goods Receipt and Goods Issue - Posting Date and Document Date Problem

    Hi All,
    I was using SDK to build own add on to insert Posting Date and Document Date under Inventory> Inventory Transactions> Goods Receipt and  Inventory> Inventory Transactions> Goods Issue, but the UI Screen Posting Date and Document Date shown current date.
    My SAP Business One version was 2007A SP00 PL42 and alreadly upgrade to SP05.
    End up result still the same.
    Is there someone can help me?
    Thanks you.
    Best Regards,
    danny

    Hi there,
    I already solve it by myself.
    Actually is i call the initialization twice:
    Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    Thats what make this problem happened.
    Sorry.
    Best Regards,
    danny

  • Posting date in AFRU and 2lis_04_p_arbpl data source is not matching

    Hi Experts,
    We are facing an issue with 2LIS_04_P_ARBPL data source, posting date in AFRU table and in data source is not matching.
    For example: we booked an activity confirmation of value 100 on 01.01.2015 posting date, Counter 1, Operation 10
    For the same operation another counter is confirmed on 01.02.2015 posting date.
    So, in AFRU table:
    Prod Order     Operation     Confirmation Number     Counter     PostingDate     Activity
    1001               10               8001                             1              01.01.2015       100
    1001               10               8001                             2              01.02.2015       0
    In 2lis_04_p_arbpl data source, counter field is missing due to which only 1 record is coming which is:
    Prod Order     Operation     Confirmation Number     Counter     PostingDate     Activity
    1001               10               8001                             1              01.02.2015       100
    In data source, activity of value 100 is coming on 01.02.2015 date instead in AFRU table it is booked on 01.01.2015 posting date by which we are unable to match the value in query which is based on posting date.
    Please help on this.
    Thanks,
    Sameer

    Hi Sameer,
    Please check on which date the production order has status as "completed".
    It could be on 01.02.2015.
    Thanks,
    Vimal

  • Issue In posting date and Due Date

    Hello All,
    my client is creating a GRPO and manually changing the Posting, And doc date. Then by using Copy to utility he is creating A/P Invoices
    There system automatically shows the Posting date, Document Date as of current date(That is what system behavior is ). But now he wants that system should pick all his dates from Base doc i.e GRPO
    So i want to know that is this possible through some query or FMS
    if yes then please suggest me for the same
    Regards,
    Bhushan

    Hi,
    I don't have $38.10.number in my query. Where did you get this field?
    please follow below steps:
    1. Run above query in generator. Sure it gives an error message and ignore this message.
    2. save it under query manager
    3. Assign this FMS at AP invoice posting date and set auto refresh when customer vendor refer is changed.
    Thanks & Regards,
    Nagarajan

  • Invoice verification Invoice date,Posting date and Baseline Date

    Hi Sap Gurus
    Pls Tell Me in detail what Dates should be entered at MIRO transaction,
    Invoice date,Posting date and Baseline Date
    i presumed that the date on the Invoice slip will be Invoice date,
    But in the Invoice the Date is very long back, say a month Older,
    the month of Posting as Posting date, but any posting Date made in MIRO will be Paid after 2 or 3 months so in this case what should be the Posting date.
    at Base line date in the present company Senario the Discount on Vendor payment is literally valid for all the time , say
    In Invoice if the condition is 10% discount if paid in 30 days is given.
    but in actual sense the Vendor is paid 10% less even if he is paid after 4 or 6 months also, so in this case what should be the Entry in Baseline date
    another senario is the vendor has sent only one Invoice for 2 POs how can this be accomadated in SAP
    Pls suggest its Urgent,
    Age may have a Bar, But Points No Bar
    Thanks and Regards
    Sathish

    Hi
    LIV is nothing but You are getting Invoice from the Vendor for your PO   and GR.....and you are checking the Invoice for Price, Qty,Amount etc. by refering the PO  and posting the Invoice...
    Invoice Date : 
               The date of Vendor' Invoice...ie) Date at which the vendor Raised the invoice for his supply against your PO...
    Posting Date :
       The Date at which you actually Verifying Vendor's Invoice and doing the Posting...
    base line date :
        Generally the Posting Date...
    The Imp. of Baseline date is for eg)
    If in the Payment Terms if some conditions are maintained like say
    10% Discount for Payment With in 30 days, if
    PO created on 01.11.2007.
    GR done at 10.11.2007.
    Invoice slip Received at 30.11.2007 but having the Date on it as 20.11.2007...
    So as per your terms you will get 10% Discount if you make the payment on or  20.12.07....
    Here if you keep  inv. Date: 20.11.2007  and Posting Date : 30.11.2007  and Baseline Date as  30.11.2007 ( you cannot maintain baseline date earlier than  Posting date)....even though as per terms the you are  eligible for discount if you make the payment on or before 20.11.2007.....as per the system you are still eligible to get the Discount if you make payment on or 30.12.2007( since you have maintained baseline date as 30.11.2007)...
    this way Baseline date is Importane...
    Generally we use to maintain always Posting Date as Baseline date....
    It is advantageous..
    Reward if useful
    regards
    S.Baskaran

  • Difference between doc date,posting date and invoice date

    hi bw guys
    can someone give a brief on the difference between doc date,posting date and invoice date.and the invidual definitions
    thank you

    Hi,
    Posting Date: Date which is used when entering the document in Financial Accounting or Controlling. The posting date can differ from both the entry date and the doc date.
    Document Date: The document date is the date on which the original document was issued. Ex: Inv date, Bill date etc.,
    Invoice Date : Usually the date when goods are shipped. Payment dates are set relative to the invoice date.
    -Vikram

  • Post date and due date

    Hi all,
    can any  tell me what you mean by 'posting date' and 'net due date' and' clearing date'?
    what is the difference between them?
    Table is-BSID
    BUDAT-posting date
    ZFBDT-Baseline date for due date calculation
    AUGDT-clearing date.
    thank u
    sunny.

    BUDAT-posting date
    -> to determine the book-period (bkpf-monat)
    ZFBDT-Baseline date for due date calculation
    -> determine date when an obligation becomes due
    due date = zfbdt + bsik-zbd1t (or ZBD2t or ZBD3t)
    AUGDT-clearing date
    -> date when open-item becomes a cleared item
    by payment or reversal or...
    A.

  • Posting Date and Billing Date.

    Hi Experts,
    I am working on an IS-U project at the moment.
    Could anyone please let me know what is the difference between Posting Date and Billing Date?
    Thanks in Advance.
    Regards,
    Chandu.

    Hi,
    <b>Posting Date:</b> The date on which a transaction in SAP will be posted to the appropriate accounts. SAP will default this field to be the current date, but changes are allowed. For items to be posted in a future or past period, you must enter the posting date.
    <b>Billing Date:</b> Billing date from - Date the billing began and Billing Date To - The default is the last date of the current month.
    Hope this helps.
    PB

  • Posting Date, Document Date and Due Date as same

    Hi All
    I would like to make Posing date , Document Date and Due date as same
    The movement i enter Posting date it should automatically carry the same value to Due date and Document date field . How can i make it
    Regards
    Rashid

    Dear Gordon
    Thanks, it is working for Marketing documents,
    I would like to have the same for JE and JV
    Regards
    Rashid

  • Payment terms and Baseline date deact. during posting

    Is it possible to deactivate fields: Payment terms and Baseline date in FB60 and MIRO so that the user can't change them? Terms of payment are defined in Vendor Master Data and shouldn't be changed during posting.

    Hi,
    You can use Screen Variants using T.Code  SHD0 . You can make certain field as display only. You can use the help of your abapers......
    Assign points if found useful
    Regards,
    R.Ramakrishnaraj

Maybe you are looking for

  • HTML emails are blank in OSX Mail - but they show up fine in Entourage!

    I send emails to a subscriber list through a third-party system. The problem is what OSX Mail does with my HTML emails! OSX Mail users get emails that appear to be totally blank. On further inspection, though, the emails are not blank at all-all the

  • Flashing to grey desktop, post Mavericks install.

    I've got a  iMac on to which I installed Mavericks.  I lost the dock and the screen flashed between the normal desktop picture and  plain grey about every second or two (it's not constant).  I couldn't access mission control either.  I did have four

  • BPEL validation failed.

    When I build example 1 of orabpel-quickstart ,I get follow errors: [bpelc] BPEL validation failed. [bpelc] BPEL source validation failed, the errors are: [bpelc] [bpelc] [Error ORABPEL-10900]: xml parser error [bpelc] [Description]: in line 46 of "E:

  • I am having issues with installation of Abobe Acrobat Pro XI and Adobe Flash CC 2014

    I am using Windows 8 system.  I have attempted to remove any pervious versions that may cause the installation to fail.  I have tried to install from Creative Cloud several times but it keeps telling me installation failed.  I have tried rebooting sy

  • New Smart Album is Full of Pictures

    Trying to create a "Smart Album" in the hopes that transferring a video there will eventually allow me to export the video from iPhoto to somewhere outside of iPhoto. But every time I create a "Smart Album" it's filled with 45 photos...the same 45 ph