Schedule a task for a given period of time

Hi,
any body has an idea how to schedule a task for a specified period of time. e.g A program keeps on asking for your name to be input for an hour and then start doing something else?
/bob

hi friend,
Why don't you try using a TIMER. Try using this code
Timer timer = new Timer((TIMER), new ActionListener()
     public void actionPerformed(ActionEvent ae)
// perform your task here...
timer.setInitialDelay(TIMER);
timer.setRepeats(true);
timer.start();
I think this will work fine.
Bye,
Ravi.

Similar Messages

  • Material stock received and issued for a given period of time

    HOW to get the material stock received and issued for a given period of time including the open orders.
    if there is any BAPI Available then please tell me. or give me the table relations thaks.
    thanks inadvance

    hi friend,
    Why don't you try using a TIMER. Try using this code
    Timer timer = new Timer((TIMER), new ActionListener()
         public void actionPerformed(ActionEvent ae)
    // perform your task here...
    timer.setInitialDelay(TIMER);
    timer.setRepeats(true);
    timer.start();
    I think this will work fine.
    Bye,
    Ravi.

  • Automatically log back in for a given period of time

    I just started to work on web and have the following issue:
    We want some (mobile) users to be able to automatically log back in for a given period of time. It is not difficult to set cookie (valid user information without clear text) on the mobile device. For now the question is how we can log in using this cookie info.
    Web application uses "j_security_check", "j_security_check" checks the user/password.
    Question is how we can autologin using cookie information. Thanks guys!

    it is not problem to check cookie on exists and valid. Problem is 'where' where can I do it using 'j_security_check'

  • Generate report for employees on leave for a given period

    Hi,
    I want to know how can i extract a report of a list of employees who are on leave for a given period of time?
    For instance i want to a list of employees who are on vacation / leave (any kind of leave) for the period of April 2010
    Is there a standard report to generate this info? or any other way of doing it?
    Regards,
    Humaira

    HI all,
    Thanx for the response.
    The info set Query was great help.
    the Tcode PT_QTA10 only gives me the leave Quota of the employees which was also helpful. Thanx
    Regards,
    Humaira

  • Report to find out Manager change in given period of time.

    Hi All,
    There is a standard report to find out info type changes. But it is not capturing the HRP1001 info type.
    Is there any report or function module which will Identify the manager change for a given period of time?
    Regards,
    Ravi

    Here is what you need to do
    The customizing for the change log you have to do following setting in  SM30->T77CDOC_CUST.
    T77CDOC_CUST:
    PlanVersion: 01
    ObjectType: S ( position )
    Infotype: 1001
    Subtype = 'A002' ( reports to)
    Activate = 'X'
    After that you can analyse the change log with sa38->RHCDOC_DISPLAY
    This will work if you have a reporting structure. i.e. one position reports to another position via A 0002 relationship.
    cheers
    Ajay

  • Pending  GR / IR Balances report  for a given period

    Hi,
              How can you  check  pending  GR / IR doc's  for a given  period ?  In  MB5S there is no date field in selection sreen as well as output  layout. 
    Please  give  suggetions .
    Thanks &  Regards,
           Aruna.

    Hi,
    Check ME2l, ME2M report..use Selection Parameters as "RECHNUNG" for pending IR and "WE101" or "WE103"  for open GRs and ur required selection of vendor, material and document date
    Regards,
    Vikas

  • To find whether the reports are in use or not for a given period

    Hi Basis Gurus,
    We have an requirement here that the client wants to know that the whether the reports for a given period are in use (working) or not.
    I think we can do it when we have audit logging activated ,but now we dont have audit logging activated now.
    Let me give you an example below
    Suppose for past 1 year 100 reports are prepared and out of 100 reports 95 reports are not working and remaining 5 reports are working.How can i get the detials from the SAP system without audit logging activated.
    Please help me
    Regards,
    Anil.

    Hello,
    See if ST03N helps you.
    Switch to expert mode in ST03N. Naviagate to Workload > Month > month . Click on the available month. Then in the " Analysis Views" visible on the lower LHS, Select transaction profiles > standard. See if you have your 'Z' report in that.
    Thanks and regards,
    Anish

  • How to find what transaction an user was running for a given period

    hi
    could anybody tel me
    how to find what transaction a particular user was running for a given period
    in the past.............

    Hi,
    U need to findout the list of Tcode excuted by SAP user
    1) Tcode: ST03N
    2) Select Expert Mode option
               (there u find  Server Host name & Today)
       If u select Host name u find DAY/WEEK/Month (same thing will in Today option)
    3)Now u need to select the option of DAY,WEEK etc.
    Now u can find in two ways
    1) Transaction profile (Standard / EarlyWatch)
    2) User (user profile)
    If u select the Transaction profile
    Under these u find the option of Aggregation----application/package/tranasation etc.
    I hope these will help u to findout.
    Regards
    ASR

  • Need a function to calculate employee attendance data for a given period

    need a function to calculate employee attendance data for a given period
    as
    Working days,
    CL ,
    SL,
    PL,
    LWP
    regards,
    Gaurav Sood.

    Issue resolved

  • BAPI to extract from MBEW/MBEWH for a given period

    Hi ABAPpers,
                We have two tables MBEW and MBEWH for Material Valuation. Based on the changes in few fields like VERPR, the record in MBEW will be transferred to MBEWH. Is there any BAPI that helps me to extract the data for a given period of a given fiscal year without asking me to probe from which table we need to fetch data from and which record in MBEWH is valid for that period of that year. Please suggest possible ways to do it.
    Thanks.
    Edited by: VKUPPILI on Dec 19, 2011 2:53 PM

    Hi
    Although it's not your question, see SAP Note 193554 - Stock/valuation data of previous periods, I think that it helps you to understand how to understand how to work the history tables.
    I hope this helps you
    Regards
    Eduardo

  • Projectwise settlement report for a given period

    Dear PS experts,
    Is there any report which i can see the projectwise settlement to AUC, Fixed asset and Cost center for a given period?.
    Regards
    Vetrivelan.

    May be you could try Tcode : KSB5 to see the settlement documents through dynamic selection and export to excel and filter it for  your project.

  • Block purchase receipts for a material for a given period during MRP.

    Hey all,
    What is the most simple way to block delivery of a material for a specific period of time within a plant? I want to block a 3 month period, where no deliveries can be received, however I still want to run MRP during this time. I want MRP to build up stock prior to the 3 month period to cover any requirements/forecast during this period.
    The solution has to be material specific, so I was thinking about using a planning calendar to only allow deliveries for that period at the beginning of the period, but my issue here is that planning calendars are set as transportable and I don't want to have to transport new calendars each time a material has this requirements, which is quite often.
    Any ideas?
    Mark

    Thanks for the feedback.
    Unfortunately this field only becomes relevant to MRP once the status becomes active. MRP does not consider the Valid From date when performing calculations. If the current date falls within the valid from date on the Material, then MRP will not run for that material. At this point it is too late. I need to be able to ramp stock levels up to still cater for demand during the period of unavailability.
    Also, I need to be able to specify a period (to AND from) where I cannot receive the goods.....

  • CM 2012 System Discovery " Only discover computers that have logged onto Domain in given period of time"

    Hello,
     CM 2012 now has a options " Only discover computers that have logged onto Domain in given period of time". Which Active directory property it looks into. is it looking into lastpwset or some other properties. Please let me know the details of
    this option, specifically what properties it looks into to find out the information.
    Thank you

    That would be the LastLogonTimeStamp Attribute for the computer account.
    http://blogs.technet.com/b/askds/archive/2009/04/15/the-lastlogontimestamp-attribute-what-it-was-designed-for-and-how-it-works.aspx
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • I have a problem with my new ipad air 64g with cellular. When I off my ipad for a long period of time ( around 2 hours), my ipad air freeze. Nothing is showing on screen with any button except by pressing reboot (home   on/off button)

    I have a problem with my new ipad air 64g with cellular. When I off my ipad for a long period of time ( around 2 hours), my ipad air freeze. Nothing is showing on screen with any button except by pressing reboot (home   on/off button). Anyone out there can help. Thanks.

    I have a 64GB iPad Air WiFi+Cellular (Verizon), and I don't see the issues you are describing.  First I would suggest that you update your iPad to the newest iOS update.  If that doesn't help, then you may want to schedule an appointment at an Apple Genius Bar.  If you go this route, I suggest that you let the iPad sleep for long enough for the problem to arise before you go to your appointment.

  • Why is does my apple run SLOW.you go to open a program and the circle thing just spins for a delayed period of time.  You change from typing in a word doc and go to say email or internet and it takes several minutes to allow you open anything up.  Like it

    Why is does my apple run SLOW.you go to open a program and the circle thing just spins for a delayed period of time.  You change from typing in a word doc and go to say email or internet and it takes several minutes to allow you open anything up.  Like it is frozen.  I have tried rebooting the computer and it works for a few minutes then gets stuck.

    Which model iMac do you have?
    How large is your HD and how much space do you have left?
    Check out the following & do the necessary: 
    User Tip:  Why is my computer slow?
    What to do when your computer is too slow
    Speeding up your Mac
    OS X (10.6.6)
    Use Software Update or the OS 10.6.8 combo update to update your OS.  Also, update everything SU has to offer for your computer.  When done, repair permissions and restart your computer.

Maybe you are looking for

  • Two user accounts on one computer - syncing one library with separate apps

    I have just taken the plunge and moved over to a Macbook Pro from Windows. I am really impressed with the computer, but need some help with a particular problem. My wife has her iPhone and iPad, both of which are synced to one iTunes library on her o

  • Insert using case when

    hello , i wanna use "case when" statement in the insert , i implement it like this : currentyear:=1; insert into test1 (ATTRIB1,ATTRIB2) values ((case when currentyear=1 then 'ok' else 'notOK' end),'val2' ); but it didn't work, i got this error : ORA

  • Clean install after a migration

    I am doing my first migration from my G4 over the new macbook pro and I didn't move the apps, but I couldn't deselect moving the library files. I would prefer to have a clean install for FCP. Should I run FCP remover after the migration. I never had

  • Photoshop CS3 doesn't launch

    I know there must be a lot of info out there on how to resolve this issue, but I am having trouble finding anything that works. So, someone please show me where I need to go to see how to fix this issue. Photoshop CS3 randomly stopped working on my i

  • Product change Badi

    Hello All, I need to implement a "Z" process regarding the product change. Is there any Badi in CRM to implement the new logic?? Thanks in advance¡¡ Regards German