Time record .......help!!!

i remember that there is a method to record run time during the coding runing. but i am not sure which one for it?
help
thanks

To help you a little:
public static long currentTimeMillis()
in
java.lang.System
means that there is a method with the name currentTimeMillis
which takes no parameters (therefore the empty brackets)
returns a long integer number (a number of type long)
and is defined in the class System
in the package java.lang.
static means you do not need to create an instance (an object) of the type System. You can call static methods this way: Classname.methodname(parameters)(Ignore 'public' for now - before you know how to subclass existing classes, all the methods you will want to use are public. It just means you can call them from outside the package, e.g. your program. You can't do this with protected methods. (package-private and private methods don't show up in the Java API documentation.))
java.lang is the default package. You do not need to import it. You have probably used other classes from java.lang, e.g. String (which would be java.lang.String). You can simply write "System", there is no need to write "java.lang.System" in your program.
So now write something like:
returntype variableName = Classname.methodename(parameters);
at the beginning of your program and
returntype otherVariableName = Classname.methodename(parameters);
at the end of the program
and then subtract the first variable from the second variable and you get how many milliseconds your program has run.
Think about:
What return type does currentTimeMillis have?
What would be suitable variable names?
What is the name of the class?
What is the name of the method?
What parameters does currentTimeMillis take?
If you still can't figure it out, post your thoughts here and post what you have tried and didn't work.
Also, learn to read the Java API documentation:
http://java.sun.com/j2se/1.4.1/docs/api/
In the left top frame, click on java.lang.
In the left bottom frame, click on System afterwards.
In the large frame at the right, scroll down to currentTimeMillis().
Monika.

Similar Messages

  • To transfer time events from external time recording system to sap r/3

    hi all,
          I have a task to make an interface program between external time recording and sap r/3, and then to transfer the time events from that external system to sap system with the help of an rfc, i have got some information like the data first has to be transferred to the table CC1TEV and then from this table the data will be uploaded to 2011 infotype with the help of a standard program, but i am unable to find a solution for making the interface program and the RFC or BAPI which will transfer the records from external system.
        if anybody has any information on this plz help me out to solve this problem.

    Which recorgding terminals using to capture time events? They should have give some guidelines about this?
    Regards
    niranjan

  • MSS Time Recording for Team

    Hello,
    We are implementing MSS Time Approval on Portal. And want to add the Employee Group Field to the 2nd screen(i.e the Details screen) as below as a column just like Status and Recorded Time.
    Can this be achieved through Configuration or requires Webdynpro ABAP Enhancement. ?
    Any help would be highly Appreciated.

    se80
    PAOC_MSS_TIM_WDA
    HRMSS_A_CATS_APPR
    This can be done for the detailed screen ie once you click details for the times, for initial screen you need to use the modification as above, Once for times needs to be approved, you can click on Details and add the columns as below for that screen
    sm34
    VC_PT_FIELD_SELECTION
    Screen area     CTD       CATS Approval: Details
    Field selection SLIN      SAP Detail Line Managers
    You can do the config here, Please check this
    SPRO > Personnel Management > MSS (WebDynpro ABAP) > Working Time >
    Approve Working Time > Define field selection for detail View
    class CL_HRMSS_CATS_APPR_DASHBRD
    Time Recording Status for My Team - Manager Self-Service in SAP NetWeaver Business Client - SAP Library

  • How can we integrate CATS & PPM and to retrieve CATS time recording data in PPM ?

    Dear experts,
    Following the previous question of Ruxandra Petrina called "record times with CATS", I am facing an issue with the report DPR_CATS_CPR_TRANSF : it shows nothing despite I activated PPM accounting integration.
    There are the steps I followed, I really don't understand what is missing. In PPM I can transfer and assign my projects to WBS elements automatically or manually.
    1. We allowed time confirmation for projects
    2. We replicated personal number as business partners
    3. We activated worklists and project assignments @ data entry profiles
    4. We set up ALE & RFC connections
    5. We activated the integration scenarios on WBS element : automatic and  manual creation of WBS element assigned to PPM elements. Then we set up data profiles for time recording in cat2.
    6. We enter times, we released it (approval is not required) + saving
    7; We launch the program in SE38 of both ERP or SOLMAN systems : NOTHING appears.
    Our goal is to see the times recorded in CATS in the Confirmed work field of PPM.
    Can you please help me out with this issue ?
    Many thanks in advance.
    Best,
    Cassoké

    Hi Cassoke,
    If tasks assigned to a user is not listed in CAT2 worklist, then first we need to ensure that the tasks are displayed in the worklist. So the user confirm the times for the tasks using this list and after that only we should be running the report 'DPR_CATS_CPR_TRANF' to transfer the actual times entered by user in CAT2 to PPM project task.
    To integrate CATS with PPM, you need to follow these steps.
    Customisations:
    1) Enable 'Time recording' for tasks & 'Account integration' in project type
    2) Customisation related to 'Accounting integration' to be carried out (either single object / Hierarchical controlling, for testing better to use single object - Internal order, since it is easier)
    3) Create a time sheet data entry profile
    (Refer thread Record working times with CATS for details)
    4) Ensure all object links(internal order / WBS)  RFC destinations are updated correctly.
    Master data:
    Business partners creation with BUP003-Employee role & link to HR personnel number
    (This is not required if HR integration is activated, since the system creates the BP's automatically. But manually we need to validate the BP's for linkage with few users)
    Project:
    1) Create project using customised project type (where time recording/accounting integration is enabled)
    2) Structure the project with phase/tasks
    3) Update duration/work etc., to the tasks
    3) Create project roles & staff a resource (BP which is validated for HR personnel number linkage).
    4) Assign task to project role with resource in Project role-->task tab
    6) Release the project definition and also check for phase/tasks release
    7) Change the status of project definition to 'Flag for transfer' (Can be done before project release also)
    8) Check whether the internal order / PS project with WBS is created in ERP system(Based on customisation) and linked to project. Check can be made in accounting tab of the project. (If it is not created, then check for object link RFC destination correctness)
    In case of automatic internal order creation process, you need to enter the org unit. data in project definition-->additional data of the project.
    CATS:
    After completing all the steps, the task assigned to the user will appear in the CAT2 transaction.
    1) User can confirm the task with actual hours.
    2) Run the CATS transfer report mentioned above to update the data in PPM project.
    About SOLMAN integration, you can refer to this presentation also.
    http://www.sapsa.se/wp-content/uploads/2013/09/9.-ITPPM@SAPSA_131119_IngoPfeiffer.pdf
    Regards,
    Ravi

  • Which backend-system permissions are neccessary for time recording via ESS

    Hello,
    I'd like to to time recording via ESS and would like to know which permissions/rights a user needs in the portal and the above all of them in the backend system.
    Is it neccessary that the User in the backend system is a user of user type Dialog or could this also be an user with another user type?
    Thx, Vanessa

    Please make sure that the User has ESS authorisation
    he needs to have the authorisation like recording times, Normal cats authorisation, please check help.sap.com for which infotypes to be necessary Like 316 etc
    You need to maintain the CVR parameter for the profile being
    used.

  • Time record approval with ESS/MSS

    Hello,
    I am new to MSS and I am facing some problems. I would like to get the time approval process started.
    The projects are set up with cProjects and then transfered to PS. The WBS-items are taken for the time recording. Now I would like to approve this time recordings.
    Unfortunately I don't have an idea what has to be configured to use the uwl:
    - I think that I need to customize CATS to use the workflow (but which one)
    - and then to configure the UWL in order to get the items...
    Is this true?
    Navigation through the portal and calling "team" in the MSS-menu an uncaught exception occurs saying that I have to configure infotyp 0008 for the employee I am using. Why do I need to set up the infotyp 0008 in order to see my team?
    Calling the application for approval direct leads to the MSS overview.
    Could somone bring some light in my darknes and tell me what I have to configure so that the project manager / line manager can see the recorded time that needs to be approved?
    Thanks in advance, Vanessa

    Thanks ...we would implement both then and I assume that the approve Timesheet application would be under "Team" Workset but when I click on it ..I get the error as:
    No Views found: Missing customizing:
    java.lang.Exception: No Views found: Missing customizing
         at com.sap.xss.ser.tecl.fc.FcTeamCalendar._checkData(FcTeamCalendar.java:799)
         at com.sap.xss.ser.tecl.fc.FcTeamCalendar._getData(FcTeamCalendar.java:751)
         at com.sap.xss.ser.tecl.fc.FcTeamCalendar.initialReadData(FcTeamCalendar.java:385)
         at com.sap.xss.ser.tecl.fc.wdp.InternalFcTeamCalendar.initialReadData(InternalFcTeamCalendar.java:319)
         at com.sap.xss.ser.tecl.fc.FcTeamCalendarInterface.initialReadData(FcTeamCalendarInterface.java:229)
         at com.sap.xss.ser.tecl.fc.wdp.InternalFcTeamCalendarInterface.initialReadData(InternalFcTeamCalendarInterface.java:294)
         at com.sap.xss.ser.tecl.fc.wdp.InternalFcTeamCalendarInterface$External.initialReadData(InternalFcTeamCalendarInterface.java:382)
         at com.sap.xss.ser.tecl.vc.VcTeamCalendarInterface.initialReadData(VcTeamCalendarInterface.java:362)
         at com.sap.xss.ser.tecl.vc.wdp.InternalVcTeamCalendarInterface.initialReadData(InternalVcTeamCalendarInterface.java:327)
         at com.sap.xss.ser.tecl.vc.VcTeamCalendarInterface.onBeforeOutput(VcTeamCalendarInterface.java:174)
         at com.sap.xss.ser.tecl.vc.wdp.InternalVcTeamCalendarInterface.onBeforeOutput(InternalVcTeamCalendarInterface.java:263)
         at com.sap.xss.ser.tecl.vc.wdp.InternalVcTeamCalendarInterface$External.onBeforeOutput(InternalVcTeamCalendarInterface.java:436)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.callOnBeforeOutput(FPMComponent.java:603)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:569)
    Appreciate your help.

  • Late Arrival with +tive Time Recording

    Hi,
    I need a solution for this scenario. I have Positive time recording and i want to apply the following rules on monthly basis.
    apply the following rules (within a month)
    1st Time Lateness beyond 30 minutes ==> 1 hour deduction
    2nd Time Lateness beyond 30 minutes ==> 2 hours deduction
    3rd time (and thereafter) Lateness beyond 30 minutes ==> 4 hours deduction
    deductions cannot exceed 5 days a month
    after that, set the employee on error, so that action from the time administrator will be required.
    I need solution for this scenario and need help for write a PCR.
    Thanks in advance.

    Hi,
    I need a solution for this scenario. I have Positive time recording and i want to apply the following rules on monthly basis.
    apply the following rules (within a month)
    1st Time Lateness beyond 30 minutes ==> 1 hour deduction
    2nd Time Lateness beyond 30 minutes ==> 2 hours deduction
    3rd time (and thereafter) Lateness beyond 30 minutes ==> 4 hours deduction
    deductions cannot exceed 5 days a month
    after that, set the employee on error, so that action from the time administrator will be required.
    I need solution for this scenario and need help for write a PCR.
    Thanks in advance.

  • -ve time, time recording sys, working hrs entry against prj, PO, SO

    Hi Goodmorning,
    Looking for help please -
    We are using -ve time management.  Time data comes from time recording system and through CATS emp books time against network, service order, production order.
    Whered does employee swipe data gets recorded in employee master.
    Will there be any chance of double entry time?
    Please help me.
    Regards,
    RS

    Hi Latha
    The time data from the system is stored in CATSDB if the time data is entered in CATS.
    This transfer of data can be through LSMW or BDC upload.
    There will not be any duplication of data in CATS.
    Ravee
    99206.33669

  • Time Recording in Brazil

    Hello
    My customer has an operation in Brazil. They are telling me that the Brazilian ministry of labour has requirements around time recording i.e. a time recording sytem must be in place for certain employees to meet statutory requirements.
    Does anyone know about this? Can CATS be used to meet the requirement or does it need to be a clocking solution?
    Thanks
    Chris Burfitt

    Hi Chris,
    Im sorry im not sure how this works but Pl. go through the link. It has some information about brasil laws. see if it can help
    http://www.ehow.com/about_5561564_brazilian-labor-laws.html
    This is what is given for working hours and breaks and working hours
    Working Hours
    Work day hours are limited to eight hours unless otherwise specified, and a maximum of 10 hours even by contractual agreement. In extreme cases where the employer needs the employee to work longer than the standard contractual limit, the employer must give a 10-day notice and provide remuneration of no less than 25 percent above the standard rate of pay.
    A rate 20 percent above the standard rate of pay is required for shifts occurring between 10 p.m. to 5 a.m.
    Breaks and Vacations
    A minimum one hour break is required after a period of six hours at work. Every two days, employees also must receive one period of 11 consecutive hours without work, and at least one day off per week, usually Sunday.
    In cases of recording, a break of 10 minutes is provided after 90 minutes of consecutive work, which will not be deducted from the accrued working hours.
    regards,
    brinda

  • Time Recording in ESS is tied to CATS?

    Hi, I am new to ESS//MSS. I am HCM consultant, like to know more on ESS side. I heard  Time Recoding is linked to CATS data entry profiles. Is this only way we can enable time recording using ESS? In other words all the web-dynpro's provided in ess package is tied to CATS? If company is using ESS that means they are using CATS in back end?
    Any help is appreciated.
    Thanks,Raj

    Sorry to reiterate, I was asking in ESS, is iviews are tied to CATS? in other words if company is implementing ESS, do they need to first setup CATS? Some thing is confusing CATS is used for data transfer and for having approval workflow.
    From the process point, Data can be loaded from Time Recording systems into individual info types (IT2001, 2002..) OR can be pushed to CATS and then transferred into info types. My question, Is Time recoding using ESS portal is tied to CATS or can be pushed to individual info types with out CATS? vanilla instance (out of the box)
    Thanks,Raj

  • Time valuation with and without clock times --- Plzz help

    hi experts
    Please help me by explaining the following.
    1) Please explain me the differnces between time valuation with
       clock times(T555Z) and time evluation without clock time(T555Y).
    2) Please explain the differences in time types and processing types and functions procedure used  in time                evaluation with clock time and in time evaluation with out clock times.
    3) What is the major differences in the schema between time evaluation with clock times and with out clock   time?
    Thanx in advance for help and Points will be rewarded in full.
    regards,

    WITH CLOCK TIME
    It processes time data that has been imported to the SAP system from time recording subsystems and data that has been recorded online. Those time events (in/out timing) will be stored in 2011 which will be used in schema processing.
    Without clock time
    to evaluate the time data of employees who enter only exceptions to the work schedule. Processing in this component assumes that times are expressed as the duration of work, and not the start and end times of work times and employee absences
    Clock times are not required for evaluation of time data
    T555y is used for processing work times  (function Types)
    T555z is used for breaks processing in time schemas (function Types)
    2. NO difference in the way they are used
    3. Schema TM00 (clock times) is a standard schema, used to evaluate employee time data that has been recorded at time recording terminals and that specifies clock times.
    Schema TM01 is a standard schema used to evaluate the time data of employees for whom only deviations from the work schedule are recorded.

  • Time Recording Interfaces

    Hello To All,
    I would like to know how time recording interfaces work and how many diferent types of interfaces are there.
    Rgds,
    Tara

    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a956e51ea11d189570000e829fbbd/content.htm
    check the below link this will definitely will help you some thing..
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci761165,00.html
    if you are unable to see the link this is the content see
    Sending spool list to multiple users, while creating background job
    Shailendra Varshney
    08.16.2001
    Rating: -3.96- (out of 5) Hall of fame tip of the month winner
    To send spool list to multiple users while defining background job via trans. SM36, create a distribution list. This distribution list will contain the addresses of multiple users.
    Code
    To create distribution list: Call transaction SO01 (SAP office: Inbox). Click on the Distribution Lists button on the tool bar and click Create Icon. Enter a name for your distribution list, say, Test_Grp and fill in other relevant details.
    Click on the Distribution list content Tab and enter the addresses of multiple users. Check on the Express check box to send documents to the recipients as an express message.
    Now while creating background job for your program via SM36, enter the distribution list name (Test_Grp) when you click the Spool list recipient button. This will enable the spool list to be sent to multiple users.

  • Automatical cornnection between time recording terminal and SAP TM

    Hi Exports,
    I want to have automatically cornnected time recording terminal(TRM) to SAP time management, and by setting up background job upload check in/out recorded by TRM to SAP TM .
    Could you help us what I should do which steps in sequence ?
    Thanks a lot in advance !
    yoga

    Hi export,
    Thank you very much for your solution.  It is really helpfully to me.
    Now I met another case as bellow,
    Late Shift:  22:00 - 07:00(morning of next day)
    Time record data:
    Data(1): Check in: 2004.01.05 - 22:00:00
    Data(2): Check out: 2004.01.06 - 10:00:00
    By program SAPCDT45 update IT2011 with the above data,  actaully the data(2) should be as assignment to previous day(2004.01.05),  field "Day assignment" of IT2011 be filled with "-" .But program SAPCDT45 has no check for this base on the daily work schedule, so field "Day assignment" is maintained with blank. In the case, run PT60(time evaluation), error arise.
    Now I need to fill field "Day assignment" of IT2011 with "-" for the data(2) by program SAPCDT45 or enhanced program.
    Could you give some hints or advice ?
    Thanks a lot.
    yoga.

  • Time recording interface - file to RFC

    Hi all,
    I am trying a file to RFC scenario for a time recording interface. The time recording machine will generate flat files with the following fields
    empno, yyyymmdd, hhmmss, flag for check-in and check-out , terminal id
    I wanna know which BAPI can be used for the RFC receiver?
    what is the infotype for time recording?
    Regards
    Arun

    Hi,
    Please refer to the following URLS
    Time Data Recording and Administration
    http://help.sap.com/saphelp_46c/helpdata/en/54/095fa972f911d1a910080009ab6b44/frameset.htm
    Time Management Infotypes
    http://help.sap.com/saphelp_46c/helpdata/en/8a/98579c46c411d189470000e829fbbd/frameset.htm
    Personnel Time Events (HR PDC)
    http://help.sap.com/saphelp_46c/helpdata/en/eb/486f69730711d1a910080009ab6b44/frameset.htm
    Connection to External Time Management Systems
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PT-BFA/PT-BFA_ALE_168.pdf
    Hope these help
    Cheers
    Manish

  • TIME RECORDING

    Hi all,
    please help me with Methods of Time Recording..
    thanx n regards

    In time recording you have to follow the below steps:
    1) Create an absence/attendance quota type.
    2) Create Quota deduction rule.
    3) Create Counting rule.
    4) Assign quota deduction rule to counting rule.
    5) Accrual of absence entitlements.
          For this there are three ways:
         a)Manually save for one individual infotype( without default values or with default values)
         b) Report RPTQTA00
         c) Automatic accrual using time evaluation.
    6) Specify Base entitlements
    7) Define validity and deduction interval
    8) Define reduction rule for quota entitlements.
    9) Define rounding rules for quota entitlements.
    10) Define generation rules for quota selection.

  • To create new time recording groups & thier assignment

    Hi All,
    How to create Time recording groups. Also I want to assing the time recording groups to respective users.
    Can any one help me in this?  Whats the IMG path to create these time recording groups?
    Please help. points assured
    Thanks & reagrds,
    Nithi

    Hi Devi,
    Thanks for your answer. We can assign the administrator in IT0001.
    However my requirement is  - there are two users will have access to time recording group IA1 (which will be assigned in IT0001)
    However two users should be able to appove time for all 5 new time recording groups. How can we to this?
    Can you please help.
    thanks
    Nithi

Maybe you are looking for